|
|
|
@ -61,7 +61,7 @@ class MeCabKeywordTableHandler:
|
|
|
|
node = self.tagger.parseToNode(text)
|
|
|
|
node = self.tagger.parseToNode(text)
|
|
|
|
|
|
|
|
|
|
|
|
# Calculate term frequencies and scores
|
|
|
|
# Calculate term frequencies and scores
|
|
|
|
term_scores = defaultdict(float)
|
|
|
|
term_scores: defaultdict[str, float] = defaultdict(float)
|
|
|
|
while node:
|
|
|
|
while node:
|
|
|
|
features = node.feature.split(",")
|
|
|
|
features = node.feature.split(",")
|
|
|
|
if len(features) > 0:
|
|
|
|
if len(features) > 0:
|
|
|
|
|