Skip to content
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

运行时出现文件读取问题 这个com.hankcs.hanlp.corpus.io.IOUtil包运行出错 #391

Closed
kelciej opened this issue Jan 25, 2017 · 4 comments

Comments

@kelciej
Copy link

kelciej commented Jan 25, 2017

1
2
3

我指定的root是在C盘eclipse的workplace路径下,并且我的D盘并没有 Doc\语料库 这个文件夹,所以特来请求大神,帮我看一下是什么原因???拜托了

@TylunasLi
Copy link
Contributor

请不要直接执包中的main()方法,这些方法本应剥离到test中用于处理训练数据,其中的路径都是写死的。
同样也请注意,不要扫描本库中的包(如集成到Spring时)。

@hankcs
Copy link
Owner

hankcs commented Jan 28, 2017

感谢反馈,感谢 @TylunasLi 解答,已经去掉了这些main方法

@wangpeng138375
Copy link

请问在移除main方法之前,main里面有个“2014_dictionary.txt”,请问这个词典和“CoreNatureDictionary.txt”里面的词是一样的吗?因为我发现在HMM做中文人名识别的时候,是基于“CoreNatureDictionary.txt”做的词图。

@hankcs
Copy link
Owner

hankcs commented May 26, 2017

具体我记不清了,从名字来看,就是一样的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants