Class OldFormatGISModelReader


  • public class OldFormatGISModelReader
    extends PlainTextGISModelReader
    A reader for GIS models stored in the format used in v1.0 of Maxent. It extends the PlainTextGISModelReader to read in the info and then overrides the getParameters method so that it can appropriately read the binary file which stores the parameters.
    • Constructor Detail

      • OldFormatGISModelReader

        public OldFormatGISModelReader​(java.lang.String modelname)
                                throws java.io.IOException
        Constructor which takes the name of the model without any suffixes, such as ".mei.gz" or ".mep.gz".
        Throws:
        java.io.IOException
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Convert a model created with Maxent 1.0 to a format used with Maxent 1.2.

        Usage: java opennlp.tools.ml.maxent.io.OldFormatGISModelReader model_name_prefix (new_model_name)");

        If the new_model_name is left unspecified, the new model will be saved in gzipped, binary format as "<model_name_prefix>.bin.gz".

        Throws:
        java.io.IOException