Spaces:
Running
How to use other models
Hello all,
Thanks to the creators of Presidio, I am using it with great success in my project.
My question is, when you instantiate an AnalyzerEngine object, it defaults to using the spaCy model.
Is there a simple way to get the analyzer using the Hugging Face obi_roberta_i2b2 model? From testing with the demo, I find that model gives better results on my data set.
I've been through the demo code and can't make heads or tails of it, obviously whomever wrote it was quite a bit brighter than I.
Thanks for any advice you can offer.
Hi,
Please see the demo code here for examples to instantiating Presidio with other models: https://huggingface.co/spaces/presidio/presidio_demo/blob/b7be871e6a6692ea5945974c891409552889c927/presidio_nlp_engine_config.py#L33
Full docs could be found here: https://microsoft.github.io/presidio/analyzer/customizing_nlp_models/