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