explosion / spaCy

💫 Industrial-strength Natural Language Processing (NLP) in Python
https://spacy.io
MIT License
30.09k stars 4.4k forks source link

extract patterns out the the negated entities #7700

Closed hollywzw closed 3 years ago

hollywzw commented 3 years ago

Hi, how do we extract the patterns of the negations identified? Is there any standard methods of negex we can use?

Like if I want to know which negation pattern below was identified for the negated entity.

NegEx Patterns psuedo_negations - phrases that are false triggers, ambiguous negations, or double negatives preceding_negations - negation phrases that precede an entity following_negations - negation phrases that follow an entity termination - phrases that cut a sentence in parts, for purposes of negation detection (.e.g., "but")

polm commented 3 years ago

There's a 3rd-party plugin called negspacy based on negex.

polm commented 3 years ago

Ah, this is better for the Discussion board, so I'm going to migrate it there.