src/main/java/eu/digitisation/ngram/NgramModel.java
public void save(File file) {
        try {
            FileOutputStream fos = new FileOutputStream(file);
            GZIPOutputStream gos = new GZIPOutputStream(fos);
            ObjectOutputStream out = new ObjectOutputStream(gos);

            out.writeObject(this);
            out.close();
        } catch (IOException ex) {
            Messages.severe(NgramModel.class.getName() + ": " + ex);
        }
    }
/**
     * Save n-gram model to GZIP file
     *
     * @param file the output file
     */
Save n-gram model to GZIP file
@param file the output file
Save n - gram model to GZIP file @param file the output file
public void save(File file) {
        try {
            FileOutputStream fos = new FileOutputStream(file);
            GZIPOutputStream gos = new GZIPOutputStream(fos);
            ObjectOutputStream out = new ObjectOutputStream(gos);
            out.writeObject(this);
            out.close();
        } catch (IOException ex) {
            Messages.severe(NgramModel.class.getName() + ": " + ex);
        }
    }
public void save ( File file ) { try { FileOutputStream fos = new FileOutputStream ( file ) ; GZIPOutputStream gos = new GZIPOutputStream ( fos ) ; ObjectOutputStream out = new ObjectOutputStream ( gos ) ; out . writeObject ( this ) ; out . close ( ) ; } catch ( IOException ex ) { Messages . severe ( NgramModel . class . getName ( ) + ": " + ex ) ; } }
Save n-gram model to GZIP file
 @param file the output file
Save n - gram model to GZIP file @param file the output file