Skip to content

problem in import and use pipeline for tokenize the sentence #89

@reza009

Description

@reza009

when using this code in you class for start to tokenize the sentences :

from dadmatools.pipeline import Pipeline pipeline = Pipeline("tok")

got below error and application crash.

HTTPError Traceback (most recent call last)
/usr/local/lib/python3.11/dist-packages/huggingface_hub/utils/_http.py in hf_raise_for_status(response, endpoint_name)
408 try:
--> 409 response.raise_for_status()
410 except HTTPError as e:

13 frames
HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/Dadmatech/POS/resolve/main/persian.tagger.mdl

The above exception was the direct cause of the following exception:

RepositoryNotFoundError Traceback (most recent call last)
/usr/local/lib/python3.11/dist-packages/huggingface_hub/utils/_http.py in hf_raise_for_status(response, endpoint_name)
457 " https://huggingface.co/docs/huggingface_hub/authentication"
458 )
--> 459 raise _format(RepositoryNotFoundError, message, response) from e
460
461 elif response.status_code == 400:

RepositoryNotFoundError: 404 Client Error. (Request ID: Root=1-68755df8-2075570b259a3de5552e5a2f;28986c13-6111-4bb9-97af-75ee8d9b6874)

Repository Not Found for url: https://huggingface.co/Dadmatech/POS/resolve/main/persian.tagger.mdl.
Please make sure you specified the correct repo_id and repo_type.
If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface.co/docs/huggingface_hub/authentication

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions