FoolNLTK icon indicating copy to clipboard operation
FoolNLTK copied to clipboard

run error in mac ox

Open tqyq opened this issue 7 years ago • 7 comments

/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/bin/python3.6 /Users/altman/IdeaProjects/gopath/src/labs/fool_test/test.py /usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6 return f(*args, **kwds) starting load model Traceback (most recent call last): File "/Users/altman/IdeaProjects/gopath/src/labs/fool_test/test.py", line 4, in print(fool.cut(text)) File "/usr/local/lib/python3.6/site-packages/fool/init.py", line 36, in cut _check_model() File "/usr/local/lib/python3.6/site-packages/fool/init.py", line 26, in _check_model LEXICAL_ANALYSER.load_model() File "/usr/local/lib/python3.6/site-packages/fool/lexical.py", line 75, in load_model self.map = DataMap(os.path.join(data_path, "maps.pkl")) File "/usr/local/lib/python3.6/site-packages/fool/lexical.py", line 20, in init self._load(path) File "/usr/local/lib/python3.6/site-packages/fool/lexical.py", line 26, in _load with open(path, 'rb') as f: FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/fool/maps.pkl'

Process finished with exit code 1

tqyq avatar Dec 28 '17 10:12 tqyq

I load model from sys.prefix

you can copy the model file to /usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/fool/

I will fix this next version !

thanks !!

rockyzhengwu avatar Dec 28 '17 11:12 rockyzhengwu

same error on ubuntu, how to solve? FileNotFoundError: [Errno 2] No such file or directory: '/usr/fool/maps.pkl'

liu-nlper avatar Dec 29 '17 07:12 liu-nlper

@liu-nlper you can copy fool from /usr/local to /usr/

rockyzhengwu avatar Dec 29 '17 07:12 rockyzhengwu

@rockyzhengwu 好了,很好的工具,建议把文档写的全点,给出训练语料来源,词性映射表之类的;还有增加一些和其它工具的在开源语料上的对比实验,包括分词性能和分词速度。

liu-nlper avatar Dec 29 '17 07:12 liu-nlper

@liu-nlper 谢谢建议,正在努力中

rockyzhengwu avatar Dec 29 '17 08:12 rockyzhengwu

What is the dataset for training named entity recognition model? Is the dataset available(open)? Thank you!!

kumiko-oreyome avatar Apr 05 '18 13:04 kumiko-oreyome

怎么解决的

xidiandb avatar Apr 18 '18 07:04 xidiandb