edu.cmu.sv.spoken_language_understanding.SLUDataset Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yoda Show documentation
Show all versions of yoda Show documentation
A library that allows rapid prototyping of dialog systems (language understanding, discourse modelling, dialog management, language generation).
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;
}
}