Package | Description |
---|---|
com.articulate.sigma.nlg |
Modifier and Type | Method and Description |
---|---|
static CaseRole |
CaseRole.getCaseRole(java.util.Collection<java.lang.String> list)
From the input list, return the first string that is a valid case role.
|
static CaseRole |
CaseRole.toCaseRole(java.lang.String input,
KB kb)
Return a valid case role based on the string input.
|
static CaseRole |
CaseRole.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CaseRole[] |
CaseRole.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<CaseRole> |
SVOGrammar.getCaseRolesForGrammarPosition(java.lang.String verb,
SVOElement.SVOGrammarPosition grammarRole)
Return the case roles most appropriate for a given grammar role and a verb.
|
java.util.List<CaseRole> |
VerbPropertiesSimpleImpl.getCaseRolesForGrammarRole(java.lang.String verb,
SVOElement.SVOGrammarPosition grammarRole)
Return a list of case roles for the given verb and the given grammar role.
|
java.util.List<CaseRole> |
VerbProperties.getCaseRolesForGrammarRole(java.lang.String verb,
SVOElement.SVOGrammarPosition grammarRole)
Return a list of case roles for the given verb and the given grammar role.
|
com.google.common.collect.Multiset<CaseRole> |
SVOElement.getConsumedCaseRoles() |
com.google.common.collect.Multimap<CaseRole,java.lang.String> |
SumoProcessCollector.getRolesAndEntities()
Get all the roles and their entities for this event.
|
Modifier and Type | Method and Description |
---|---|
void |
SVOElement.addConsumedCaseRole(CaseRole role) |
static java.util.List<java.lang.String> |
Preposition.getPrepositionForCaseRole(java.lang.String verb,
CaseRole caseRole) |
java.util.List<java.lang.String> |
VerbPropertiesSimpleImpl.getPrepositionForCaseRole(java.lang.String verb,
CaseRole caseRole)
Return a list of prepositions for the given verb and the given case role.
|
java.util.List<java.lang.String> |
VerbProperties.getPrepositionForCaseRole(java.lang.String verb,
CaseRole caseRole)
Return a list of prepositions for the given verb and the given case role.
|
Modifier and Type | Method and Description |
---|---|
void |
Sentence.setCaseRolesScratchpad(com.google.common.collect.Multimap<CaseRole,java.lang.String> roles)
Set the case roles scratch pad with the given case roles.
|
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.
|