Completed
Push — master ( cf5fd0...1b4762 )
by Osma
15s queued 12s
created

SimpleAnalyzer._normalize_word()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 2
dl 0
loc 2
rs 10
c 0
b 0
f 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