Metadata-Version: 2.1
Name: negspacy
Version: 0.1.1
Summary: A spaCy pipeline object for negation.
Home-page: https://github.com/jenojp/negspacy
Author: Jeno Pizarro
Author-email: jenopizzaro@gmail.com
License: MIT
Description: <p align="center"><img width="40%" src="docs/icon.png" /></p>
        
        # negspacy: negation for spaCy
        
        [![Build Status](https://travis-ci.org/jenojp/negspacy.svg?branch=master)](https://travis-ci.org/jenojp/negspacy) [![Built with spaCy](https://img.shields.io/badge/made%20with%20❤%20and-spaCy-09a3d5.svg)](https://spacy.io)
        
        spaCy pipeline object for negating concepts in text. Based on the NegEx algorithm.
        
        *NegEx - A Simple Algorithm for Identifying Negated Findings and Diseasesin Discharge Summaries
        Chapman, Bridewell, Hanbury, Cooper, Buchanan*
        
        ## Installation and usage
        Install the library.
        ```bash
        pip install negspacy
        ```
        
        Import library and spaCy.
        ```python
        import spacy
        from negspacy.negation import Negex
        ```
        
        Load spacy language model. Add negspacy pipeline object. Filtering on entity types is optional.
        ```python
        nlp = spacy.load("en_core_web_sm")
        negex = Negex(nlp, ent_types=["PERSON","ORG"])
        nlp.add_pipe(negex, last=True)
        ```
        
        View negations.
        ```python
        doc = nlp("She does not like Steve Jobs but likes Apple products.")
        
        for e in doc.ents:
        	print(e.text, e._.negex)
        ```
        
        ```console
        Steve Jobs True
        Apple False
        ```
        
        ## Contributing
        [contributing](https://github.com/jenojp/negspacy/blob/master/CONTRIBUTING.md)
        
        ## Authors
        * Jeno Pizarro
        
        ## License
        [license](https://github.com/jenojp/negspacy/blob/master/LICENSE)
        
        ## API Documentation
        [Docs](https://jenojp.github.io/negspacy/)
Keywords: nlp spacy SpaCy negation
Platform: UNKNOWN
Classifier: Intended Audience :: Science/Research
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Requires-Python: >=3.6.0
Description-Content-Type: text/markdown
