de.unima.ki.mmatch
Class Setting

java.lang.Object
  extended by de.unima.ki.mmatch.Setting

public class Setting
extends java.lang.Object


Field Summary
static java.util.HashSet<java.lang.String> antiWords
           
static int CONCEPTS
          The number to identify which matrix should be created. 100 stands for the concept matrix.
static int CONSTANTS_AS_WEIGHT
          Choose fixed constants as the join factor.
static int ENTROPY
          Choose the entropy of a matrix as the join factor.
static java.util.HashSet<java.lang.String> ignoreWords
           
static java.util.HashSet<java.lang.String> inverseWords
           
static int MAXIMUM
          Choose the maximum of the values to create a new matrix.
static int NUMBER_OF_INTERVALS
          Defines into how many parts the interval 0 to 1 should be seperated, only needed if the entropy of a matrix should be computed.
static int PROPERTIES
          The number to identify which matrix should be created. 101 stands for the property matrix.
static int STANDARD_DEVIATION
          Choose the standard deviation of a matrix as the join factor.
static java.util.HashSet<java.lang.String> strangeWords
           
static int VARIANCE
          Choose the variance of a matrix as the join factor.
 
Constructor Summary
Setting()
           
 
Method Summary
static java.lang.String getAlignmentPath()
           
static int getConceptJoinFactor()
           
static double getConceptRelationJoinFactor()
           
static double getConceptSyntacticWordnetJoinFactor()
           
static boolean getCreateExplanations()
           
static double getGeneralThreshold()
           
static double getHeadNounWeight()
           
static double getMinimumOccurenceSeperator()
           
static int getNumberOfRoot()
           
static int getPropertyJoinFactor()
           
static double getPropertyLogicJoinFactor()
           
static double getPropertyRelationJoinFactor()
           
static double getPropertySyntacticWordnetJoinFactor()
           
static double getStemWeight()
           
static java.lang.String getStringMetric()
           
static double getSyntacticEquivalenceJoinFactor()
           
static int getSyntacticJoinFactor()
           
static int getTopK()
           
static boolean getWordnetActivated()
           
static double getWordnetEquivalenceJoinFactor()
           
static void load()
          Load all files which are needed.
static void loadWordnet()
          Load the wordnet dictonary which is used to create the wordnet matrices.
static void setAlignmentPath(java.lang.String path)
           
static void setConceptJoinFactor(int type, double... values)
           
static void setCreateExplanations(boolean createExplanations)
           
static void setGeneralThreshold(double generalThreshold)
           
static void setHeadNounWeight(double headNounWeight)
           
static void setMinimumOccurenceSeperator(double minimumOccurenceSeperator)
           
static void setNumberOfRoot(int numberOfRoot)
           
static void setPropertyJoinFactor(int type, double... values)
           
static void setStemWeight(double stemWeight)
           
static void setStringMetric(java.lang.String stringMetric)
           
static void setSyntacticJoinFactor(int type, double... values)
          Set the syntactic join factor.
static void setTopK(int topK)
           
static void setWordnetActivated(boolean wordnetActivated)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONCEPTS

public static final int CONCEPTS
The number to identify which matrix should be created. 100 stands for the concept matrix.

See Also:
Constant Field Values

PROPERTIES

public static final int PROPERTIES
The number to identify which matrix should be created. 101 stands for the property matrix.

See Also:
Constant Field Values

STANDARD_DEVIATION

public static final int STANDARD_DEVIATION
Choose the standard deviation of a matrix as the join factor.

See Also:
Constant Field Values

VARIANCE

public static final int VARIANCE
Choose the variance of a matrix as the join factor.

See Also:
Constant Field Values

ENTROPY

public static final int ENTROPY
Choose the entropy of a matrix as the join factor.

See Also:
Constant Field Values

MAXIMUM

public static final int MAXIMUM
Choose the maximum of the values to create a new matrix.

See Also:
Constant Field Values

CONSTANTS_AS_WEIGHT

public static final int CONSTANTS_AS_WEIGHT
Choose fixed constants as the join factor.

See Also:
Constant Field Values

NUMBER_OF_INTERVALS

public static final int NUMBER_OF_INTERVALS
Defines into how many parts the interval 0 to 1 should be seperated, only needed if the entropy of a matrix should be computed.

