leila.algorithm
Class Test

java.lang.Object
  extended by leila.algorithm.Test

public class Test
extends java.lang.Object

This class is part of LEILA (http://mpii.de/yago-naga/leila). It is licensed under the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0) by the author Fabian M. Suchanek (http://suchanek.name).

Test.java is a user-interface that applies learned patterns to a set of files.


Constructor Summary
Test()
           
 
Method Summary
static void apply(java.io.File inf,  visitor)
          Applies a visitor to the FeatureObjects of all pairs of interesting words in all sentences in a file
static void error(java.lang.String s)
          Reports an error and quits
static void findNew(java.io.File inf, Relation learnMe, Classifier memory, OutputPairs newPairs)
          Runs through the sentences , applying the good patterns
static void main(java.util.Collection<java.lang.String> files, Relation r, Classifier m, OutputPairs newPairs)
          Applies the memory to the LGO-file(s) and prints all noun pairs found (call by Java)
static void main(java.lang.String[] argv)
          Applies the memory to the LGO-file and prints all noun pairs found (call by user)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Test

public Test()
Method Detail

apply

public static void apply(java.io.File inf,
                          visitor)
                  throws java.lang.Exception
Applies a visitor to the FeatureObjects of all pairs of interesting words in all sentences in a file

Throws:
java.lang.Exception

findNew

public static void findNew(java.io.File inf,
                           Relation learnMe,
                           Classifier memory,
                           OutputPairs newPairs)
                    throws java.lang.Exception
Runs through the sentences , applying the good patterns

Throws:
java.lang.Exception

error

public static void error(java.lang.String s)
Reports an error and quits


main

public static void main(java.util.Collection<java.lang.String> files,
                        Relation r,
                        Classifier m,
                        OutputPairs newPairs)
                 throws java.lang.Exception
Applies the memory to the LGO-file(s) and prints all noun pairs found (call by Java)

Throws:
java.lang.Exception

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Applies the memory to the LGO-file and prints all noun pairs found (call by user)

Throws:
java.lang.Exception