- Input: Text
- Output: Intent
- Input: i dont like my current insurance plan and and want a new one.
- Output: insurance_change
- Input: when will my american express credit card expire
- Output: expiration_date
- Input: how would i get to city hall via bus
- Output: directions
- Input: Text
- Output: Tags of each word
- Input: a table today for myself and 3 others
- Output: O O B-date O B-people I-people I-people O
- Input: my three children and i are in the party
- Output: B-people I-people I-people I-people I-people O O O O
- id: Unique id
- text: Input sentence
- intent: A string that denotes the intent of the input sentence
{
"text": "i need you to book me a flight from ft lauderdale to houston on southwest",
"intent": "book_flight",
"id": "train-0"
}
- id: Unique id
- text: A list of input tokens preprocessed from the input sentence
- tags: A list of strings, each denotes the tag of its corresponding token in the input sentence
{
"tokens": [
"i",
"have",
"three",
"people",
"for",
"august",
"seventh"
],
"tags": [
"O",
"O",
"B-people",
"I-people",
"O",
"B-date",
"O"
],
"id": "train-0"
}
bash download.sh
For testing intent classifiation model:
python test_intent.py
The predictions are saved in pred.intent.csv
.
For testing slot tagging model:
python test_slot.py
The predictions are saved in pred.slot.csv
.
For training intent classification model:
python train_intent.py
For training slot tagging model:
python train_slot.py