public Word2VecModelThrift toThrift() {
		double[] vectorsArray;
		if(vectors.hasArray()) {
			vectorsArray = vectors.array();
		} else {
			vectorsArray = new double[vectors.limit()];
			vectors.position(0);
			vectors.get(vectorsArray);
		}

		return new Word2VecModelThrift()
				.setVocab(vocab)
				.setLayerSize(layerSize)
				.setVectors(Doubles.asList(vectorsArray));
	}
public Word2VecModelThrift toThrift ( ) { double [ ] vectorsArray ; if ( vectors . hasArray ( ) ) { vectorsArray = vectors . array ( ) ; } else { vectorsArray = new double [ vectors . limit ( ) ] ; vectors . position ( 0 ) ; vectors . get ( vectorsArray ) ; } return new Word2VecModelThrift ( ) . setVocab ( vocab ) . setLayerSize ( layerSize ) . setVectors ( Doubles . asList ( vectorsArray ) ) ; }
@return Serializable thrift representation