Package opennlp.model

Examples of opennlp.model.PlainTextFileDataReader


   * the model contents.
   *
   * @param br The BufferedReader containing the model information.
   */
  public PlainTextPerceptronModelReader(BufferedReader br) {
    super(new PlainTextFileDataReader(br));
  }
View Full Code Here


   *
   * @param br
   *          The BufferedReader containing the model information.
   */
  public PlainTextGISModelReader(BufferedReader br) {
    super(new PlainTextFileDataReader(br));
  }
View Full Code Here

    sLogger.setLevel(Level.DEBUG);
   
    sLogger.debug(f);
    InputStream modelIn = localFs.open(f);
    sLogger.debug("input stream created: "+modelIn);
    DataReader reader = new PlainTextFileDataReader(modelIn);
    String modelType = reader.readUTF();
    sLogger.debug("model type: "+modelType);
    if (modelType.equals("Perceptron")) {
      delegateModelReader = new PerceptronModelReader(reader);
    }else if (modelType.equals("GIS")) {
      delegateModelReader = new GISModelReader(reader);
View Full Code Here

TOP

Related Classes of opennlp.model.PlainTextFileDataReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.