| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | """Simple analyzer for Annif. Only folds words to lower case.""" |
||
| 2 | |||
| 3 | from . import analyzer |
||
| 4 | |||
| 5 | |||
| 6 | class SimpleAnalyzer(analyzer.Analyzer): |
||
| 7 | name = "simple" |
||
| 8 | |||
| 9 | def __init__(self, param, **kwargs): |
||
| 10 | self.param = param |
||
| 11 | super().__init__(**kwargs) |
||
| 12 | |||
| 13 | def _normalize_word(self, word): |
||
| 14 | return word.lower() |
||
| 15 |