public class Parser extends AbstractBottomUpParser
COMPLETE, CONT, defaultAdvancePercentage, defaultBeamSize, INC_NODE, INCOMPLETE, OTHER, START, TOK_NODE, TOP_NODE, ZERO
Constructor and Description |
---|
Parser(ParserModel model) |
Parser(ParserModel model,
int beamSize,
double advancePercentage) |
Modifier and Type | Method and Description |
---|---|
static void |
mergeReportIntoManifest(Map<String,String> manifest,
Map<String,String> report,
String namespace) |
static AbstractModel |
train(ObjectStream<Event> es,
int iterations,
int cut)
Deprecated.
Please do not use anymore, use the ObjectStream train methods instead! This method
will be removed soon.
|
static ParserModel |
train(String languageCode,
ObjectStream<Parse> parseSamples,
HeadRules rules,
int iterations,
int cut)
Deprecated.
use
train(String, ObjectStream, HeadRules, TrainingParameters)
instead and pass in a TrainingParameters object. |
static ParserModel |
train(String languageCode,
ObjectStream<Parse> parseSamples,
HeadRules rules,
TrainingParameters mlParams) |
buildDictionary, buildDictionary, collapsePunctuation, parse, parse, setErrorReporting, setParents
public Parser(ParserModel model, int beamSize, double advancePercentage)
public Parser(ParserModel model)
@Deprecated public static AbstractModel train(ObjectStream<Event> es, int iterations, int cut) throws IOException
IOException
public static void mergeReportIntoManifest(Map<String,String> manifest, Map<String,String> report, String namespace)
public static ParserModel train(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, TrainingParameters mlParams) throws IOException
IOException
@Deprecated public static ParserModel train(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, int iterations, int cut) throws IOException
train(String, ObjectStream, HeadRules, TrainingParameters)
instead and pass in a TrainingParameters object.IOException
Copyright © 2015 The Apache Software Foundation. All rights reserved.