public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
  int vocabSize=in.readInt();
  for (int i=0; i < vocabSize; i++) {
    String line=in.readUTF();
    Vocabulary.id(line);
  }
  numTokens=in.readDouble();
  countFuncs=new long[in.readInt()][2];
  for (int i=0; i < countFuncs.length; i++) {
    countFuncs[i][0]=in.readLong();
    countFuncs[i][1]=in.readLong();
  }
  typesFuncs=new long[in.readInt()][2];
  for (int i=0; i < typesFuncs.length; i++) {
    typesFuncs[i][0]=in.readLong();
    typesFuncs[i][1]=in.readLong();
  }
  quantizationBase=in.readDouble();
  bf=new BloomFilter();
  bf.readExternal(in);
}

public void readExternal ( ObjectInput in ) throws IOException , ClassNotFoundException { int vocabSize = in . readInt ( ) ; for ( int i = 0 ; i < vocabSize ; i ++ ) { String line = in . readUTF ( ) ; Vocabulary . id ( line ) ; } numTokens = in . readDouble ( ) ; countFuncs = new long [ in . readInt ( ) ] [ 2 ] ; for ( int i = 0 ; i < countFuncs . length ; i ++ ) { countFuncs [ i ] [ 0 ] = in . readLong ( ) ; countFuncs [ i ] [ 1 ] = in . readLong ( ) ; } typesFuncs = new long [ in . readInt ( ) ] [ 2 ] ; for ( int i = 0 ; i < typesFuncs . length ; i ++ ) { typesFuncs [ i ] [ 0 ] = in . readLong ( ) ; typesFuncs [ i ] [ 1 ] = in . readLong ( ) ; } quantizationBase = in . readDouble ( ) ; bf = new BloomFilter ( ) ; bf . readExternal ( in ) ; }
read a bloom filter lm from an external file .
