Conditions | 2 |
Total Lines | 8 |
Code Lines | 7 |
Lines | 8 |
Ratio | 100 % |
Changes | 0 |
1 | """Simple analyzer for Annif. Only folds words to lower case.""" |
||
13 | def __init__(self, param, **kwargs): |
||
14 | self.param = param |
||
15 | self.nlp = spacy.load(param, exclude=['ner', 'parser']) |
||
16 | if _KEY_LOWERCASE in kwargs: |
||
17 | self.lowercase = annif.util.boolean(kwargs[_KEY_LOWERCASE]) |
||
18 | else: |
||
19 | self.lowercase = False |
||
20 | super().__init__(**kwargs) |
||
21 | |||
39 |