stefan-it / flair-pos-tagging

Flair Embeddings for PoS Tagging: A Multilingual Evaluation
6 stars 1 forks source link

Cannot reach all Arabic embeddings e.x. fasttext and pooled embeddings #3

Open abeermohamed1 opened 4 years ago

abeermohamed1 commented 4 years ago

I appreciate your help suddenly i am getting this error when do training.

OSError Traceback (most recent call last)

in () 58 BertEmbeddings(bert_model_or_path = data_folder), 59 #flair fast embedding ---> 60 WordEmbeddings('ar'), 61 62 2 frames /usr/local/lib/python3.6/dist-packages/flair/file_utils.py in get_from_cache(url, cache_dir) 216 if response.status_code != 200: 217 raise IOError( --> 218 f"HEAD request failed for url {url} with status code {response.status_code}." 219 ) 220 OSError: HEAD request failed for url https://s3.eu-central-1.amazonaws.com/alan-nlp/resources/embeddings-v0.4/ar-wiki-fasttext-300d-1M.vectors.npy with status code 301.
stefan-it commented 4 years ago

Hi @abeermohamed1 ,

this topic is highly discussed in https://github.com/flairNLP/flair/issues/1831 at the moment. Quick workaround would be to use the GH-1831-model-locations branch from Flair. This comes with the corrected urls for all embeddings/models and should include word embeddings :)

stefan-it commented 4 years ago

Update: PR was now merged, so you should try latest version from master branch :)

abeermohamed1 commented 4 years ago

@stefan-it Thank you :)