#NEWLINE# def testLargeMmap( self ) : #NEWLINE# #INDENT# 'Test storing/loading the entire model.' #NEWLINE# model = word2vec . Word2Vec ( sentences , min_count = 1 ) #NEWLINE# model . save ( testfile ( ) , sep_limit = 0 ) #NEWLINE# self . models_equal ( model , word2vec . Word2Vec . load ( testfile ( ) ) ) #NEWLINE# self . models_equal ( self , word2vec . Word2Vec . load ( testfile ( ) , mmap = 'r' ) )