Negspacy

Latest version: v1.0.4

Safety actively analyzes 620800 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

1.0.3

1.0.2

1.0.1

1.0.0

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](https://github.com/jenojp/negspacy/blob/v0.1.9_spacy_2.3.5/README.md).

0.1.9

0.1.8

- 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:

python
negex = Negex(nlp, extension_name="myownname")



- Small modifications to make it easier to users to add or remove patterns on the fly:
python
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"])

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.