NestedNER
Prerequisites
The main requirements are:
- tqdm
- flair
- word2vec
- glove-python-binary==0.2.0
- transformers==2.10.0
- wandb # for logging the results
- yaml
In the root directory, run
pip install -e .
Data Format
{
"id": "train_2975",
"text": "ll Services Plan Documents Only ( Section 125 ) Premium Offset Plan ( POP ) Wellness Plans MBTA Corporate Transit Pass Program WMATA Smar Trip Transit / Parking Program Contact Us HRC Total Solutions 111 Charles Street Manchester , New hampshire 03101 customerservice @ hrcts . com Phone : ( 603 ) 647 - 1147 Fax : ( 866 ) 978 - 7868 Follow Us Linked In You Tube Twitter Resources IIAS Participating Pharmacies IIAS 90 % Merchant List FSA Store HSA St",
"entity_list": [
{"text": "111 Charles Street", "type": "detail", "char_span": [200, 218]},
{"text": "Manchester", "type": "city", "char_span": [219, 229]},
{"text": "New hampshire", "type": "state", "char_span": [232, 245]},
{"text": "03101", "type": "zipcode", "char_span": [246, 251]},
]
}
Pretrained Model and Word Embeddings
Download BERT-BASE-CASED and put it under ../pretrained_models. Download word embeddings (code: 8044) and put them under ../pretrained_emb.
Train
Set configuration in tplinker_ner/train_config.yaml. Start training:
cd tplinker_ner
python train.py
Evaluation
Set configuration in tplinker_ner/eval_config.yaml. Start evaluation by running tplinker_ner/Evaluation.ipynb
Metadata
Release files for yucheng-ner 0.6
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 |
|---|---|---|---|---|
| yucheng_ner-0.6.tar.gz | 17.1 kB | Without provenance | Details for yucheng_ner-0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yucheng_ner-0.6-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for yucheng_ner-0.6-py2.py3-none-any.whl |
Total release size: 58.6 kB
Release files / yucheng_ner-0.6.tar.gz
| Download URL | yucheng_ner-0.6.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80f7603bb8ed1476d7897044ade5a5a67d2780dcd61511a94785e9f7a2b26c54
|
|
BLAKE2b-256 checksum How to use checksums |
dd8eb9d7ebf587d6a1fc1967756020945667e6a73352d280cff1bb7ffbc93f98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.3
|
Release files / yucheng_ner-0.6-py2.py3-none-any.whl
| Download URL | yucheng_ner-0.6-py2.py3-none-any.whl |
|---|---|
| Size | 41.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
120d898400e3295c1f609e2d04d2f1104568ead45b006ec906350bab21c8e10b
|
|
BLAKE2b-256 checksum How to use checksums |
87a52a3f541f669976af1c6d0e035ea9c1d4e0f703fbbe364b9d9ae44b799653
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.3
|
Security for yucheng-ner 0.6
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.