jenojp / negspacy

spaCy pipeline object for negating concepts in text
MIT License
274 stars 36 forks source link

Error with the termset #32

Closed Aminolroaya closed 3 years ago

Aminolroaya commented 3 years ago

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?

jenojp commented 3 years ago

Looks like a typo in "neg_termset". Give that a shot!

Aminolroaya commented 3 years ago

Thanks :D