mirror of
https://github.com/langgenius/dify.git
synced 2026-01-07 23:04:12 +00:00
add type annotation
This commit is contained in:
@@ -61,7 +61,7 @@ class MeCabKeywordTableHandler:
|
||||
node = self.tagger.parseToNode(text)
|
||||
|
||||
# Calculate term frequencies and scores
|
||||
term_scores = defaultdict(float)
|
||||
term_scores: defaultdict[str, float] = defaultdict(float)
|
||||
while node:
|
||||
features = node.feature.split(",")
|
||||
if len(features) > 0:
|
||||
|
||||
Reference in New Issue
Block a user