Hi! I am using the NER Wikipedia linker of flair. In my project, I install flair and import the linker as
tagger=Classifier.load('linker')
But when trying to load it, I get the following error:
File "/usr/local/lib/python3.8/dist-packages/flair/nn/model.py", line 559, in load
return cast("Classifier", super().load(model_path=model_path))
File "/usr/local/lib/python3.8/dist-packages/flair/nn/model.py", line 165, in load
state = model_path if isinstance(model_path, dict) else load_torch_state(str(model_path))
File "/usr/local/lib/python3.8/dist-packages/flair/file_utils.py", line 354, in load_torch_state
f = load_big_file(model_file)
File "/usr/local/lib/python3.8/dist-packages/flair/file_utils.py", line 50, in load_big_file
with open(f, "rb") as f_in:
FileNotFoundError: [Errno 2] No such file or directory: 'linker'
Could some one help me? Trying it on Google Colab works for me, but when using my local machine it does not find it.
Hi! I am using the NER Wikipedia linker of flair. In my project, I install flair and import the linker as
tagger=Classifier.load('linker')
But when trying to load it, I get the following error:Could some one help me? Trying it on Google Colab works for me, but when using my local machine it does not find it.