public static void saveMapping(BidiMap mapping,File outputFile) throws IOException {
  ObjectOutputStream objectOutputStream=new ObjectOutputStream(new FileOutputStream(outputFile));
  objectOutputStream.writeObject(mapping);
  IOUtils.closeQuietly(objectOutputStream);
}

public static void saveMapping ( BidiMap mapping , File outputFile ) throws IOException { ObjectOutputStream objectOutputStream = new ObjectOutputStream ( new FileOutputStream ( outputFile ) ) ; objectOutputStream . writeObject ( mapping ) ; IOUtils . closeQuietly ( objectOutputStream ) ; }
saves label - integer mapping to a file
