code: public static void main(String[] args) {
      if (args.length < 2) {
        System.err.println("Input and output files not provided");
        System.err
            .println("You need to provide both the input serialized java fst model");
        System.err.println("and the output binary openfst model.");
        System.exit(1);
      }
  
      MutableFst fst = FstInputOutput.readFstFromBinaryResource(args[0]);
  
      // Serialize the java fst model to disk
      System.out.println("Saving as openfst text model...");
      Convert.export(fst, args[1]);
    }
docs: Exports a java binary model to openfst text format Several files are exported as follows: - basename.input.syms -
  basename.output.syms - basename.fst.txt
  
  args[0] the java binary model filename
  args[1] openfst's files basename