edu.stanford.nlp.parser.lexparser
Class ParseFiles

java.lang.Object
  extended by edu.stanford.nlp.parser.lexparser.ParseFiles

public class ParseFiles
extends java.lang.Object

Runs the parser over a set of files. This is useful for making it operate in a multithreaded manner. If you want access to the various stats it keeps, create the object and call parseFiles; otherwise, the static parseFiles is a good convenience method.

Author:
John Bauer (refactored from existing code)

Constructor Summary
ParseFiles(Options op, TreePrint treePrint, ParserQueryFactory pqFactory)
           
 
Method Summary
 void parseFiles(java.lang.String[] args, int argIndex, boolean tokenized, TokenizerFactory<? extends HasWord> tokenizerFactory, java.lang.String elementDelimiter, java.lang.String sentenceDelimiter, Function<java.util.List<HasWord>,java.util.List<HasWord>> escaper, java.lang.String tagDelimiter)
           
 void processResults(ParserQuery parserQuery, int num, java.io.PrintWriter pwo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseFiles

public ParseFiles(Options op,
                  TreePrint treePrint,
                  ParserQueryFactory pqFactory)
Method Detail

parseFiles

public void parseFiles(java.lang.String[] args,
                       int argIndex,
                       boolean tokenized,
                       TokenizerFactory<? extends HasWord> tokenizerFactory,
                       java.lang.String elementDelimiter,
                       java.lang.String sentenceDelimiter,
                       Function<java.util.List<HasWord>,java.util.List<HasWord>> escaper,
                       java.lang.String tagDelimiter)

processResults

public void processResults(ParserQuery parserQuery,
                           int num,
                           java.io.PrintWriter pwo)


Stanford NLP Group