ljvmiranda921 / calamanCy

NLP pipelines for Tagalog using spaCy
MIT License
44 stars 3 forks source link

Download Error on tl-calamancy-lg #35

Closed Tutuldot closed 9 months ago

Tutuldot commented 9 months ago

Hi,

Tried to use the model I encounter error on downloading tl-calamancy-lg.

Below is the error message when I run nlp = calamancy.load("tl_calamancy_lg-0.1.0").

ERROR: HTTP error 404 while getting https://huggingface.co/ljvmiranda921/tl_calamancy_lg/resolve/55ef01a244f3ca77676de6ba5a2beea0ba3e0021/tl_calamancy_lg-any-py3-none-any.whl ERROR: Could not install requirement tl-calamancy-lg==any from https://huggingface.co/ljvmiranda921/tl_calamancy_lg/resolve/55ef01a244f3ca77676de6ba5a2beea0ba3e0021/tl_calamancy_lg-any-py3-none-any.whl because of HTTP error 404 Client Error: Not Found for url: https://huggingface.co/ljvmiranda921/tl_calamancy_lg/resolve/55ef01a244f3ca77676de6ba5a2beea0ba3e0021/tl_calamancy_lg-any-py3-none-any.whl for URL https://huggingface.co/ljvmiranda921/tl_calamancy_lg/resolve/55ef01a244f3ca77676de6ba5a2beea0ba3e0021/tl_calamancy_lg-any-py3-none-any.wh

Thank you.

Anthony

ljvmiranda921 commented 9 months ago

Hi @Tutuldot ,

Can you try this? First install and download the model from HuggingFace:

pip install https://huggingface.co/ljvmiranda921/tl_calamancy_lg/resolve/main/tl_calamancy_lg-any-py3-none-any.whl

It's 450 MB file, so if the download errors out midway then it won't load fully. Then I suggest running this code:

from calamancy.loaders import load
nlp = load("tl_calamancy_lg-0.1.0")

Alternatively, you can try (after downloading the file):

import spacy
nlp = spacy.load("tl_calamancy_lg")
Tutuldot commented 9 months ago

thanks a lot. its now working.

image

ljvmiranda921 commented 9 months ago

Ok, closing this now :) Thank you! This should also now be fixed in 0.1.2