sofie.maxsat
Class Config

java.lang.Object
  extended by sofie.maxsat.Config

public class Config
extends java.lang.Object

Class Configuration This class is part of the SOFIE system (http://mpii.de/yago-naga/sofie). It is licensed under the Creative Commons Attribution-Noncommercial-Share-Alike 3.0 Unported License (http://creativecommons.org/licenses/by-nc-sa/3.0/) by Fabian M. Suchanek (http://suchanek.name). If you use this class for scientific purposes, please cite Fabian M. Suchanek, Mauro Sozio, Gerhard Weikum "SOFIE: A Self-Organizing Framework for Information Extraction" (International World Wide Web Conference 2009) Holds global data


Field Summary
static int BATCHSIZE
          Batch size
static javatools.database.Database database
          Points to the database
static java.lang.String delimitPOC
          Additional constraint to consider only patternoccurrences < MAXNUMPATOC
static int maxPatternOccurrenceId
          Maximum ID to consider among the pattern occurrences (or -1)
static int minPatternOccurrenceId
          Minimum ID to consider among the pattern occurrences (or -1)
protected static java.util.Collection<java.lang.String> relationsToLearn
          Relations to learn (as Strings, because they may be undeclared)
static java.util.List<Rule> rules
          The rules that to optimize
 
Constructor Summary
Config()
           
 
Method Summary
static void close()
          Closes the database
static void init(java.io.File iniFile)
          Initializes the variables
static boolean isRelationToLearn(basics.datagraph.Relation rel)
          TRUE for relations to learn
static boolean isRelationToLearn(java.lang.String rel)
          TRUE for relations to learn
static void main(java.lang.String[] args)
          Test
static java.lang.String normalizeRelationToLearn(java.lang.String rel)
          Normalizes a relation to learn
static void setPatternOccurences(int from, int to)
          Sets patternoccurence limits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxPatternOccurrenceId

public static int maxPatternOccurrenceId
Maximum ID to consider among the pattern occurrences (or -1)


minPatternOccurrenceId

public static int minPatternOccurrenceId
Minimum ID to consider among the pattern occurrences (or -1)


BATCHSIZE

public static int BATCHSIZE
Batch size


database

public static javatools.database.Database database
Points to the database


relationsToLearn

protected static java.util.Collection<java.lang.String> relationsToLearn
Relations to learn (as Strings, because they may be undeclared)


rules

public static java.util.List<Rule> rules
The rules that to optimize


delimitPOC

public static java.lang.String delimitPOC
Additional constraint to consider only patternoccurrences < MAXNUMPATOC

Constructor Detail

Config

public Config()
Method Detail

init

public static void init(java.io.File iniFile)
                 throws java.lang.Exception
Initializes the variables

Throws:
java.lang.Exception

isRelationToLearn

public static boolean isRelationToLearn(java.lang.String rel)
TRUE for relations to learn


normalizeRelationToLearn

public static java.lang.String normalizeRelationToLearn(java.lang.String rel)
Normalizes a relation to learn


isRelationToLearn

public static boolean isRelationToLearn(basics.datagraph.Relation rel)
TRUE for relations to learn


setPatternOccurences

public static void setPatternOccurences(int from,
                                        int to)
Sets patternoccurence limits


close

public static void close()
Closes the database


main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Test

Throws:
java.lang.Exception