org.gcube.dataanalysis.executor.nodes.transducers.bionym.abstracts
Class YasmeenMatcher

java.lang.Object
  extended by org.gcube.dataanalysis.executor.nodes.transducers.bionym.abstracts.YasmeenMatcher
All Implemented Interfaces:
Matcher
Direct Known Subclasses:
FuzzyMatcher, GsayMatcher, LevensteinMatcher, MixedLexicalMatcher, SoundexMatcher, TrigramMatcher

public abstract class YasmeenMatcher
extends Object
implements Matcher


Field Summary
static String matcherLib
           
 int maxResults
           
 HashMap<String,String> parameters
           
protected  String sandBoxFolder
           
 double threshold
           
 
Constructor Summary
YasmeenMatcher(String sandboxfolder, double threshold, int maxResults, HashMap<String,String> parameters)
           
 
Method Summary
protected static HashMap<String,String> createReferenceMap()
           
protected abstract  String getLexicalDistancesWeights()
           
protected abstract  String getMatchlets()
           
protected abstract  String getStemming()
           
 void init(String sandboxfolder, double threshold, int maxResults, HashMap<String,String> parameters)
           
 MatcherOutput match(MatcherInput inputName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matcherLib

public static String matcherLib

sandBoxFolder

protected String sandBoxFolder

threshold

public double threshold

maxResults

public int maxResults

parameters

public HashMap<String,String> parameters
Constructor Detail

YasmeenMatcher

public YasmeenMatcher(String sandboxfolder,
                      double threshold,
                      int maxResults,
                      HashMap<String,String> parameters)
Method Detail

createReferenceMap

protected static HashMap<String,String> createReferenceMap()

getMatchlets

protected abstract String getMatchlets()

getLexicalDistancesWeights

protected abstract String getLexicalDistancesWeights()

getStemming

protected abstract String getStemming()

init

public void init(String sandboxfolder,
                 double threshold,
                 int maxResults,
                 HashMap<String,String> parameters)
Specified by:
init in interface Matcher

match

public MatcherOutput match(MatcherInput inputName)
                    throws Exception
Specified by:
match in interface Matcher
Throws:
Exception


Copyright © 2013. All Rights Reserved.