Problems with ahocorasick module on Linux with Python 2.7

I recently try to use ahocorasick in a centos5.8_x64 file with python2.7.5, but I found that the result is abnormal, so please tell me the reason? I found that the module works fine in my windows 7 using python2. 7.5. Here is my test code and result on 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 ​​are apparently overflow numbers?

+4
source share
2 answers

use Centos6.4 to solve the problem

+1
source
+2

All Articles