Skip to content
Snippets Groups Projects

Add Language Model Decoder

Merged Solene Tarride requested to merge lm-decoder into main
All threads resolved!
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -242,7 +242,7 @@ class ArkindexExtractor:
"""
return " ".join(
[
self.mapping.encode[token] if token in self.mapping else token
self.mapping.encode[token] if token in self.mapping.encode else token
for token in list(text.strip())
]
)
Loading