Example usage for opennlp.tools.cmdline CmdLineUtil writeModel

List of usage examples for opennlp.tools.cmdline CmdLineUtil writeModel

Introduction

In this page you can find the example usage for opennlp.tools.cmdline CmdLineUtil writeModel.

Prototype

public static void writeModel(String modelName, File modelFile, BaseModel model) 

Source Link

Document

Writes a BaseModel to disk.

Usage

From source file:opennlp.tools.disambiguator.WSDModel.java

public boolean writeModel(String path) {
    File outFile = new File(path + ".wsd.model");
    CmdLineUtil.writeModel("wsd model", outFile, this);
    return true;/*from   www  .j  ava 2 s  .com*/
}