public class SumoProcessCollector extends Object
| Constructor and Description |
|---|
SumoProcessCollector(KB kb,
String role,
String process,
String entity)
Construct a SumoProcessCollector.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRole(String role,
String arg)
Add a new role/entity pair to this event.
|
VerbProperties.Polarity |
getPolarity()
Getter and setter for polarity field.
|
static String |
getProperFormOfEntity(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,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<String,SumoProcessEntityProperty> properties)
Translate this process and its case roles into natural language.
|
void |
setPolarity(VerbProperties.Polarity polarity) |
String |
toNaturalLanguage()
Translate this process and its case roles into natural language.
|
String |
toString()
Write out a string representing all the fields in this object.
|
public SumoProcess getSumoProcess()
public VerbProperties.Polarity getPolarity()
public void setPolarity(VerbProperties.Polarity polarity)
public void addRole(String role, String arg)
role - arg - public com.google.common.collect.Multimap<CaseRole,String> getRolesAndEntities()
public static String getProperFormOfEntity(String entity, KB kb)
entity - public String toString()
public String toNaturalLanguage()
public void setEntityProperties(com.google.common.collect.Multimap<String,SumoProcessEntityProperty> properties)
properties - public void merge(SumoProcessCollector newProcessCollector)
newProcessCollector - Copyright © 2015. All rights reserved.