AttributeError: no attribute 'add_to_pipe' #11718
-
I followed exactly the instructions in this URL for usage: I get: Does anybody know how to solve this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @pranavnbapat , can you post the whole traceback in your question? It seems that I can't replicate your problem. In the meantime, can you try doing this instead: import spacy
import contextualSpellCheck
nlp = spacy.load("en_core_web_sm")
# You can pass the optional parameters to the contextualSpellCheck
# eg. pass max edit distance use config={"max_edit_dist": 3}
nlp.add_pipe("contextual spellchecker") Lastly, contextualSpellCheck is a third-party package from the spaCy Universe. You might be better off asking directly to the original author's discussion forum. |
Beta Was this translation helpful? Give feedback.
-
The spacy docs alert to a update in the declaration for 3.0 and higher. Here is the section in the docs. I will also include a screenshot of the relevant information below. |
Beta Was this translation helpful? Give feedback.
Hi @pranavnbapat , can you post the whole traceback in your question? It seems that I can't replicate your problem. In the meantime, can you try doing this instead:
Lastly, contextualSpellCheck is a third-party package from the spaCy Universe. You might be better off asking directly to the original author's discussion forum.