public class CompositionalStructureElement extends StructureElement
additionalInformation
Constructor and Description |
---|
CompositionalStructureElement() |
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, removeAdditionalInformation
public void setDataFromText(String structureElementDescription) throws Exception
StructureElement
structureElementDescription
setDataFromText
in class StructureElement
structureElementDescription
- the textual description of the structureElement to be
initializedException
public String getTextFromData()
StructureElement
getTextFromData
in class StructureElement
public 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 © 2015 Semantic Analytics Group @ Uniroma2. All rights reserved.