Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for using self-trained spacy ner model #2

Open
mingkang111 opened this issue Jun 21, 2023 · 1 comment
Open

Allow for using self-trained spacy ner model #2

mingkang111 opened this issue Jun 21, 2023 · 1 comment

Comments

@mingkang111
Copy link

Hi team,

Recently we have been trying to use a self-trained spacy ner model in scrubadub. However, the condition checks in the line https://github.com/LeapBeyond/scrubadub_spacy/blob/main/scrubadub_spacy/detectors/spacy.py#L111 will raise an error.

raise ValueError("Unable to find spacy model '{}'. Is your language supported? "
                            "Check the list of models available here: "
                           "https://github.com/explosion/spacy-models ".format(self.model))

We'd like to ask for the feature that allows using a self-trained spacy ner model. For example, removing this check or relaxing it? Thanks!

        if not self.check_spacy_model(self.model):
            raise ValueError("Unable to find spacy model '{}'. Is your language supported? "
                             "Check the list of models available here: "
                             "https://github.com/explosion/spacy-models ".format(self.model))
@1951FDG
Copy link

1951FDG commented Sep 28, 2023

Hi team,

Any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants