|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.unitn.disi.smatch.MatchManager
public class MatchManager
Class that control process of matching, load contexts and perform other auxilary work. Also it contain all the global variables and properties from the configuration file
Field Summary | |
---|---|
static java.lang.String |
adjectiveAntonymFile
|
static java.lang.String |
adjectiveSynonymFile
|
static java.lang.String |
adverbsAntonymFile
|
static java.lang.String |
andWords
|
static int |
BUFFER_SIZE
|
static java.lang.String |
ctxsSourceFile
|
static java.lang.String |
ctxsTargetFile
|
static double |
ELSMthreshold
|
static char |
ENTAILED_LESS_GENERAL_THAN
|
static char |
ENTAILED_MORE_GENERAL_THAN
|
static char |
ENTAILED_OPPOSITE_MEANING
|
static char |
ERASED_LG
|
static char |
ERASED_MG
|
static char |
IDK_RELATION
|
static char |
LESS_GENERAL_THAN
|
static java.lang.String |
meaninglessWords
|
static char |
MORE_GENERAL_THAN
|
static java.lang.String |
multiwordsFileName
|
static java.lang.String |
nominalizationsFile
|
static java.lang.String |
notWords
|
static java.lang.String |
nounAntonymFile
|
static java.lang.String |
nounMGFile
|
static java.lang.String |
numberCharacters
|
static char |
OPPOSITE_MEANING
|
static java.lang.String |
orWords
|
static java.lang.String |
propFileName
|
static java.lang.String |
satSolverClass
|
static java.util.Vector |
senseGlossMatchers
|
static java.util.Vector |
stringMatchers
|
static char |
SYNOMYM
|
static java.lang.String |
UNKNOWN_MEANING
|
static boolean |
useConjunctiveLabelsOptimization
|
static boolean |
useOppositeAxiomsOptimization
|
static boolean |
useWeakSemanticsElementLevelMatchersLibrary
|
static java.lang.String |
verbMGFile
|
static char |
WEAK_EQUIVALENCE
|
Constructor Summary | |
---|---|
MatchManager()
|
|
MatchManager(java.lang.String propFileName)
|
Method Summary | |
---|---|
IContext |
classify(IContext ctxSource)
Performs the second step of the semantic matching algorithm |
IMatchMatrix |
elementLevelMatching(IContext sourceContext,
IContext targetContext)
Performs the third step of semantic matching algorithm |
IMatchMatrix |
filter(java.util.Vector args)
Performs additional filtering step executed after 4th step of semantic matching algorithm |
static java.lang.Object |
getClassForName(java.lang.String className)
|
static IContext |
getIContext()
|
static IMatchManager |
getInstance()
|
static IWordNetMatcher |
getIWNMatcher()
|
static ILinguisticOracle |
getLinguisticOracle()
|
IMatcherLibrary |
getMatcherLibrary()
|
IPreprocessor |
getPreprocessor()
|
static Dictionary |
getWordNetDictionary()
|
static void |
initJWNL()
Performs JWNL and JWNL logger initialization routines. |
IContext |
loadContext(java.lang.String fileName)
Loads context |
static void |
main(java.lang.String[] args)
|
IMapping |
match(IContext sourceContext,
IContext targetContext)
Performs the whole matching process |
IContext |
offline(IContext ctxSource,
java.lang.String ctxsSourceFile)
Performs linguistic preprocessing |
IMapping |
online(IContext sourceContext,
IContext targetContext)
Performs the last two steps of the semantic matching algorithm, filtering and render the results by current IMappingRender |
IContext |
preprocess(IContext ctxSource)
Performs the first step of the semantic matching algorithm |
static void |
printMemoryUsage()
|
void |
renderContext(IContext ctxSource,
java.lang.String fileName)
Renders context to screen,file or database |
IMapping |
renderMapping(java.util.Vector args)
Renders mappings into appropriate format |
static void |
retainValue(java.util.Vector<java.lang.String> v,
java.lang.String value)
Retains value in vector |
static void |
setClassifier(java.lang.String classifier)
|
static void |
setContextRenderer(java.lang.String contextRenderer)
|
static void |
setFilter(java.lang.String filter)
|
static void |
setLinguisticOracle(java.lang.String linguisticOracle)
|
static void |
setLoader(java.lang.String loader)
|
static void |
setMappingRenderer(java.lang.String mappingRenderer)
|
static void |
setMatcherLibrary(java.lang.String matcherLibrary)
|
static void |
setPreprocessor(java.lang.String preprocessor)
|
void |
setProperties(java.util.Properties properites)
Set up the matching properties A list of parameters which influence on the matching process workflow name of the class which implements IWordNetMatcher interface WNmatcher = it.unitn.disi.smatch.oracles.wordnet.InMemoryWordNet name of the class which implements ILinguisticOracle interface LinguisticOracle = it.unitn.disi.smatch.oracles.wordnet.WordNet name of the class which implements IClassifier interface Classifier = it.unitn.disi.smatch.classifiers.DefaultClassifier name of the class which implements IPreprocessor interface Preprocessor = it.unitn.disi.smatch.preprocessors.DefaultPreprocessor name of the class which implements IMatcherLibrary interface MatcherLibrary = it.unitn.disi.smatch.matchers.element.MatcherLibrary name of the class which implements ILoader interface Loader = it.unitn.disi.smatch.loaders.CTXMLLoader name of the class which implements IMappingRenderer interface MappingRenderer = it.unitn.disi.smatch.renderers.mapping.DefaultHTMLMappingRenderer name of the class which implements IContextRenderer interface ContextRenderer = it.unitn.disi.smatch.renderers.context.CTXMLContextRenderer name of the class which implements IFilter interface Filter = it.unitn.disi.smatch.filters.DefaultFilter |
static void |
setSatSolver(java.lang.String satSolverClass)
|
static void |
setTreeMatcher(java.lang.String treeMatcher)
|
static void |
setWNMatcher(java.lang.String WNMatcher)
|
IMatchMatrix |
structureLevelMatching(IContext sourceContext,
IContext targetContext,
IMatchMatrix ClabMatrix)
Performs the fourth step of semantic matching algorithm |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String propFileName
public static boolean useWeakSemanticsElementLevelMatchersLibrary
public static java.lang.String satSolverClass
public static java.util.Vector stringMatchers
public static java.util.Vector senseGlossMatchers
public static boolean useConjunctiveLabelsOptimization
public static boolean useOppositeAxiomsOptimization
public static java.lang.String andWords
public static java.lang.String orWords
public static java.lang.String notWords
public static java.lang.String meaninglessWords
public static java.lang.String multiwordsFileName
public static java.lang.String ctxsSourceFile
public static java.lang.String ctxsTargetFile
public static final char SYNOMYM
public static final char WEAK_EQUIVALENCE
public static final char LESS_GENERAL_THAN
public static final char MORE_GENERAL_THAN
public static final char OPPOSITE_MEANING
public static final char ENTAILED_LESS_GENERAL_THAN
public static final char ENTAILED_MORE_GENERAL_THAN
public static final char ENTAILED_OPPOSITE_MEANING
public static final char IDK_RELATION
public static final java.lang.String UNKNOWN_MEANING
public static final char ERASED_LG
public static final char ERASED_MG
public static java.lang.String adjectiveSynonymFile
public static java.lang.String adjectiveAntonymFile
public static java.lang.String nounMGFile
public static java.lang.String nounAntonymFile
public static java.lang.String verbMGFile
public static java.lang.String nominalizationsFile
public static java.lang.String adverbsAntonymFile
public static int BUFFER_SIZE
public static double ELSMthreshold
public static java.lang.String numberCharacters
Constructor Detail |
---|
public MatchManager() throws SMatchException
SMatchException
public MatchManager(java.lang.String propFileName) throws SMatchException
SMatchException
Method Detail |
---|
public static IMatchManager getInstance() throws SMatchException
SMatchException
public static void setSatSolver(java.lang.String satSolverClass)
public static void setWNMatcher(java.lang.String WNMatcher)
public static void setLinguisticOracle(java.lang.String linguisticOracle)
public static void setClassifier(java.lang.String classifier)
public static void setPreprocessor(java.lang.String preprocessor)
public static void setMatcherLibrary(java.lang.String matcherLibrary)
public static void setLoader(java.lang.String loader)
public static void setMappingRenderer(java.lang.String mappingRenderer)
public static void setContextRenderer(java.lang.String contextRenderer)
public static void setFilter(java.lang.String filter)
public static void setTreeMatcher(java.lang.String treeMatcher)
public static Dictionary getWordNetDictionary()
public static IWordNetMatcher getIWNMatcher()
public static ILinguisticOracle getLinguisticOracle()
public IPreprocessor getPreprocessor()
public IMatcherLibrary getMatcherLibrary()
public static IContext getIContext()
public void setProperties(java.util.Properties properites)
IMatchManager
setProperties
in interface IMatchManager
public static java.lang.Object getClassForName(java.lang.String className)
public static void retainValue(java.util.Vector<java.lang.String> v, java.lang.String value)
v
- vectorvalue
- valuepublic static void initJWNL() throws SMatchException
SMatchException
- SMatchExceptionpublic static void printMemoryUsage()
public IContext preprocess(IContext ctxSource)
IMatchManager
preprocess
in interface IMatchManager
ctxSource
- interface to context to be preprocessed
public IContext classify(IContext ctxSource)
IMatchManager
classify
in interface IMatchManager
ctxSource
- interface to preprocessed context without concept at node formulas
public void renderContext(IContext ctxSource, java.lang.String fileName)
IMatchManager
renderContext
in interface IMatchManager
ctxSource
- context to be renderedfileName
- string which defines output devicepublic IMatchMatrix elementLevelMatching(IContext sourceContext, IContext targetContext) throws SMatchException
IMatchManager
elementLevelMatching
in interface IMatchManager
SMatchException
public IMatchMatrix structureLevelMatching(IContext sourceContext, IContext targetContext, IMatchMatrix ClabMatrix) throws SMatchException
IMatchManager
structureLevelMatching
in interface IMatchManager
ClabMatrix
- interface to matrix of semantic relations between atomic concepts of labels in the contexts
SMatchException
public IMatchMatrix filter(java.util.Vector args)
IMatchManager
filter
in interface IMatchManager
args
- parameters to the filtering process (as in DefaultFilter implementation)public IMapping renderMapping(java.util.Vector args)
IMatchManager
renderMapping
in interface IMatchManager
args
- parameters to the rendering process (as in DefaultHTMLMappingRenderer implementation)public IContext offline(IContext ctxSource, java.lang.String ctxsSourceFile)
offline
in interface IMatchManager
ctxSource
- context to preprocessorsctxsSourceFile
- file to save preprocessed context
public IMapping online(IContext sourceContext, IContext targetContext) throws SMatchException
IMatchManager
online
in interface IMatchManager
sourceContext
- interface to preprocessed context to be matchedtargetContext
- interface to preprocessed context to be matched
SMatchException
public IMapping match(IContext sourceContext, IContext targetContext) throws SMatchException
IMatchManager
match
in interface IMatchManager
sourceContext
- interface to context to be matchedtargetContext
- interface to context to be matched
SMatchException
public IContext loadContext(java.lang.String fileName) throws SMatchException
loadContext
in interface IMatchManager
fileName
- file to load
SMatchException
public static void main(java.lang.String[] args) throws SMatchException
SMatchException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |