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

java预测结果与python预测结果不一致 #32

Open
saberwangcn opened this issue Oct 14, 2020 · 5 comments
Open

java预测结果与python预测结果不一致 #32

saberwangcn opened this issue Oct 14, 2020 · 5 comments

Comments

@saberwangcn
Copy link
Contributor

saberwangcn commented Oct 14, 2020

使用python训练模型,然后功过mynlp库加载模型文件xx.bin。 对同一份数据进行预测, 有7%的数据与python预测结果不一致。人工检查,发现python的分类更准确。请问是什么原因?
mynlp版本使用 3.2.2

@saberwangcn
Copy link
Contributor Author

把Dictionary.kt 的99行更改为val word_hashes = IntArrayList(), 预测结果就一致了。比对了c版0.9.2的代码和kotlin实现的代码,发现了此问题

@Jingjing-Primer
Copy link

Where do you get the python version of mynlp? I am trying to use mynlp and test the performance but I am not familiar with java and I kind of want to use the python version of mynlp.

@jimichan
Copy link
Member

mynlp only has java version

@jimichan
Copy link
Member

@saberwangcn 感谢这几个bug的fix。已经发布3.3.0-BETA1,已经对代码进行合并。

@yifanhunter
Copy link

@saberwangcn 感谢这几个bug的fix。已经发布3.3.0-BETA1,已经对代码进行合并。

测试还是有不一致的情况,不知道是不是jieba分词产生影响的~ 你们4.0.0是最新稳定版本了吗,可有写版本更新的内容啊?

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

4 participants