Open stinenyhus opened 1 year ago
Hi there, I had the same error. To anyone who might get stuck on this: You can find working links to the models you need in danlp/danlp/download.py. I found and downloaded bert for NER with this link: http://danlp-downloads.alexandra.dk/models/bert.ner.zip
Then, to get the bert NER model working, I took the BertNer
class from danlp/danlp/models/bert_models.py (find other models in that folder) and substituted
weights_path = download_model('bert.ner', cache_dir,
process_func=_unzip_process_func,
verbose=verbose)
with
weights_path = "bert.ner" # path to downloaded model
When creating the model from this class, i.e. bert = BertNer()
, the rest works as expected.
Hope that helps until the issue is fixed :)
When I try to use the functions for loading the pretrained word embeddings as shown in documentation (https://github.com/alexandrainst/danlp/blob/master/docs/docs/tasks/embeddings.md), I get an empty URLError.
Specifically, I run
or
I get the following error for both versions:
Environment