|
||||||||||
| 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.NGram
public class NGram
Implements NGram matcher. See Element Level Semantic matchers paper for more details.
Accepts the following parameters: threshold - float parameter, which by default equals 0.9. gramlength - integer parameter which by default equals 3.
| Field Summary | |
|---|---|
protected int |
gramlength
|
protected double |
threshold
|
| Fields inherited from class it.unitn.disi.smatch.components.Configurable |
|---|
GLOBAL_PREFIX, globalComponents, properties |
| Constructor Summary | |
|---|---|
NGram()
|
|
| Method Summary | |
|---|---|
char |
match(java.lang.String str1,
java.lang.String str2)
Computes the relation with NGram 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 |
| Field Detail |
|---|
protected int gramlength
protected double threshold
| Constructor Detail |
|---|
public NGram()
| 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 - the source inputstr2 - the target input
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||