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

直接运行test.py未得到预期效果 #1

Open
Carbord opened this issue Nov 30, 2017 · 4 comments
Open

直接运行test.py未得到预期效果 #1

Carbord opened this issue Nov 30, 2017 · 4 comments

Comments

@Carbord
Copy link

Carbord commented Nov 30, 2017

您好,我直接在Anaconda的spyder里运行test.py文件,输入测试句子“一叶子面膜真不错”,结果是这样的:{'string': '一叶子面膜真不错', 'entities': []},
这好像跟你的不一样...请问要run的话是要run 那两个ipynb文件吗

@gaoisbest
Copy link
Owner

您好。BrandsNERModel_Test.ipynb 实际上就是加载了 test.py 文件,故运行二者之一皆可以。

“一叶子” 是我们业务相关的实体,data 下的训练数据只是部分训练数据 (由于是部分的训练数据,可能数据集中不包括 “一叶子”),而我给的例子是根据全部训练数据训练的模型的预测结果。

故您需要设置自己的训练集训练模型。

@Carbord
Copy link
Author

Carbord commented Dec 2, 2017

原来如此,谢谢!
那想问一下,有没有一些公开的训练集资源呢?

@gaoisbest
Copy link
Owner

gaoisbest commented Dec 2, 2017

英文有一些公开的语料 CoNLL-2002 and CoNLL-2003 datasets, 抱歉中文我不知道哪里有,自己搜索一下或者自己构建吧。

@Carbord
Copy link
Author

Carbord commented Dec 2, 2017

好的,谢谢~

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