it.unitn.disi.smatch.matchers.element.string
Class GPrefix

java.lang.Object
  extended by it.unitn.disi.smatch.components.Configurable
      extended by it.unitn.disi.smatch.matchers.element.string.GPrefix
All Implemented Interfaces:
IConfigurable, IStringBasedElementLevelSemanticMatcher

public class GPrefix
extends Configurable
implements IStringBasedElementLevelSemanticMatcher

Implements GPrefix matcher. Tries to use morphological knowledge (suffixes) to enhance relations returned. It is called GPefix because it matches words with equal prefixes, which differ in suffixes only.

Author:

Field Summary
 
Fields inherited from class it.unitn.disi.smatch.components.Configurable
GLOBAL_PREFIX, globalComponents, properties
 
Constructor Summary
GPrefix()
           
 
Method Summary
 char match(java.lang.String str1, java.lang.String str2)
          Returns a relation between source and target strings.
 void reportUsage()
           
 
Methods inherited from class it.unitn.disi.smatch.components.Configurable
configureComponent, getComponentProperties, getProperties, loadProperties, makeComponentPrefix, setProperties, 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, setProperties
 

Constructor Detail

GPrefix

public GPrefix()
Method Detail

match

public char match(java.lang.String str1,
                  java.lang.String str2)
Description copied from interface: IStringBasedElementLevelSemanticMatcher
Returns a relation between source and target strings.

Specified by:
match in interface IStringBasedElementLevelSemanticMatcher
Parameters:
str1 - the string of source label
str2 - the string of target label
Returns:
a relation between source and target labels

reportUsage

public void reportUsage()


© 2010-2011 Knowdive @ DISI