MailFIlter V1.2

张雯琳 发布于 2013/05/15 10:06
阅读 68
收藏 0

@断鸿 你好,想再跟你请教个问题:我在windows cmd中运行 python server.py后出现这样的错误

E:\TDDOWNLOAD\mailFilter>python server.py

./data/normal/

./data/trash/

Traceback (most recent call last):

  File "server.py", line 12, in <module>

    init.ratio = init.getRatio()

  File "E:\TDDOWNLOAD\mailFilter\splitEmail.py", line 99, in getRatio

    dic_normal_ratio = self.getNTRatio('normal')                        #单词在正常邮件中出现的概率

  File "E:\TDDOWNLOAD\mailFilter\splitEmail.py", line 81, in getNTRatio

    counter = collections.Counter(self.wordlist[typ])

AttributeError: 'module' object has no attribute 'Counter'

期待您的回复,非常感谢

加载中
返回顶部
顶部