Passed
Push — upgrade-simplemma ( 60331a...7b002f )
by Osma
03:26
created

annif.langsupport   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 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