Skip to content
Snippets Groups Projects
Commit e24f36c5 authored by Solene Tarride's avatar Solene Tarride
Browse files

Add unknown token to charset

parent c23b608a
No related branches found
No related tags found
No related merge requests found
......@@ -355,6 +355,8 @@ class ArkindexExtractor:
Convert charset to a LM-compatible charset. Ensure that special LM tokens do not appear in the charset.
"""
logger.info("Preparing language resources")
# Add unknown token to charset
self.charset.add(self.unknown_token)
# Build LM tokens
for token in sorted(list(self.charset)):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment