public class LexicalStructureElementManipulator extends Object implements Manipulator
LexicalStructureElement
s with a vector from the Word Space. This is useful to avoid the
computational cost of re-load vectors for estimating a similarity function
within the VectorBasedStructureElementSimilarity| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ENRICHMENT_NAME |
| Constructor and Description |
|---|
LexicalStructureElementManipulator(WordspaceI wordSpace,
String representationToBeEnriched) |
LexicalStructureElementManipulator(WordspaceI wordSpace,
String representationToBeEnriched,
String enrichmentName) |
| Modifier and Type | Method and Description |
|---|---|
static void |
enrichTreeRepresentation(TreeRepresentation treeRepresentation,
WordspaceI wordSpace,
String enrichmentName)
This function enriches each
LexicalStructureElement in the
tree with a vector from the Word Space |
void |
manipulate(Example example) |
public static final String DEFAULT_ENRICHMENT_NAME
public LexicalStructureElementManipulator(WordspaceI wordSpace, String representationToBeEnriched, String enrichmentName)
public LexicalStructureElementManipulator(WordspaceI wordSpace, String representationToBeEnriched)
public static void enrichTreeRepresentation(TreeRepresentation treeRepresentation, WordspaceI wordSpace, String enrichmentName)
LexicalStructureElement in the
tree with a vector from the Word SpacetreeRepresentation - The tree to be enrichedpublic void manipulate(Example example)
manipulate in interface ManipulatorCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.