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

Loading custom spacy NER model into Spacyr #198

Closed
mshariful opened this issue Aug 21, 2020 · 1 comment
Closed

Loading custom spacy NER model into Spacyr #198

mshariful opened this issue Aug 21, 2020 · 1 comment

Comments

@mshariful
Copy link

mshariful commented Aug 21, 2020

Hello,

I have sucessfully updated Spacy NER model (using Python / Spyder IDE) with own data and the model is saved in a folder
called 'c:\updated_ner'. I can easily load this updated model from Python/ Spyder IDE by simple command

import spacy
nlp=spacy.load('c:\updated_ner')

and then everything works fine. How do I use my updated NER model in Spacyr? I have got
a script from a person where he uses

parsed_text<-spacyr::spacy_parse(x = text, lemma = TRUE, entity = TRUE)

How do I make sure that spacyr use my updated NER model? My python (Anaconda distribution) (that's used to update the Spacy NER model) is different from my spacyr's python that got installed in RStudio
as I used spacy_install() command from Spacyr.

Thank you very much for your support.

Regards,
Sharif

@kbenoit
Copy link
Collaborator

kbenoit commented Sep 1, 2022

Same as #180, closing here.

@kbenoit kbenoit closed this as completed Sep 1, 2022
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