negspacy

spaCy pipeline object for negating concepts in text

MIT License

Downloads
12.9K
Stars
266
Committers
6

Bot releases are hidden (Show)

negspacy - Spacy 3.3 support Latest Release

Published by jenojp over 2 years ago

negspacy - SpaCy 3.2 Support

Published by jenojp over 2 years ago

negspacy - spaCy 3.1 Support

Published by jenojp almost 3 years ago

negspacy - Spacy 3.0 support

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.

negspacy - Minor bug fix, improve chunk prefix functionality

Published by jenojp almost 4 years ago

  • Big thanks to @lcreteig for pull request #20, which allows a user to update the extension name, thus being able to use multiple instances of negspacy in a pipeline:
negex = Negex(nlp, extension_name="myownname")

  • Small modifications to make it easier to users to add or remove patterns on the fly:
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"])
negspacy - Pseudo negation bug fix, new termsets, spaCy 2.2.4 support

Published by jenojp over 4 years ago

  • fixes issue #11
  • modify termsets to distinguish generic and clinical phrases, issue #10
  • confirm support for spaCy 2.2.4
negspacy - release for Zenodo DOI generation only

Published by jenojp over 4 years ago

Not publishing to pypi

negspacy - Support for spacy 2.2.3

Published by jenojp almost 5 years ago

negspacy - Incremental update - enhancement for #8

Published by jenojp about 5 years ago

Adds ability for user to consider first tokens of noun chunks as negation terms.

  • #7 Bug fix to fix issue in spacy 2.1.8 where using an entity ruler and not finding any entities would cause doc.is_nered to return false. This would make negspacy believe named entity recognition was not performed, throwing an error, incorrectly.
  • moved patterns to termset lookup file, making it easier to support multiple languages. #6
  • add additional patterns (contractions)
negspacy - Incremental Alpha release - user specified terminology lists

Published by jenojp about 5 years ago

  • Users can specify negation terminology
  • Improved error handling
negspacy - Alpha version with windows bug fix

Published by jenojp about 5 years ago

negspacy - Initial alpha release

Published by jenojp about 5 years ago