opennlp.perceptron
Class PlainTextPerceptronModelReader
java.lang.Object
opennlp.model.AbstractModelReader
opennlp.perceptron.PerceptronModelReader
opennlp.perceptron.PlainTextPerceptronModelReader
public class PlainTextPerceptronModelReader
- extends PerceptronModelReader
PlainTextPerceptronModelReader
public PlainTextPerceptronModelReader(BufferedReader br)
- Constructor which directly instantiates the BufferedReader containing
the model contents.
- Parameters:
br
- The BufferedReader containing the model information.
PlainTextPerceptronModelReader
public PlainTextPerceptronModelReader(File f)
throws IOException
- Constructor which takes a File and creates a reader for it. Detects
whether the file is gzipped or not based on whether the suffix contains
".gz".
- Parameters:
f
- The File in which the model is stored.
- Throws:
IOException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.