Default coreference usage runs into: "Did you forget to call initialize()
? "
#13075
-
Discussed in #13060Originally posted by mazieres October 11, 2023 On a fresh python3 venv with nlp = spacy.load("en_core_web_sm")
coref = nlp.add_pipe("experimental_coref")
doc = nlp("This is a sentence.") And ran into this error (full log below):
I've encountered many posts on the web with comparable errors but none of the solution fixed my problem. Any idea where/what I could look for ? Thanks in advance for your help. Full error log
Info about spaCy
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Hi @mazieres, please provide your code and config so we can look into this. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi @rmitsch, my post includes the packages installed, the code and its output together with the requested Info about SpaCy section. What else can I provide ? |
Beta Was this translation helpful? Give feedback.
-
Hi, you're trying to run an uninitialized/untrained new coreference component rather than loading an existing trained model. You can install our experimental demo English model following the directions here: https://github.com/explosion/spacy-experimental/releases/tag/v0.6.1 |
Beta Was this translation helpful? Give feedback.
-
I found the answer, it was super hard to find. #11585 This shows how to use the default which is good enough for school projects like mine! |
Beta Was this translation helpful? Give feedback.
I found the answer, it was super hard to find. #11585
This shows how to use the default which is good enough for school projects like mine!