semvec/pypi-packages huggingface dataset:
pynegex 0.0.3.dev0
Pypi package for negex with multilingual support
Requires Python: >=3.6

# PyNegEx

PyNegEx is a PyPI modular package based on Chapman's NegEx implementation. NegEx is a rule-based algorithm to detect assertion in clinical texts.

Motivation behind PyNegEx is to provide the community with a modern python packaing for the algorithm to guarantee easy usage and a space for better maintainability, e.g. add support for other languages.

## Requirements

Tested so far on:

- Python 3.8+

## Install

```sh
pip install pynegex
```

## Usage

```python
import pynegex

pynegex.run(text="patient hat kein Fieber",
            ent_tag="Fieber",
            triggerset_name="cotik-de",
          )
# ['negated', 'patient [PREN]hat kein[PREN] [NEGATED]Fieber[NEGATED]']
```

Supported languages are specificed with `triggerset_name`:

- `'en'` or `'chapman-en'` for English
- `'de'` or `'cotik-de'` for German

Speculation is enabled by default, but you can change it by passing `speculation=False`.

## Modifications

PyNegex uses the original implementation by Chapman with support for German (triggerset by Cotik etal 2016). PyNegEx includes hotfixes for known issues with the original implementation (for more details see [CHANGELOG](CHANGELOG))

## Credits & License

PyNegEx contains code parts that are released in compliance with their original license which is Python 2.5.4.
These code parts are essentially negex algorithm.

Furthermore, credits for the other languages support:

- German: Cotik et al 2016.

## CONTRIBUTIONS

Feel free to support this package by adding support for other languages.
via 0.1.2
initialize your repository
Requires Python: >=3.6

# Via: a command line tool to initialize your repos

Initialize your repository.

## Feature

- [x] `.gitignore`
- [x] `License`

## Tutorial

```sh
# download python .gitignore file and MIT License
# file will be saved to current dir
via -i python -l mit
# print to stdout
via -i python --print
```

## Support

### Ignore

All the files are downloaded from [github/gitignore](https://github.com/github/gitignore)

### License

All the licenses are downloaded through [GitHub License API](https://developer.github.com/v3/licenses/).

* GPL-2.0
* Unlicense
* BSD-2-Clause
* LGPL-2.1
* GPL-3.0
* MIT
* BSD-3-Clause
* Apache-2.0
* EPL-2.0
* MPL-2.0
* LGPL-3.0
* AGPL-3.0