public class ExactMatchingStructureElementSimilarity extends Object implements StructureElementSimilarityI
sim
will return 1 if two structure
elements matches, 0 otherwise)Constructor and Description |
---|
ExactMatchingStructureElementSimilarity() |
ExactMatchingStructureElementSimilarity(boolean ignorePosOnLexicals)
Constructor for ExactMatchingStructureElementSimilarity
|
Modifier and Type | Method and Description |
---|---|
boolean |
getIgnorePosOnLexicals()
Returns whether the part-of-speech is ignored in comparing two
LexicalStructureElements
|
void |
setIgnorePosOnLexicals(boolean ignorePosOnLexicals)
Sets whether the part-of-speech must be ignored in comparing two
LexicalStructureElements
|
float |
sim(StructureElement sx,
StructureElement sd)
This function measure the similarity between structure elements
|
public ExactMatchingStructureElementSimilarity()
public ExactMatchingStructureElementSimilarity(boolean ignorePosOnLexicals)
whether
- the part-of-speech must ignored in comparing two
LexicalStructureElementspublic float sim(StructureElement sx, StructureElement sd)
StructureElementSimilarityI
sim
in interface StructureElementSimilarityI
sx
- the first structure elementsd
- the second structure elementpublic boolean getIgnorePosOnLexicals()
public void setIgnorePosOnLexicals(boolean ignorePosOnLexicals)
ignorePosOnLexicals
- whether the part-of-speech must be ignored in comparing two
LexicalStructureElementsCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.