public class KBeamArcEagerParser extends TransitionBasedParser
| Modifier and Type | Field and Description |
|---|---|
Options |
options |
classifier, dependencyRelations, featureLength, maps| Constructor and Description |
|---|
KBeamArcEagerParser(AveragedPerceptron classifier,
ArrayList<Integer> dependencyRelations,
int featureLength,
IndexMaps maps,
int numOfThreads,
Options options) |
KBeamArcEagerParser(ParserModel parserModel,
int numOfThreads) |
KBeamArcEagerParser(String modelPath) |
KBeamArcEagerParser(String modelPath,
int numOfThreads) |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
parse(Sentence sentence) |
Configuration |
parse(Sentence sentence,
boolean rootFirst,
int beamWidth,
int numOfThreads) |
Configuration |
parse(String[] words,
String[] tags) |
Configuration |
parse(String[] words,
String[] tags,
boolean rootFirst,
int beamWidth,
int numOfThreads) |
void |
parseConllFile(String inputFile,
String outputFile,
boolean rootFirst,
int beamWidth,
boolean labeled,
boolean lowerCased,
int numThreads,
boolean partial,
String scorePath) |
void |
parseConllFileNoParallel(String inputFile,
String outputFile,
boolean rootFirst,
int beamWidth,
boolean labeled,
boolean lowerCased,
int numOfThreads,
boolean partial,
String scorePath)
Needs Conll 2006 format
|
void |
parseConllFileParallel(String inputFile,
String outputFile,
boolean rootFirst,
int beamWidth,
boolean lowerCased,
int numThreads,
boolean partial,
String scorePath) |
Configuration |
parsePartial(Instance instance,
Sentence sentence,
boolean rootFirst,
int beamWidth,
int numOfThreads) |
void |
parseTaggedFile(String inputFile,
String outputFile,
boolean rootFirst,
int beamWidth,
boolean lowerCased,
String separator,
int numOfThreads) |
void |
shutDownLiveThreads() |
idWordpublic Options options
public KBeamArcEagerParser(String modelPath) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic KBeamArcEagerParser(String modelPath, int numOfThreads) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic KBeamArcEagerParser(ParserModel parserModel, int numOfThreads)
public KBeamArcEagerParser(AveragedPerceptron classifier, ArrayList<Integer> dependencyRelations, int featureLength, IndexMaps maps, int numOfThreads, Options options)
public Configuration parse(String[] words, String[] tags) throws ExecutionException, InterruptedException
public Configuration parse(Sentence sentence) throws ExecutionException, InterruptedException
public Configuration parse(String[] words, String[] tags, boolean rootFirst, int beamWidth, int numOfThreads) throws ExecutionException, InterruptedException
public Configuration parse(Sentence sentence, boolean rootFirst, int beamWidth, int numOfThreads) throws ExecutionException, InterruptedException
public Configuration parsePartial(Instance instance, Sentence sentence, boolean rootFirst, int beamWidth, int numOfThreads) throws ExecutionException, InterruptedException
public void parseConllFile(String inputFile, String outputFile, boolean rootFirst, int beamWidth, boolean labeled, boolean lowerCased, int numThreads, boolean partial, String scorePath) throws IOException, ExecutionException, InterruptedException
public void parseConllFileNoParallel(String inputFile, String outputFile, boolean rootFirst, int beamWidth, boolean labeled, boolean lowerCased, int numOfThreads, boolean partial, String scorePath) throws IOException, ExecutionException, InterruptedException
inputFile - outputFile - rootFirst - beamWidth - ExceptionIOExceptionExecutionExceptionInterruptedExceptionpublic void parseTaggedFile(String inputFile, String outputFile, boolean rootFirst, int beamWidth, boolean lowerCased, String separator, int numOfThreads) throws Exception
Exceptionpublic void parseConllFileParallel(String inputFile, String outputFile, boolean rootFirst, int beamWidth, boolean lowerCased, int numThreads, boolean partial, String scorePath) throws IOException, InterruptedException, ExecutionException
public void shutDownLiveThreads()
Copyright © 2014–2021 码农场. All rights reserved.