针对memory修改

This commit is contained in:
tcmofashi
2025-03-02 16:06:11 +08:00
parent 97834e7a93
commit c0cb28e10d
8 changed files with 23 additions and 18 deletions

View File

@@ -69,7 +69,7 @@ class TopicIdentifier:
'', '按照', '', '', '', '比如', '', '除了', '', '', '对于',
'根据', '关于', '', '', '', '', '经过', '', '', '', '通过',
'', '', '', '为了', '围绕', '', '', '由于', '', '', '沿', '沿着',
'', '依照', '', '', '因为', '', '', '', '', '自从'
'', '依照', '', '', '因为', '', '', '', '', '自从','[]'
}
# 过滤掉停用词和标点符号,只保留名词和动词
@@ -78,7 +78,7 @@ class TopicIdentifier:
if word not in stop_words and not word.strip() in {
'', '', '', '', '', '', '', '"', '"', ''', ''',
'', '', '', '', '', '', '', '', '·', '', '~',
'', '+', '=', '-'
'', '+', '=', '-','[',']'
}:
filtered_words.append(word)