from collections import counter
counter=counter(seg_list)
Building prefix dict from the default dictionary ...
Loading model from cache C:\Users\ADMINI~1\AppData\Local\Temp\jieba.cache
Loading model cost 1.428 seconds.
Prefix dict has been built successfully.
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\test\yuyue.py", line 16, in <module>
counter=counter(seg_list)
NameError: name 'counter' is not defined
from collections import Counter #C字母大写