All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.cmu.sv.spoken_language_understanding.SLUDataset Maven / Gradle / Ivy

Go to download

A library that allows rapid prototyping of dialog systems (language understanding, discourse modelling, dialog management, language generation).

There is a newer version: 0.7.0
Show newest version
package edu.cmu.sv.spoken_language_understanding;

import edu.cmu.sv.semantics.SemanticsModel;
import org.apache.commons.lang3.tuple.Pair;

import java.util.LinkedList;
import java.util.List;

/**
 * Created by David Cohen on 3/11/15.
 *
 * This class is meant to include a dataset of SLU examples (string, Semantics model pairs)
 * model training and evaluation scripts will make heavy use of this class
 *
 * There is no alignment between the words and parts of the result.
 * It is assumed that any learning algorithm will either figure out the alignment, or not require it.
 *
 */
public class SLUDataset {
    private List> dataSet = new LinkedList<>();

    public void add(Pair sample){
        dataSet.add(sample);
        sample.getRight().validateSLUHypothesis();
    }

    public List> getDataSet() {
        return dataSet;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy