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

edu.cmu.sv.dialog_state_tracking.Turn 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.dialog_state_tracking;

import edu.cmu.sv.semantics.SemanticsModel;
import edu.cmu.sv.utils.StringDistribution;

import java.util.Map;

/*
 * Created by David Cohen on 9/19/14.
 * Turn contains an SLU result / SLU ground truth for a single user/system turn
 */
public class Turn {
    public Map hypotheses;
    public SemanticsModel systemUtterance;
    public SemanticsModel groundedSystemMeaning;
    public StringDistribution hypothesisDistribution;
    public String speaker;

    public Turn(String speaker, SemanticsModel systemUtterance, SemanticsModel groundedSystemMeaning, Map hypotheses, StringDistribution hypothesisDistribution) {
        this.hypotheses = hypotheses;
        this.systemUtterance = systemUtterance;
        this.groundedSystemMeaning = groundedSystemMeaning;
        this.hypothesisDistribution = hypothesisDistribution;
        this.speaker = speaker;
    }

    public Map getHypotheses() {
        return hypotheses;
    }

    public StringDistribution getHypothesisDistribution() {
        return hypothesisDistribution;
    }

    public String getSpeaker() {
        return speaker;
    }

    public SemanticsModel getSystemUtterance() {
        return systemUtterance;
    }

    public SemanticsModel getGroundedSystemMeaning() {
        return groundedSystemMeaning;
    }

    @Override
    public String toString() {
        return "Turn{" +
                "hypotheses=" + hypotheses +
                ", systemUtterance=" + systemUtterance +
                ", groundedSystemMeaning=" + groundedSystemMeaning +
                ", hypothesisDistribution=" + hypothesisDistribution +
                ", speaker='" + speaker + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy