edu.cmu.sv.domain.ontology.Verb 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.domain.ontology;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
/**
* Created by David Cohen on 6/16/15.
*/
public class Verb {
public String name;
Set requiredGroundedRoles = new HashSet<>();
Set requiredDescriptions = new HashSet<>();
public Verb(String name, Collection requiredGroundedRoles, Collection requiredDescriptions) {
this.name = name;
this.requiredGroundedRoles.addAll(requiredGroundedRoles);
this.requiredDescriptions.addAll(requiredDescriptions);
}
public Set getRequiredGroundedRoles() {
return requiredGroundedRoles;
}
public Set getRequiredDescriptions() {
return requiredDescriptions;
}
}