public class KBeamArcEagerParser extends TransitionBasedParser
| 限定符和类型 | 字段和说明 |
|---|---|
Options |
options |
classifier, dependencyRelations, featureLength, maps| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
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
public KBeamArcEagerParser(String modelPath, int numOfThreads) throws IOException, ClassNotFoundException
public 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–2019 码农场. All rights reserved.