且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Stanford CoreNLP TokensRegex/在Python中解析.rules文件时出错

更新时间:2022-11-30 16:09:04

我们真的平衡了我们的帮助资源,不是吗?

We really have balkanized our help resources, haven't we?

签出此行:

Caused by: java.io.IOException: Unable to open "Users/Documents/utils/tokenrgxrules.rules" as class path, filename or URL

我怀疑它正在尝试提出相对路径而不成功.如果用文件的绝对路径替换tokenrgxrules.rules会发生什么?

I suspect it is trying to come up with a relative path and not succeeding. What happens if you replace tokenrgxrules.rules with an absolute path to the file?