针对memory修改
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user