Skip to content

Unable to load model due to torchtext dependency #10

@RaahimSiddiqi

Description

@RaahimSiddiqi

Trying the latest version of SinaTools and am facing some issues when loading the NER model. I installed it using the pip command, and downloaded the NER model using the "download_files -f NER" command. I am attempting to run the sample script:

from sinatools.ner.entity_extractor import extract

extract('ذهب محمد إلى جامعة بيرزيت')

and am facing the following error:

ModuleNotFoundError: No module named 'torchtext'

Despite the latest release saying torchtext dependency was removed. Upon downloading torchtext and running this code again, I get the following error:

OSError: [WinError 127] The specified procedure could not be found

I have tried creating a fresh environment as well to no effect.

Environment:
Python 3.11.11
Windows 11
Dependencies: Installed using "pip install sinatools"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions