Code Monkey home page Code Monkey logo

dialogue-act-classification's Introduction

Lexico-acoustic models with attention in Dialog Act Classification

Esra Dönmez, Christoph Schaller, Wei Zhou

Project report: Here

Abstract

Dialog act classification (DAC) is of significant importance in spoken dialog systems. Recent works have proposed several successful neural models for dialog act classification, many of which only explored the task by taking advantage of the transcripts of the audio files and building lexical models. In 2018, Ortega and Vu. proposed a lexico-acoustic neural-based model for this task to utilize the acoustic information in combination with the lexical features. In their experiments, they use convolutional neural networks (CNNs) to learn both the lexical and the acoustic features. Moreover, pretrained language models have been successfully used in recent years in various tasks to learn contextual embeddings from natural language input. In this paper, we experiment with both lexical and acoustic models in DAC. We implemented two models, one for the textual input and one for the acoustic input, and different ways to combine these modalities for multimodal learning in DAC. We evaluate our models on a subset of the SwDA (Switchboard Corpus) (Calhoun et al., 2010) and compare the results of the two models as well as the combined model. Furthermore, we conduct both quantitative and qualitative error analysis to investigate the strengths and weaknesses of these models. We also run an ablation study to examine the contributions of the individual components in our lexical model. Our results show that lexical model is sufficient to learn the features that are represented by both modalities, i.e. the acoustic model might not learn additional useful information that is not present in lexical features when combined with a powerful lexical model.

Requirements

All requirements are listed in pyproject.toml
Install them using pip or poetry

Make sure the required data is available.

Content

  • Root folder contains all the files that need to be run for the preprocessing (i.e. preprocess.py) and training (i.e. train_combined.py, train_lexical.py, train_acoustic.py).
  • dataset folder contains the file to create DAC dataset (i.e. dac_dataset.py) and the script to extract the MFCC features from the audio files (i.e. mfcc_features.py).
  • File that contains the training loop can be found under utils folder along with other utilities.
  • models folder contains all the code for the acoustic and the lexical model as well as the combined model.

Preprocessing

To extract MFFCs from the audio files, run python preprocess.py from the root folder.

Training

To train the models, run the following commands from the root folder.

  • For the combined model:
python train_combined.py
  • For the lexical model:
python train_lexical.py
  • For the acoustic model:
python train_acoustic.py

dialogue-act-classification's People

Contributors

christophschaller avatar esradonmez avatar zzzzzzzw-17 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.