pythonaho-corasick

ahocorasick module problems in linux with Python 2.7


Recently I am trying to use ahocorasick in centos5.8_x64 with python2.7.5,but I found that the result is abnormal,so would you please tell me the reason?I found the module runs perfectly in my windows 7 with python2.7.5.Here is my test code and result in linux.

>>> import ahocorasick
>>> tree=ahocorasick.KeywordTree()
>>> tree.add("id")
>>> tree.make()
>>> tree.search("sdfsdf fsfsdf")
>>> tree.search("sdfsdf fsfsdf")
(240103, 240105)
>>> tree.search("sdfsdf fsfsdf")
(240103, 240105)
>>> 

The return values should be None,but I don't know why the return values seems to be a overflow number?


Solution

  • use Centos6.4 to solve the problem