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

alias_and_subjects.txt加载有问题 #3

Open
ppliangmua opened this issue Mar 7, 2024 · 3 comments
Open

alias_and_subjects.txt加载有问题 #3

ppliangmua opened this issue Mar 7, 2024 · 3 comments

Comments

@ppliangmua
Copy link

你好,我在使用图中的文件进行re匹配的时候re_userdict = re.compile('^(.+?)(\u0040\u0040 [0-9]+)?(\u0040\u0040[a-z]+)?$', re.U),执行这里word, freq, tag = re_userdict.match(line).groups(),出现了解析错误。在解析alias_and_subjects.txt的第一行“apis cerana cerana fabricius apis cerana cerana fabricius apis cerana cerana fabricius apis cerana fabricius”,re解析结果为“apis cerana cerana fabricius apis cerana cerana fabricius apis cerana cerana fabricius apis cerana fabricius None None”,请问是alias_and_subjects.txt文件内容格式有问题吗?

Uploading 2.png…

@ppliangmua
Copy link
Author

文件路径为/pytorch_bert_entity_linking/my_jieba/init.py

@taishan1994
Copy link
Owner

太久远了,我也不记得了

@ppliangmua
Copy link
Author

ppliangmua commented Mar 8, 2024 via email

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