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

run_ner.py of huggingface #66

Closed
vthost opened this issue Dec 5, 2019 · 1 comment
Closed

run_ner.py of huggingface #66

vthost opened this issue Dec 5, 2019 · 1 comment

Comments

@vthost
Copy link

vthost commented Dec 5, 2019

Hi,
I want to run a pytorch version and managed to run the code from SolvingAlmostAnythingWithBert, but somehow only for some datasets, and the results seem to be strange. I also tried the huggingface code (adapting the dataset names, special symbols), but there I get very strange results as well:
f1 = 0
loss = 7.114976575394394e-05
precision = 0
recall = 0
Do you maybe now if I can use that code at all or what I would have to adapt apart from the things I mentioned?
Thank you already!

@vthost
Copy link
Author

vthost commented Dec 6, 2019

Just for the records...
I found the problem: in the data files the "B" is separated by \t and this is not recognized in the utils_ner of huggingface, so none of those "B"s was recorded. But that's an easy fix, now it runs :)

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