| Conditions | 1 |
| Total Lines | 6 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """Simple analyzer for Annif. Only folds words to lower case.""" |
||
| 11 | def __init__(self, param, **kwargs): |
||
| 12 | self.param = param |
||
| 13 | self.nlp = spacy.load(param, exclude=['ner', 'parser']) |
||
| 14 | # we need a way to split sentences, now that parser is excluded |
||
| 15 | self.nlp.add_pipe('sentencizer') |
||
| 16 | super().__init__(**kwargs) |
||
| 17 | |||
| 31 |