public class Sentence
extends java.lang.Object
| Constructor and Description |
|---|
Sentence(com.google.common.collect.Multimap<CaseRole,java.lang.String> roles,
SumoProcess process,
KB inKB,
com.google.common.collect.Multimap<java.lang.String,SumoProcessEntityProperty> properties)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SVOElement |
getDirectObject() |
java.util.List<SVOElement> |
getIndirectObjects() |
SVOElement |
getSubject() |
SumoProcess |
getVerb() |
void |
setCaseRolesScratchpad(com.google.common.collect.Multimap<CaseRole,java.lang.String> roles)
Set the case roles scratch pad with the given case roles.
|
void |
setDirectObject(SVOElement directObject) |
void |
setIndirectObjects(java.util.List<SVOElement> indirectObjects) |
void |
setSubject(SVOElement subject) |
void |
setVerb(SumoProcess verb) |
java.lang.String |
toNaturalLanguage()
Attempt to perform natural language generation on this object.
|
public Sentence(com.google.common.collect.Multimap<CaseRole,java.lang.String> roles, SumoProcess process, KB inKB, com.google.common.collect.Multimap<java.lang.String,SumoProcessEntityProperty> properties)
roles - process - inKB - properties - public SVOElement getSubject()
public void setSubject(SVOElement subject)
subject - public SumoProcess getVerb()
public void setVerb(SumoProcess verb)
verb - public SVOElement getDirectObject()
public void setDirectObject(SVOElement directObject)
directObject - public java.util.List<SVOElement> getIndirectObjects()
public void setIndirectObjects(java.util.List<SVOElement> indirectObjects)
indirectObjects - public void setCaseRolesScratchpad(com.google.common.collect.Multimap<CaseRole,java.lang.String> roles)
roles - public java.lang.String toNaturalLanguage()