parent
c29f01ece2
commit
6b1604413a
@ -1,6 +1,9 @@
|
|||||||
import re
|
import re
|
||||||
from collections import Counter
|
from collections import Counter
|
||||||
|
|
||||||
|
# 提供一个命令行交互方式来驱动程序运行
|
||||||
|
|
||||||
|
|
||||||
# 清洗文本,移除标点符号并转换为小写
|
# 清洗文本,移除标点符号并转换为小写
|
||||||
def clean_text(text):
|
def clean_text(text):
|
||||||
return re.sub(r'[^\w\s]', '', text).lower()
|
return re.sub(r'[^\w\s]', '', text).lower()
|
@ -1,3 +1,5 @@
|
|||||||
|
# 命令行菜单驱动程序
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import cppy.cp_util as util
|
import cppy.cp_util as util
|
||||||
|
|
@ -1,2 +0,0 @@
|
|||||||
" my Some sure acquaintance or other, my dear, sure,other I suppose; I am sure I do not
|
|
||||||
know. sure "
|
|
Loading…
Reference in new issue