Package edu.upenn.seas.mstparser
Class DependencyParser
- java.lang.Object
-
- edu.upenn.seas.mstparser.DependencyParser
-
public class DependencyParser extends Object
-
-
Field Summary
Fields Modifier and Type Field Description ParserOptionsoptions
-
Constructor Summary
Constructors Constructor Description DependencyParser(DependencyPipe pipe, ParserOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidloadModel(String file)static voidmain(String[] args)StringoutputParses()StringoutputParses(String content)voidsaveModel(String file)voidsetParameters(double[] parameters)voidtrain(int[] instanceLengths, String trainfile, File train_forest)
-
-
-
Field Detail
-
options
public ParserOptions options
-
-
Constructor Detail
-
DependencyParser
public DependencyParser(DependencyPipe pipe, ParserOptions options)
-
-
Method Detail
-
train
public void train(int[] instanceLengths, String trainfile, File train_forest) throws IOException- Throws:
IOException
-
saveModel
public void saveModel(String file) throws IOException
- Throws:
IOException
-
setParameters
public void setParameters(double[] parameters)
-
outputParses
public String outputParses() throws IOException
- Throws:
IOException
-
outputParses
public String outputParses(String content) throws IOException
- Throws:
IOException
-
main
public static void main(String[] args) throws FileNotFoundException, Exception
- Throws:
FileNotFoundExceptionException
-
-