-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Bug]: cannot load 'de-pos-fine-grained' #3237
Comments
Hello @LydiaKoerber , The model is in a old version and I will talk to @alanakbik to provide an uptodate version. In the meantime you can download the model from https://nlp.informatik.hu-berlin.de/resources/models/de-pos-tweets/de-pos-twitter-v0.1.pt when loading the model, you need to add some simple fix:
|
If I remember correctly, this model was actually trained by @stefan-it. |
Ah, so we could upload the model to the Model Hub? |
Hi @LydiaKoerber , after conversation with @alanakbik we decided that it would be better to have a re-trained version on the model hub, because lot of internal modules in the model are pretty depracted and outdated (For example So I re-trained the model and documented it here. I also uploaded the new model to the Hugging Face Model Hub - demo usage with latest Flair version: from flair.data import Sentence
from flair.models import SequenceTagger
model = SequenceTagger.load('flair/de-pos-fine-grained')
sent = Sentence("@Sneeekas Ich nicht \o/", use_tokenizer=False)
model.predict(sent)
print(sent) this should correctly return: Sentence[4]: "@Sneeekas Ich nicht \o/" → ["@Sneeekas"/ADDRESS, "Ich"/PPER, "nicht"/PTKNEG, "\o/"/EMO] I will prepare PR for Flair (documentation update) and model card on the Model Hub soon! |
Great, thanks a lot! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the bug
Hi!
I tried to use the fine-grained PoS-Tagger for German Twitter data described here, but unfortunately, I ran into an error trying to load the model. Is this model still included in flair?
Otherwise, can you recommend another fine-grained flair model for PoS-tagging for German (apart from basic
de-pos
)?Many thanks in advance!
To Reproduce
Expected behavior
no error?
Logs and Stack traces
Screenshots
No response
Additional Context
No response
Environment
The text was updated successfully, but these errors were encountered: