public class CompositionalStructureElement extends StructureElement
additionalInformation| Constructor and Description |
|---|
CompositionalStructureElement() |
CompositionalStructureElement(String dependencyRelation,
LexicalStructureElement head,
LexicalStructureElement modifier) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDependencyRelation() |
LexicalStructureElement |
getHead() |
LexicalStructureElement |
getModifier() |
String |
getTextFromData()
Returns a textual representation of the data stored in this
structureElement
|
boolean |
matchPosWith(CompositionalStructureElement csz)
This method verifies if this object and csz have the same Part of speech
on the heads and modifiers
|
boolean |
matchSyntacticRelationWith(CompositionalStructureElement csz)
This method verifies if the dependency relation between this object and
csz matches.
|
void |
setDataFromText(String structureElementDescription)
Initializes a StructureElement using its textual description provided in
structureElementDescription |
void |
setDependencyRelation(String dependencyRelation) |
void |
setHead(LexicalStructureElement head) |
void |
setModifier(LexicalStructureElement modifier) |
addAdditionalInformation, containsAdditionalInfo, getAdditionalInformation, getTextFromDataWithAdditionalInfo, removeAdditionalInformationpublic CompositionalStructureElement()
public CompositionalStructureElement(String dependencyRelation, LexicalStructureElement head, LexicalStructureElement modifier)
public void setDataFromText(String structureElementDescription) throws Exception
StructureElementstructureElementDescriptionsetDataFromText in class StructureElementstructureElementDescription - the textual description of the structureElement to be
initializedExceptionpublic String getTextFromData()
StructureElementgetTextFromData in class StructureElementpublic String getDependencyRelation()
public void setDependencyRelation(String dependencyRelation)
dependencyRelation - the dependencyRelation to setpublic LexicalStructureElement getHead()
public void setHead(LexicalStructureElement head)
head - the head to setpublic LexicalStructureElement getModifier()
public void setModifier(LexicalStructureElement modifier)
modifier - the modifier to setpublic boolean matchPosWith(CompositionalStructureElement csz)
csz - public boolean matchSyntacticRelationWith(CompositionalStructureElement csz)
csz - Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.