uk.ac.man.entitytagger.matching
Class MatchOperations

java.lang.Object
  extended by uk.ac.man.entitytagger.matching.MatchOperations

public class MatchOperations
extends java.lang.Object


Constructor Summary
MatchOperations()
           
 
Method Summary
private static java.sql.PreparedStatement initDBTable(java.sql.Connection dbConn, java.lang.String table, java.util.logging.Logger logger, boolean clear)
           
static TaggedDocument matchDocument(Matcher matcher, Document doc)
           
static void runDB(Matcher matcher, DocumentIterator documents, int numThreads, java.lang.String table, int report, java.util.logging.Logger logger, java.sql.Connection dbConn, boolean clear)
           
static void runHTML(Matcher matcher, DocumentIterator documents, int numThreads, java.io.File htmlFile, int report, java.util.logging.Logger logger, TaggedDocument.Format format)
           
static void runHTML(Matcher matcher, DocumentIterator documents, int numThreads, java.io.File htmlFile, int report, java.util.logging.Logger logger, TaggedDocument.Format format, boolean link)
           
static void runHTML(Matcher matcher, DocumentIterator documents, int numThreads, java.io.File htmlFile, int report, java.util.logging.Logger logger, TaggedDocument.Format format, boolean link, Function<Pair<java.lang.String>> alternativeTagFunction)
           
static void runOutWithContext(Matcher matcher, DocumentIterator documents, int numThreads, int report, java.io.File file, java.util.logging.Logger logger, int preLength, int postLength)
           
static void runToDir(Matcher matcher, DocumentIterator documents, int numThreads, int report, java.io.File outDir, java.util.logging.Logger logger)
           
static void runToFile(Matcher matcher, DocumentIterator documents, int numThreads, int report, java.io.File outFile, java.util.logging.Logger logger)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchOperations

public MatchOperations()
Method Detail

runToDir

public static void runToDir(Matcher matcher,
                            DocumentIterator documents,
                            int numThreads,
                            int report,
                            java.io.File outDir,
                            java.util.logging.Logger logger)

runHTML

public static void runHTML(Matcher matcher,
                           DocumentIterator documents,
                           int numThreads,
                           java.io.File htmlFile,
                           int report,
                           java.util.logging.Logger logger,
                           TaggedDocument.Format format,
                           boolean link,
                           Function<Pair<java.lang.String>> alternativeTagFunction)

runToFile

public static void runToFile(Matcher matcher,
                             DocumentIterator documents,
                             int numThreads,
                             int report,
                             java.io.File outFile,
                             java.util.logging.Logger logger)

matchDocument

public static TaggedDocument matchDocument(Matcher matcher,
                                           Document doc)

initDBTable

private static java.sql.PreparedStatement initDBTable(java.sql.Connection dbConn,
                                                      java.lang.String table,
                                                      java.util.logging.Logger logger,
                                                      boolean clear)

runDB

public static void runDB(Matcher matcher,
                         DocumentIterator documents,
                         int numThreads,
                         java.lang.String table,
                         int report,
                         java.util.logging.Logger logger,
                         java.sql.Connection dbConn,
                         boolean clear)

runHTML

public static void runHTML(Matcher matcher,
                           DocumentIterator documents,
                           int numThreads,
                           java.io.File htmlFile,
                           int report,
                           java.util.logging.Logger logger,
                           TaggedDocument.Format format)

runHTML

public static void runHTML(Matcher matcher,
                           DocumentIterator documents,
                           int numThreads,
                           java.io.File htmlFile,
                           int report,
                           java.util.logging.Logger logger,
                           TaggedDocument.Format format,
                           boolean link)

runOutWithContext

public static void runOutWithContext(Matcher matcher,
                                     DocumentIterator documents,
                                     int numThreads,
                                     int report,
                                     java.io.File file,
                                     java.util.logging.Logger logger,
                                     int preLength,
                                     int postLength)