public class DependencyParser extends Object
| Modifier and Type | Field and Description |
|---|---|
ParserOptions |
options |
| Constructor and Description |
|---|
DependencyParser(DependencyPipe pipe,
ParserOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
loadModel(String file) |
static void |
main(String[] args) |
String |
outputParses() |
String |
outputParses(String content) |
void |
saveModel(String file) |
void |
setParameters(double[] parameters) |
void |
train(int[] instanceLengths,
String trainfile,
File train_forest) |
public ParserOptions options
public DependencyParser(DependencyPipe pipe, ParserOptions options)
public void train(int[] instanceLengths,
String trainfile,
File train_forest)
throws IOException
IOExceptionpublic void saveModel(String file) throws IOException
IOExceptionpublic void setParameters(double[] parameters)
public String outputParses() throws IOException
IOExceptionpublic String outputParses(String content) throws IOException
IOExceptionpublic static void main(String[] args) throws FileNotFoundException, Exception
FileNotFoundExceptionExceptionCopyright © 2018 JULIE Lab Jena, Germany. All rights reserved.