-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
關於res and Segmentation fault #3
Comments
是的,./res 目录是要自己创建的,然后把模型文件下载解压到这个目录下(下载下来的模型是一个tgz的压缩包,解压方法:tar -zxvf *.tgz,解压出来是一个目录,里面有两个文件:thucke_models, thulac_models,把这两个文件copy到./res/目录下),再运行'./thucke -i ./test1.txt -n 5 -m ./res'就可以了。 |
謝謝您的回覆,好感動。我的是OSX系統,我先來試試,想問說這個是不是已經內建斷詞,有沒有可能套用我自己斷完詞的結果使用呢? |
|
所以我現在使用的問題是卡在哪裡呢?他terminal顯示那樣:/ |
你的报错提示 ./thucke is a directory,应该是执行命令的路径不对,要在THUCKE目录下面执行./thucke,你好像在THUCKE/res/目录下运行的,THUCKE/res/目录下没有thucke这个可执行文件。 |
好怪...覺得有點亂了,不知道您方不方便提供更清楚的使用次序呢?... |
把thucke_models, thulac_models这两个文件copy到./res/目录下,文件名不要改成thucke, thulac,保留原来的名字,再运行一下看行不行 |
我名字都沒有更動呢,他原本名字就長這樣。 |
你的res目录下的model从哪里下载的?是从:http://thucke.thunlp.org/ 这个页面中指定的链接(如下图红色方框中)下载的么? |
我是在這個code頁面 download as zip, 我來試試你那個^_^ 謝謝親願意花那麼多時間幫我~ |
好酷!希望我們的實驗室也能跟你們一樣強! |
下載中,好像滿大的QQ |
编译了么?执行路径对不对? |
請問res資料夾是要自己創建嗎?
因為我跑了./thucke -i ./test1.txt -n 5 -m ./res
他出現
invalid model_path: ./res
invalid model_path: ./res
Segmentation fault: 11
目前還是用內附的text1文本,Segmentation fault?
謝謝提供開源
The text was updated successfully, but these errors were encountered: