Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

词汇词性的优先级是用户词典>分词判断吗? #139

Open
Sophie-2000 opened this issue Nov 14, 2022 · 0 comments
Open

词汇词性的优先级是用户词典>分词判断吗? #139

Sophie-2000 opened this issue Nov 14, 2022 · 0 comments

Comments

@Sophie-2000
Copy link

因为想要分词比较准确,所以用户词典里面加了很多词汇,这些词汇的词性都被设定为uw,但是这些词汇之前有些是有词性的,我想要先判断用户词典中的词汇是否有词性,若没有再将其设定为uw,可是我没有找到直接判断词汇词性的函数?
我在data文件夹里面看到词性判断错误的提示,可是找不到位置改正,请问可以提供一个解决方案吗?
文件内容如下:
[2022-11-15 00:26:54] 哀 ag->uw
[2022-11-15 00:26:54] 哀愁 a->uw
[2022-11-15 00:26:54] 哀怜 v->uw
[2022-11-15 00:26:54] 哀戚 a->uw
[2022-11-15 00:26:54] 哀伤 an->uw
[2022-11-15 00:26:54] 哀痛 a->uw
[2022-11-15 00:26:54] 哀怨 a->uw
[2022-11-15 00:26:54] 傲视 v->uw
[2022-11-15 00:26:54] 懊悔 v->uw
[2022-11-15 00:26:54] 懊恼 v->uw
[2022-11-15 00:26:54] 懊丧 vn->uw
[2022-11-15 00:26:54] 百无聊赖 vl->uw

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

No branches or pull requests

1 participant