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

Loading POS Tagger #3

Open
Dinarque opened this issue Sep 29, 2024 · 0 comments
Open

Loading POS Tagger #3

Dinarque opened this issue Sep 29, 2024 · 0 comments

Comments

@Dinarque
Copy link

Hello,

I am very interested in you work on Ancient Greek and tried to download the model you created to use it on POS tagging with the code given in the readme

from flair.models import SequenceTagger
tagger = SequenceTagger.load('SuperPeitho-FLAIR-v2/final-model.pt')

Unfortunately it seems there is a problem with the pt file.
I encounter this mistake : -> 1338 magic_number = pickle_module.load(f, **pickle_load_args)
1339 if magic_number != MAGIC_NUMBER:
1340 raise RuntimeError("Invalid magic number; corrupt file?")

UnpicklingError: invalid load key, 'v'

I tried to download the model from the raw file which changed the error as a problem happens in the HF authentification :
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '../LM/SuperPeitho-v1'. Use repo_type argument if needed.
It seems that the tokenizer the model is trying to load is not available and I havent discovered a way to change it into a correct path to make the model run.

Does the POS model still work for you with the code given on github ? Would you have other ideas to solve this and use the model ?

Many thanks for your help and good luck for your current works,
Best,
Louis J

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