-
Notifications
You must be signed in to change notification settings - Fork 246
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
TypeError: classification_report() got an unexpected keyword argument 'target_names' #93
Comments
I guess the problem lies in the eval.py file. Since I am doing "per_token" classification, it takes the seqeval.metrics.classification_report which does not take target_names as input.
|
Hey @guggio thanks for reporting the issue and also for finding the problematic code. We already fixed this bug and are merging quite some changes into master this minute. Please update your farm installation with a git pull if you installed through "pip install --editable ." Please keep me updated if that resolved your issue. Thanks! |
Hi @Timoeller thanks a lot for the fix! I can run my BIO-classification model now. However, there is an additional issues I faced:
|
We changed the way the dev set is splitted away from train set, there might be some issues there that didn't come up during our test pipeline. I will look into that next. There also seems to be a small mistake in the classification report. I am currently working on that, too. |
Ok, we fixed the bug with the classification report. The issue you reported on a dev_split != 0.0 seems to be coming from a error in _file_to_dicts() in processor.py file, because the dicts returned from that function is None. Maybe you can post the input format of your NER data, so we could help you out. |
Thanks a lot for the bugfix and your help :) I had to write two textfiles based on my dataframe (probably not the most efficient solution). I was able to run the model on my data and it seems like I am achieving very promising results. Thanks again for your great work! |
Nice! If you have good results to share we are more than happy to celebrate with you : ) |
Hi guys,
I really love your pre-trained models and that they are so easy to implement with FARM. I was classifying German text according to the tutorial and was able to adopt it to use it on my own dataset. However, for the BIO-classification of my texts, I keep on getting the same error message during training, despite closely following your tutorial code.
Thanks in advance,
Sebastian
Error message
Here you can find my code that worked fine until training.
System:
The text was updated successfully, but these errors were encountered: