Jonze
Joint Slot and Intent Extraction implementation in Tensorflow2.0
Contains restructured code from the following repo: https://github.com/shubham8111/Joint-NLU
Implementation of Bi-LSTM based NLU baseline and SlotGated-SLU (Goo et al, 2018)(https://www.csie.ntu.edu.tw/~yvchen/doc/NAACL18_SlotGated.pdf) Models are evaulated on Snips and ATIS datasets.
Experiments did not reproduce improvements by SlotGated model over Basline model, on snips dataset.
Preprocessing modules reused from following repo: https://github.com/MiuLab/SlotGated-SLU/
Usage
To install package:
pip install jonze
To train model:
from jonze import train train(dataset = "joint-nlu", datasets_root = "dataset", models_root = "model", layer_size=12)
To test model:
from jonze import test test(dataset = "joint-nlu", datasets_root = "dataset", models_root = "model", layer_size=12, batch_size=46)
Results
Snips Dataset:
| Model | Slot F1 | Intent accuracy | Semantic Accuracy |
|---|---|---|---|
| Baseline | 84.30 | 96.57 | 66.43 |
| Slot Gated | 83.5 | 95.57 | 66.85 |
Atis Dataset:
| Model | Slot F1 | Intent accuracy | Semantic Accuracy |
|---|---|---|---|
| Baseline | 95.08 | 94.62 | 81.97 |
| Slot Gated | 94.57 | 96.41 | 83.65 |
P.S. Sometimes Slot F1 might get stuck at zero during training, better weight intialization or training a few epochs only on slot loss can resolve the issue.
Metadata
Release files for jonze 0.0.20
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 |
|---|---|---|---|---|
| jonze-0.0.20.tar.gz | 8.7 kB | Without provenance | Details for jonze-0.0.20.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jonze-0.0.20-py3-none-any.whl | Python 3 | none | any | Details for jonze-0.0.20-py3-none-any.whl |
Total release size: 29.6 kB
Release files / jonze-0.0.20.tar.gz
| Download URL | jonze-0.0.20.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc81ebfc9c6a228427d853cfb72d6c34c939ed1e5d784086aa364b26f080d024
|
|
BLAKE2b-256 checksum How to use checksums |
99191b2c32bbbf96f95059ac8d2e2a310de9788975a6740b882bc9b61b9dc907
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
|
Release files / jonze-0.0.20-py3-none-any.whl
| Download URL | jonze-0.0.20-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1757c8116664a342205b7f39ae5e68363501ebb16e174f947b8c87da78f2a1a6
|
|
BLAKE2b-256 checksum How to use checksums |
368e8479a019558abf8af1841e01300c3470a14a721fc96f93a0f3baf2f90f61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
|
Security for jonze 0.0.20
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.