public interface IlrSyntacticRole extends IlrBaseElement
A syntactic role represents the syntactic function of an IlrRole
in a sentence. A syntactic role is contained in an ordered list in an IlrSentence.
It has two main characteristics: the category
(see IlrSyntacticRoleCategory), which indicates if the role is a
subject or an object in the phrase, and the cardinality
(see IlrCardinality), which indicates if the relation to
the underlying concept is one to one (cardinality single) or one to many
(cardinality multiple).
A syntactic role contains also a label, and a reference to a role of the fact type, as semantic role.
| Modifier and Type | Method and Description |
|---|---|
IlrCardinality |
getCardinality()
Gets the cardinality of this syntactic role.
|
IlrSyntacticRoleCategory |
getCategory()
Gets the category of syntactic role.
|
int |
getIndex()
Gets the index of this syntactic role.
|
java.lang.String |
getLabel()
Gets the label attached to this syntactic role.
|
IlrRole |
getSemanticRole()
Gets the semantic role of this syntactic role.
|
IlrSentence |
getSentence()
Gets the sentence of this syntactic role.
|
void |
setCardinality(IlrCardinality cardinality)
Sets the cardinality of this syntactic role.
|
void |
setCategory(IlrSyntacticRoleCategory category)
Sets the category of this syntactic role.
|
void |
setLabel(java.lang.String label)
Sets the label to this syntactic role.
|
void |
setSemanticRole(IlrRole role)
Sets the semantic role of this syntactic role.
|
accept, clearInstanceProperties, clearProperties, clearVolatileProperties, delete, getProperties, getProperty, hasProperty, isDeleted, removeProperty, setProperties, setPropertyaddListener, getListeners, notify, removeListenerIlrSyntacticRoleCategory getCategory()
void setCategory(IlrSyntacticRoleCategory category)
category - The new syntactic role category.IlrCardinality getCardinality()
void setCardinality(IlrCardinality cardinality)
cardinality - The new cardinality.IlrSentence getSentence()
IlrRole getSemanticRole()
void setSemanticRole(IlrRole role)
role - The role of this syntactic role.int getIndex()
java.lang.String getLabel()
null if no label has been defined.void setLabel(java.lang.String label)
label - The new label.© Copyright IBM Corp. 1987, 2017