public class SumoProcessCollector
extends java.lang.Object
Constructor and Description |
---|
SumoProcessCollector(KB kb,
java.lang.String role,
java.lang.String process,
java.lang.String entity)
Construct a SumoProcessCollector.
|
Modifier and Type | Method and Description |
---|---|
void |
addRole(java.lang.String role,
java.lang.String arg)
Add a new role/entity pair to this event.
|
VerbProperties.Polarity |
getPolarity()
Getter and setter for polarity field.
|
static java.lang.String |
getProperFormOfEntity(java.lang.String entity,
KB kb)
Retain capitalization of names and reified instances by lower-casing if the entity is an Entity.
|
com.google.common.collect.Multimap<CaseRole,java.lang.String> |
getRolesAndEntities()
Get all the roles and their entities for this event.
|
SumoProcess |
getSumoProcess() |
void |
merge(SumoProcessCollector newProcessCollector)
Merge the roles of the given SumoProcessCollector into this object.
|
void |
setEntityProperties(com.google.common.collect.Multimap<java.lang.String,SumoProcessEntityProperty> properties)
Translate this process and its case roles into natural language.
|
void |
setPolarity(VerbProperties.Polarity polarity) |
java.lang.String |
toNaturalLanguage()
Translate this process and its case roles into natural language.
|
java.lang.String |
toString()
Write out a string representing all the fields in this object.
|
public SumoProcessCollector(KB kb, java.lang.String role, java.lang.String process, java.lang.String entity)
kb
- role
- process
- entity
- public SumoProcess getSumoProcess()
public VerbProperties.Polarity getPolarity()
public void setPolarity(VerbProperties.Polarity polarity)
public void addRole(java.lang.String role, java.lang.String arg)
role
- arg
- public com.google.common.collect.Multimap<CaseRole,java.lang.String> getRolesAndEntities()
public static java.lang.String getProperFormOfEntity(java.lang.String entity, KB kb)
entity
- public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toNaturalLanguage()
public void setEntityProperties(com.google.common.collect.Multimap<java.lang.String,SumoProcessEntityProperty> properties)
properties
- public void merge(SumoProcessCollector newProcessCollector)
newProcessCollector
-