Skip to content

egillanton/ice-atis-nlu-models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ICE-ATIS models

Python package

Table of Contents

Click to expand

1. Introduciton

This repository contains the scrips and pretrained models trained on the ICE-ATIS dataset.

2. Setup

Click to expand

2.1. Create a virtual environment

$ python3 -m venv venv

2.2. Activate virtual environment

$ . ./venv/Scripts/activate

2.3. Install dependecies

(venv)$ pip install -r requirements.txt

2.4. Set evironment variable

(venv)$ export PYTHONPATH=src

2.5. Run setup.sh

This will optain the ICE-ATIS dataset and place it in the root directory.

(venv)$ . setup.sh

3. Example of Usage

from utils.get_data import load_model, get_most_common_label

trigram_model = load_model("models/ngram.trigram.pickle")
trigram_test_tokens = ('til', 'boston', 'frá')
trigram_test_label = get_most_common_label(trigram_test_tokens, trigram) # B-toloc.city_name

4. Contributors

Become a contributor

🌟 PLEASE STAR THIS REPO IF YOU FOUND SOMETHING INTERESTING 🌟

About

Various NLU models trained on the ICE-ATIS dataset

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published