| Total Complexity | 0 |
| Total Lines | 10 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | """Language support and language detection functionality for Annif""" |
||
| 2 | |||
| 3 | from simplemma.strategies import DefaultStrategy |
||
| 4 | from simplemma.strategies.dictionaries import DefaultDictionaryFactory |
||
| 5 | |||
| 6 | LANG_CACHE_SIZE = 5 # How many language dictionaries to keep in memory at once (max) |
||
| 7 | |||
| 8 | dictionary_factory = DefaultDictionaryFactory(cache_max_size=LANG_CACHE_SIZE) |
||
| 9 | lemmatization_strategy = DefaultStrategy(dictionary_factory=dictionary_factory) |
||
| 10 |