spaCy pipeline object for negating concepts in text
MIT License
Bot releases are visible (Hide)
Published by jenojp over 2 years ago
Published by jenojp almost 3 years ago
Published by jenojp over 3 years ago
Version 1.0 is a major version update providing support for spaCy 3.0's new interface for adding pipeline components. As a result, it is not backwards compatible with previous versions of negspacy.
If your project uses spaCy 2.3.5 or earlier, you will need to use version 0.1.9. See See archived readme.
Published by jenojp almost 4 years ago
Published by jenojp about 4 years ago
negex = Negex(nlp, extension_name="myownname")
nlp = spacy.load("en_core_web_sm")
negex = Negex(nlp)
patterns = negex.get_patterns()
negex.add_patterns(
pseudo_negations=["my favorite pattern"],
termination=["these are", "great patterns"],
preceding_negations=["wow a negation"],
following_negations=["extra negation"],
)
negex.remove_patterns(termination = "but", preceding_negations=["wow a negation"])
Published by jenojp over 4 years ago
Published by jenojp over 4 years ago
Not publishing to pypi
Published by jenojp almost 5 years ago
Published by jenojp about 5 years ago
Adds ability for user to consider first tokens of noun chunks as negation terms.
Published by jenojp about 5 years ago
Published by jenojp about 5 years ago
Published by jenojp about 5 years ago
Published by jenojp about 5 years ago