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

分词Error in file_coding(code[1]) : Cannot open file #51

Open
cnhzzx opened this issue Apr 21, 2017 · 1 comment
Open

分词Error in file_coding(code[1]) : Cannot open file #51

cnhzzx opened this issue Apr 21, 2017 · 1 comment

Comments

@cnhzzx
Copy link

cnhzzx commented Apr 21, 2017

@qinwf 您好,我在分词时碰到了如下问题:

wk["三维工程()排污费征收标准将提高一倍 四类环保企业望受益 ://..////."]
Error in file_coding(code[1]) : Cannot open file

当我去掉最后一个"."就可以了

wk["三维工程()排污费征收标准将提高一倍 四类环保企业望受益 ://..////"]
[1] "排污费" "征收" "标准" "提高" "一倍" "四类" "环保" "企业" "受益"

这是什么原因呢?

@qinwf
Copy link
Owner

qinwf commented Apr 21, 2017

使用 write = "NOFILE" 试试?关闭路径检测。

wk = worker(write = "NOFILE")
wk["三维工程()排污费征收标准将提高一倍 四类环保企业望受益 ://..////."]

文档写得比较乱,这里提到了一下 write = "NOFILE" http://qinwenfeng.com/jiebaR/segment.html
之后更新一下。

之后可能过度掉对文件分词,自动检测路径的这个功能,或者把它放到新的函数里。

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

No branches or pull requests

2 participants