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

Replacing the base model #24

Open
golankai opened this issue Nov 18, 2024 · 2 comments
Open

Replacing the base model #24

golankai opened this issue Nov 18, 2024 · 2 comments

Comments

@golankai
Copy link

Hello!
Is it possible to replace the base NER model that the tool uses in the identifying phase?
I want to try it with a new model trained on my data.
Thank you very much!

@talbaumel
Copy link
Contributor

Hi, you can find the model in this repo
Hope it helps :)

@omri374
Copy link
Contributor

omri374 commented Nov 18, 2024

Adding on @talbaumel's message, as Hebsafeharbor is built on top of Microsoft Presidio, you can plug in any NER model through Presidio. Specifically, there is native support for spacy, huggingface and stanza models.
This is where the model is loaded:

nlp_engine = HebSpacyNlpEngine(models={"he": "he_ner_news_trf"})

More info on customizing the NER model in Presidio can be found here: https://microsoft.github.io/presidio/analyzer/customizing_nlp_models/

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

3 participants