-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Added NER Support for Yoruba #2230
Conversation
Hello @paula813 running the following code: from flair.datasets import YORUBA_NER
corpus = YORUBA_NER() Throws the following error: Traceback (most recent call last):
File "/home/alan/PycharmProjects/flair/local_load_datasets.py", line 10, in <module>
corpus = YORUBA_NER()
File "/home/alan/PycharmProjects/flair/flair/datasets/sequence_labeling.py", line 1632, in __init__
cached_path(f"{yoruba_path}test.txt", Path("datasets") / dataset_name)
File "/home/alan/PycharmProjects/flair/flair/file_utils.py", line 91, in cached_path
return get_from_cache(url_or_filename, dataset_cache)
File "/home/alan/PycharmProjects/flair/flair/file_utils.py", line 220, in get_from_cache
f"HEAD request failed for url {url} with status code {response.status_code}."
OSError: HEAD request failed for url https://github.com/masakhane-io/masakhane-ner/tree/main/data/yortest.txt with status code 404. I think the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix download bug
Thanks for the information, I fixed the URL. |
The URL is fixed, but the code still does not run: from flair.datasets import YORUBA_NER
corpus = YORUBA_NER() You can check #2227 for a related PR that works. (And please test your code before putting in a PR.) |
I tested it and I think training a model works now. Only after the training is finished it says: |
@paula813 thanks, not sure about the error but the dataset seems to work now! |
NER Support for Yoruba (Introduction task for NLP lecture)