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

关于如何迁移到自己数据集的相关问题 #5

Open
qinglongheu opened this issue Dec 2, 2022 · 0 comments
Open

关于如何迁移到自己数据集的相关问题 #5

qinglongheu opened this issue Dec 2, 2022 · 0 comments

Comments

@qinglongheu
Copy link

你好, 我想问一下如何修改代码将用自己的数据集训练好的ner模型加载到nertoolkit中?

import cogie

tokenize sentence into words

tokenize_toolkit = cogie.TokenizeToolkit(task='ws', language='english', corpus=None)
words = tokenize_toolkit.run('Ontario is the most populous province in Canada.')

named entity recognition

ner_toolkit = cogie.NerToolkit(task='ner', language='english', corpus='conll2003')
ner_result = ner_toolkit.run(words)

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

1 participant