See Also:
Constant Field Values

antiWords

public static java.util.HashSet<java.lang.String> antiWords

strangeWords

public static java.util.HashSet<java.lang.String> strangeWords

ignoreWords

public static java.util.HashSet<java.lang.String> ignoreWords

inverseWords

public static java.util.HashSet<java.lang.String> inverseWords
Constructor Detail

Setting

public Setting()
Method Detail

getSyntacticEquivalenceJoinFactor

public static double getSyntacticEquivalenceJoinFactor()
Returns:

getWordnetEquivalenceJoinFactor

public static double getWordnetEquivalenceJoinFactor()
Returns:

setSyntacticJoinFactor

public static void setSyntacticJoinFactor(int type,
                                          double... values)
                                   throws MMatchException
Set the syntactic join factor.

Parameters:
type - The type of the factor.
values - The values if the factors should be constants.
Throws:
MMatchException

getSyntacticJoinFactor

public static int getSyntacticJoinFactor()
Returns:
The syntactic join factor.

setConceptJoinFactor

public static void setConceptJoinFactor(int type,
                                        double... values)
                                 throws MMatchException
Parameters:
type -
values -
Throws:
MMatchException

getConceptSyntacticWordnetJoinFactor

public static double getConceptSyntacticWordnetJoinFactor()
Returns:

getConceptRelationJoinFactor

public static double getConceptRelationJoinFactor()
Returns:

getConceptJoinFactor

public static int getConceptJoinFactor()
Returns:

setPropertyJoinFactor

public static void setPropertyJoinFactor(int type,
                                         double... values)
                                  throws MMatchException
Parameters:
type -
values -
Throws:
MMatchException

getPropertySyntacticWordnetJoinFactor

public static double getPropertySyntacticWordnetJoinFactor()
Returns:

getPropertyRelationJoinFactor

public static double getPropertyRelationJoinFactor()
Returns:

getPropertyLogicJoinFactor

public static double getPropertyLogicJoinFactor()
Returns:

getPropertyJoinFactor

public static int getPropertyJoinFactor()
Returns:

setWordnetActivated

public static void setWordnetActivated(boolean wordnetActivated)
Parameters:
wordnetActivated -

getWordnetActivated

public static boolean getWordnetActivated()
Returns:

setMinimumOccurenceSeperator

public static void setMinimumOccurenceSeperator(double minimumOccurenceSeperator)
Parameters:
minimumOccurenceSeperator -

getMinimumOccurenceSeperator

public static double getMinimumOccurenceSeperator()
Returns:

setStemWeight

public static void setStemWeight(double stemWeight)
Parameters:
stemWeight -

getStemWeight

public static double getStemWeight()
Returns:

getStringMetric

public static java.lang.String getStringMetric()
Returns:

setStringMetric

public static void setStringMetric(java.lang.String stringMetric)
                            throws MMatchException
Parameters:
stringMetric -
Throws:
MMatchException

getGeneralThreshold

public static double getGeneralThreshold()
Returns:

setGeneralThreshold

public static void setGeneralThreshold(double generalThreshold)
Parameters:
generalThreshold -

getTopK

public static int getTopK()
Returns:

setTopK

public static void setTopK(int topK)
Parameters:
topK -

getNumberOfRoot

public static int getNumberOfRoot()
Returns:
The number of root.

setNumberOfRoot

public static void setNumberOfRoot(int numberOfRoot)
                            throws MMatchException
Parameters:
numberOfRoot -
Throws:
MMatchException

getHeadNounWeight

public static double getHeadNounWeight()

setHeadNounWeight

public static void setHeadNounWeight(double headNounWeight)
                              throws MMatchException
Parameters:
headNounWeight -
Throws:
MMatchException

setAlignmentPath

public static void setAlignmentPath(java.lang.String path)

getAlignmentPath

public static java.lang.String getAlignmentPath()

getCreateExplanations

public static boolean getCreateExplanations()

setCreateExplanations

public static void setCreateExplanations(boolean createExplanations)

load

public static void load()
                 throws MMatchException
Load all files which are needed.

Throws:
MMatchException

loadWordnet

public static void loadWordnet()
                        throws MMatchException
Load the wordnet dictonary which is used to create the wordnet matrices. The place of the dictonary is specified in the file_properties.xml.

Throws:
MMatchException