Skip to content

Latest commit

 

History

History
86 lines (60 loc) · 2.03 KB

README.md

File metadata and controls

86 lines (60 loc) · 2.03 KB

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 🌟