Open ROBERT-MCDOWELL opened 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?
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!