de.pado.dv
Class Parameters

java.lang.Object
  extended by de.pado.dv.Parameters

public class Parameters
extends java.lang.Object

The class Parameters contains functions that parametrize the extraction of Basis Elements and Semantic Spaces. They can be changed by the user.


Constructor Summary
Parameters()
           
 
Method Summary
static java.lang.String basisMapping(Path path)
          returns the basis element to which a path corresponds.
static boolean isEquivalent(Path path1, Path path2)
          isEquivalent tests if two paths are equivalent.
static double pathValue(Path path, java.lang.String valuation)
          pathValue implements the Path Value Function parameter.
static java.lang.String prettyPrintSpecs()
          pretty print path value function names for help
static java.lang.String prettyPrintVals()
          pretty print path value function names for help
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameters

public Parameters()
Method Detail

prettyPrintSpecs

public static java.lang.String prettyPrintSpecs()
pretty print path value function names for help


prettyPrintVals

public static java.lang.String prettyPrintVals()
pretty print path value function names for help


isEquivalent

public static boolean isEquivalent(Path path1,
                                   Path path2)
isEquivalent tests if two paths are equivalent. It uses the "basisMapping" method for this purpose. It effectively introduces a partition of the set of paths into equivalence classes (i.e. Basis Elements) in that p1 and p2 are in the same equivalence class iff basisMapping(p1) and basisMapping(p2) are equal(). Caveat: The same equivalence relation MUST be used for ExtractBasisElements and ExtractSpace.


basisMapping

public static java.lang.String basisMapping(Path path)
returns the basis element to which a path corresponds. This is a central method -- it defines the basis mapping function for the semantic space. The current implementation is word-based (returns the last word of the path).


pathValue

public static double pathValue(Path path,
                               java.lang.String valuation)
pathValue implements the Path Value Function parameter. It provides a counting scheme for paths in the form of a function path x value function -> int that returns the value of a path for a given valuation function. Currently implemented path value functions are: plain, oblique, length, oblength. By adding new counting schemes, the user can specify his own Path Value Function.