https://pypi.org/project/seqtag/
BiLSTM + CRF for sequence tagging
This is adapted from guillaumegenthial 's original implementation and is made configurable and easy to adapt and use.
Requirements:
This code is tested with all tensorflow versions from 1.3.0 to 1.10.0.
tensorflow is not included in setup.py since, it will remove tensorflow-gpu. Separately install tensorflow by following https://www.tensorflow.org/install/ for this module to work.
Download the 300 dimnesional glove vectors from https://nlp.stanford.edu/projects/glove/
Installation:
The stable version can be installed by running "pip install seqtag"
How to Use:
Create a training directory with train.txt and valid.txt (test.txt is optional) set the config parameters as expected in a configuration file.
An example of the configuration file can be found at https://github.com/bedapudi6788/seqtag/blob/master/example_config.json
Training:
from seqtag import trainer
trainer.train(config_path = 'path_to_config_json')
Running Predictions:
from seqtag import predictor
model = predictor.load_model(path_to_config.json)
predictor.predict(model, ['I', 'am', 'Batman'])
['O', 'O', 'B-PER']
For an usage example take a look at https://github.com/bedapudi6788/Deep-Segmentation/ . seqtag is used for sentence segmentation in this repo.
Metadata
Release files for seqtag 1.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| seqtag-1.0.8.tar.gz | 14.7 kB | Without provenance | Details for seqtag-1.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| seqtag-1.0.8-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for seqtag-1.0.8-py2.py3-none-any.whl |
Total release size: 43.4 kB
Release files / seqtag-1.0.8.tar.gz
| Download URL | seqtag-1.0.8.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dfb8c7ccddbfe92468b25c85ad26e82f4187316ea8bb65ec5fbc00dea132ae76
|
|
BLAKE2b-256 checksum How to use checksums |
f0f31367ff8fc123646eb20a7a7999c4fba5cef071fea04c3115a83e6aa6f2c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.29.1 CPython/3.6.8
|
Release files / seqtag-1.0.8-py2.py3-none-any.whl
| Download URL | seqtag-1.0.8-py2.py3-none-any.whl |
|---|---|
| Size | 28.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
72e54add2b33f53878215291d5ab11a2db726aaf46ba300d635ea7e304c28940
|
|
BLAKE2b-256 checksum How to use checksums |
da2af354f6aeca37ceebc347d1cd02fd6a861fdb38c09e6a12dcd786de8c779b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.29.1 CPython/3.6.8
|
Security for seqtag 1.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.