Skip to content

Commit

Permalink
Add Arabic models
Browse files Browse the repository at this point in the history
  • Loading branch information
alanakbik committed Jul 23, 2024
1 parent 7ae9607 commit fc94c51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flair/models/sequence_tagger_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,6 @@ def _fetch_model(model_name) -> str:
"chunk": "flair/chunk-english",
"chunk-fast": "flair/chunk-english-fast",
# Language-specific NER models
"ar-ner": "megantosh/flair-arabic-multi-ner",
"ar-pos": "megantosh/flair-arabic-dialects-codeswitch-egy-lev",
"da-ner": "flair/ner-danish",
"de-ner": "flair/ner-german",
"de-ler": "flair/ner-german-legal",
Expand Down Expand Up @@ -706,6 +704,9 @@ def _fetch_model(model_name) -> str:
"de-pos-tweets": "/".join([hu_path, "de-pos-tweets", "de-pos-twitter-v0.1.pt"]),
"de-ner": "/".join([hu_path, "de-ner", "de-ner-conll03-v0.4.pt"]),
"de-ner-germeval": "/".join([hu_path, "de-ner-germeval", "de-ner-germeval-0.4.1.pt"]),
# Arabic models
"ar-ner": "/".join([hu_path, "arabic", "ar-ner.pt"]),
"ar-pos": "/".join([hu_path, "arabic", "ar-pos.pt"]),
# French models
"fr-ner": "/".join([hu_path, "fr-ner", "fr-ner-wikiner-0.4.pt"]),
# Dutch models
Expand Down

0 comments on commit fc94c51

Please sign in to comment.