Skip to content

Multilingual Code-Switching for Zero-Shot Cross-Lingual Intent Prediction and Slot Filling

Notifications You must be signed in to change notification settings

jitinkrishnan/Multilingual-ZeroShot-SlotFilling

Repository files navigation

Multilingual Code-Switching for Zero-Shot Cross-Lingual Intent Prediction and Slot Filling

Goal: Train a joint intent prediction and slot fillinf model using English and generalize to other languages.

Paper/Cite

https://aclanthology.org/2021.mrl-1.18/

@article{krishnanCodeSwitch,
  title={Multilingual Code-Switching for Zero-Shot Cross-Lingual Intent Prediction and Slot Filling},
  author={Krishnan, Jitin and Anastasopoulos, Antonios and Purohit, Hemant and Rangwala, Huzefa},
  journal={In Proceedings of the 1st Workshop on Multilingual Representation Learning at EMNLP},
  year={2021}
}

Requirements

  1. !pip install transformers

  2. !pip install googletrans

  3. Enable Cuda for Joint Training

Datasets

MultiAtis++: Please visit https://github.com/amazon-research/multiatis.

CrisisData: Please send us an email to obtain a copy of the data (Original Source: Appen).

Datasets to setup before running the experiments.

How to Run: Joint Training

joint training (English Only)

python3 joint_en.py <location-of-data-folder> '0'

joint training (English Only with Code Switching)

python3 joint_en.py <location-of-data-folder> '1'

How to Run: Code-Switching

python3 code_switch.py <input_fileName> <pickle_output_fileName>
#e.g., python3 code_switch.py 'train_EN.tsv' 'train_cs.p'

Contact information

For help or issues, please submit a GitHub issue or contact Jitin Krishnan ([email protected]).

About

Multilingual Code-Switching for Zero-Shot Cross-Lingual Intent Prediction and Slot Filling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages