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

代码疑问 #2

Closed
JackeyGuo opened this issue Sep 11, 2020 · 1 comment
Closed

代码疑问 #2

JackeyGuo opened this issue Sep 11, 2020 · 1 comment

Comments

@JackeyGuo
Copy link

你好,谢谢您提供的代码,我看到您在readme中模型一里说“使用字向量,首先制作字典,选取前4996个字”,在代码里没有看到呢,能解释一下吗?而且我用模型一在自己的数据集,跑出来F1值为0.

@X-jun-0130
Copy link
Owner

这部分其实就是根据字频取前4996个;
字典我保存下来了word2id.txt,在data文件中,解压就能看到,代码我没放进去;
使用自己的数据集,可以根据文档,自己重新建立一个字典,替换word2id.txt就好;
使用我提供的字典的话,如果您的文档与字典字符相差比较大的话,模型可能没结果的

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