org.cleartk.syntax.opennlp.parser
Class Parser

java.lang.Object
  extended by opennlp.tools.parser.AbstractBottomUpParser
      extended by opennlp.tools.parser.chunking.Parser
          extended by org.cleartk.syntax.opennlp.parser.Parser
All Implemented Interfaces:
opennlp.tools.parser.Parser

public class Parser
extends opennlp.tools.parser.chunking.Parser


Copyright (c) 2011, Regents of the University of Colorado
All rights reserved.

Author:
Philip Ogren This class provides a simple extension to Parser which has an additional constructor which takes a POSTagger which replaces the POSTagger that will be loaded from the ParserModel. This is used by ParserAnnotator in conjunction with the CasPosTagger so that the parser can make use of part-of-speech tags in the CAS.

Field Summary
 
Fields inherited from class opennlp.tools.parser.AbstractBottomUpParser
chunker, COMPLETE, completeParses, CONT, createDerivationString, debugOn, defaultAdvancePercentage, defaultBeamSize, headRules, INC_NODE, INCOMPLETE, K, M, ndh, odh, OTHER, punctSet, Q, reportFailedParse, START, tagger, TOK_NODE, TOP_NODE, ZERO
 
Constructor Summary
Parser(opennlp.tools.parser.ParserModel model, int beamSize, double advancePercentage)
           
Parser(opennlp.tools.parser.ParserModel model, int beamSize, double advancePercentage, opennlp.tools.postag.POSTagger tagger)
           
 
Method Summary
 
Methods inherited from class opennlp.tools.parser.chunking.Parser
advanceParses, advanceTop, mergeReportIntoManifest, train, train, train
 
Methods inherited from class opennlp.tools.parser.AbstractBottomUpParser
advanceChunks, advanceTags, buildDictionary, buildDictionary, collapsePunctuation, mapParseIndex, parse, parse, setErrorReporting, setParents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser(opennlp.tools.parser.ParserModel model,
              int beamSize,
              double advancePercentage)

Parser

public Parser(opennlp.tools.parser.ParserModel model,
              int beamSize,
              double advancePercentage,
              opennlp.tools.postag.POSTagger tagger)


Copyright © 2013. All Rights Reserved.