jenojp / negspacy

spaCy pipeline object for negating concepts in text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error with the termset

Aminolroaya opened this issue · comments

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?

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

Thanks :D