Error with the termset
Aminolroaya opened this issue · comments
Zahra Aminolroaya commented
Hi,
With negspacy 1.0.0 and spacy 3.0.1, I get the error for using termsets:
'negex -> neg_tersmset extra fields not permitted'
nlp = spacy.load("en_core_web_sm")
ts = termset("en")
nlp.add_pipe(
"negex",
config={
"neg_tersmset": ts.get_patterns()
}
)
Can you help?
Jeno Pizarro commented
Looks like a typo in "neg_termset". Give that a shot!
Zahra Aminolroaya commented
Thanks :D