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

annif.analyzer.simple.SimpleAnalyzer.__init__()   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 3
dl 0
loc 3
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