https://github.com/gatenlp/python-gatenlp-ml-tner
Token classification training and application using transformers via the tner package
https://github.com/gatenlp/python-gatenlp-ml-tner
deep-learning gatenlp machine-learning nlp python-gatenlp pytorch
Last synced: 23 days ago
JSON representation
Token classification training and application using transformers via the tner package
- Host: GitHub
- URL: https://github.com/gatenlp/python-gatenlp-ml-tner
- Owner: GateNLP
- License: apache-2.0
- Created: 2022-06-30T11:12:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-02T13:50:57.000Z (almost 4 years ago)
- Last Synced: 2025-01-13T06:10:40.170Z (over 1 year ago)
- Topics: deep-learning, gatenlp, machine-learning, nlp, python-gatenlp, pytorch
- Language: Python
- Homepage:
- Size: 205 KB
- Stars: 0
- Watchers: 12
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-gatenlp-ml-tner
Token classification training and application using transformers via the tner package.
See: https://github.com/asahi417/tner / https://pypi.org/project/tner/
IMPORTANT: for this package, a modified version of tner is required (see installation instructions below)!
### Installation:
* For now this package does NOT require the packages
it depends on in order to avoid dependency hell. See below
for how to install the required packages.
* create a new environment (or activate a gatenlp environment you already have instead)
(e.g. `conda create -y -n gatenlp-tner python=3.7`)
and activate it
* install the PyTorch version compatible with your machine
see [PyTorch Installation](https://pytorch.org/get-started/locally/)
* install the modified version of TNER:
* `python -m pip install -U git+https://github.com/johann-petrak/tner-modified.git`
* if not using a gatenlp environment, install gatenlp, e.g.: `python -m pip install -U gatenlp[all]`
### Usage
See [example notebook](examples/train-conll2003)