As it was proposed by Using Ancient Greek Notebook.
tagger = SequenceTagger.load(‘SuperPeitho-FLAIR-v2/final-model.pt’)
leads to
HTTPError: 401 Client Error: Unauthorized for url:
Hi @shivam. Thank you for your reply!
Indeed after realising that SuperPeitho-FLAIR-v2/final-model.pt is not hosted on HF I cloned the git repo, downloaded the lfs .pt file, installed flair framework and tried to load it locally:
tagger = SequenceTagger.load(’/content/ag/SuperPeitho-FLAIR-v2/final-model.pt’)
I don’t have GPU resources, so i work on CoLab. From error logs :
‘…tokenizer_config = get_tokenizer_config(pretrained_model_name_or_path, **kwargs)’
it is seen that the tagger tries to load some configs which don’t exist in final-model.pt
Although the author claims that it is a pre-trained POS Tagging model with FLAIR framework, aparently the config files are not included in it.
It would be great if we could use FLAIR framework, which has powerful NER functions for morphological analysis.