|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unitn.disi.smatch.components.Configurable
it.unitn.disi.smatch.matchers.element.string.EditDistance
public class EditDistance
Implements Edit Distance matcher. See Element Level Semantic matchers paper for more details.
Accepts the following parameters: threshold - float parameter, which by default equals 0.9.
| Field Summary |
|---|
| Fields inherited from class it.unitn.disi.smatch.components.Configurable |
|---|
GLOBAL_PREFIX, globalComponents, properties |
| Constructor Summary | |
|---|---|
EditDistance()
|
|
| Method Summary | |
|---|---|
char |
match(java.lang.String str1,
java.lang.String str2)
Computes the relation with edit distance matcher. |
boolean |
setProperties(java.util.Properties newProperties)
Sets component configuration properties. |
| Methods inherited from class it.unitn.disi.smatch.components.Configurable |
|---|
configureComponent, getComponentProperties, getProperties, loadProperties, makeComponentPrefix, setProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface it.unitn.disi.smatch.components.IConfigurable |
|---|
getProperties, setProperties |
| Constructor Detail |
|---|
public EditDistance()
| Method Detail |
|---|
public boolean setProperties(java.util.Properties newProperties)
throws ConfigurableException
IConfigurable
setProperties in interface IConfigurablesetProperties in class ConfigurablenewProperties - a new configuration
ConfigurableException - ConfigurableException
public char match(java.lang.String str1,
java.lang.String str2)
match in interface IStringBasedElementLevelSemanticMatcherstr1 - one input stringstr2 - another input string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||