mirror of https://github.com/langgenius/dify.git
add type annotation
This commit is contained in:
parent
4f5a4e7194
commit
2f6bfe8e30
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue