Reusable Joint Slot and Intent Extraction implementation in Tensorflow2.0
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jonze-0.0.20.tar.gz.
File metadata
- Download URL: jonze-0.0.20.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc81ebfc9c6a228427d853cfb72d6c34c939ed1e5d784086aa364b26f080d024
|
|
| MD5 |
02b4e0fe7d85db5062586daf7987c53f
|
|
| BLAKE2b-256 |
99191b2c32bbbf96f95059ac8d2e2a310de9788975a6740b882bc9b61b9dc907
|
File details
Details for the file jonze-0.0.20-py3-none-any.whl.
File metadata
- Download URL: jonze-0.0.20-py3-none-any.whl
- Upload date:
- Size: 20.9 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1757c8116664a342205b7f39ae5e68363501ebb16e174f947b8c87da78f2a1a6
|
|
| MD5 |
b945e383a7a512e7525ab27d3de896f2
|
|
| BLAKE2b-256 |
368e8479a019558abf8af1841e01300c3470a14a721fc96f93a0f3baf2f90f61
|