gtoffoli / spacy-ar_core_news_md

Unofficial Arabic language model for spaCy
MIT License
5 stars 0 forks source link

Why not to push your work to the official spacy arabic? #1

Open ROBERT-MCDOWELL opened 3 hours ago

ROBERT-MCDOWELL commented 3 hours ago

it would be nice to push it since the arabic on spacy official arabic is 5 years old already.... it would be easier for app developers to integrate it since it needs mostly code normalization between language models... thanks for your work!

ROBERT-MCDOWELL commented 3 hours ago

btw I have this code:

def load_spacy_model(language): lang_pack = language_mapping[language]["model"] try: nlp = spacy.load(lang_pack) except OSError: print("Spacy model not found. Tyring to download it...") try: subprocess.run(["python", "-m", "spacy", "download", lang_pack]) nlp = spacy.load(lang_pack) except OSError: raise ValueError(f"Spacy model does not exist for {language_mapping[language]['name']}...") return nlp

how to reach your repo with spacy.load function?