Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Lambda arguments args NameParam defaults Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body With Call NameLoad Call NameLoad Str NameStore body For NameStore NameLoad body Expr Yield Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore ListLoad ListLoad Str Str Str ListLoad Str Str Str Str Str Str ListLoad Str Str Str Str ListLoad Str Str Str Str ListLoad Str Str Str ListLoad Str ListLoad Str Str ListLoad Str Str Str ListLoad Str Str Str FunctionDef arguments args defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad GeneratorExp Call NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad keyword BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Str ListLoad Str Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr ListLoad Str ListLoad Str Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareLt AttributeLoad NameLoad attr Num body Return Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Num For NameStore ListLoad Num Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareIn Str ListComp SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num comprehension NameStore Call NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Lambda arguments args NameParam defaults AttributeLoad SubscriptLoad NameLoad Index Num attr Index Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr Call NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr Call NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr Call NameLoad Str NameStore body With Call AttributeLoad NameLoad attr Call NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A N/A 
Automated tests for checking transformation algorithms (the models package).
 N/A logging N/A unittest N/A os N/A tempfile N/A itertools N/A bz2 N/A numpy gensim utils matutils gensim.models word2vec N/A module_path N/A N/A N/A os path dirname __file__ N/A datapath N/A N/A N/A fname N/A N/A N/A N/A os path join module_path test_data fname LeeCorpus N/A object N/A __iter__ N/A N/A self N/A N/A N/A N/A open N/A datapath lee_background.cor f N/A N/A line f N/A N/A N/A N/A N/A utils simple_preprocess line N/A N/A N/A sentences N/A N/A human interface computer N/A survey user computer system response time N/A eps user interface system N/A system human system eps N/A user response time N/A trees N/A graph trees N/A graph minors trees N/A graph minors survey testfile N/A N/A N/A N/A N/A N/A N/A N/A os path join N/A N/A tempfile gettempdir gensim_word2vec.tst N/A TestWord2VecModel N/A N/A unittest TestCase N/A testPersistence N/A N/A self N/A N/A N/A Test storing/loading the entire model. N/A model N/A N/A word2vec Word2Vec sentences min_count 1 N/A N/A N/A model save N/A testfile N/A N/A N/A self models_equal model N/A N/A N/A word2vec Word2Vec load N/A testfile N/A testPersistenceWord2VecFormat N/A N/A self N/A N/A N/A Test storing/loading the entire model in word2vec format. N/A model N/A N/A word2vec Word2Vec sentences min_count 1 N/A N/A N/A model init_sims N/A N/A N/A model save_word2vec_format N/A testfile binary True N/A binary_model N/A N/A N/A word2vec Word2Vec load_word2vec_format N/A testfile binary True norm_only False N/A N/A N/A self assertTrue N/A N/A numpy allclose N/A model N/A human N/A binary_model N/A human N/A norm_only_model N/A N/A N/A word2vec Word2Vec load_word2vec_format N/A testfile binary True norm_only True N/A N/A N/A self assertFalse N/A N/A numpy allclose N/A model N/A human N/A norm_only_model N/A human N/A N/A N/A self assertTrue N/A N/A numpy allclose N/A N/A model syn0norm N/A N/A N/A N/A model vocab N/A human index N/A norm_only_model N/A human N/A testPersistenceWord2VecFormatWithVocab N/A N/A self N/A N/A N/A Test storing/loading the entire model and vocabulary in word2vec format. N/A model N/A N/A word2vec Word2Vec sentences min_count 1 N/A N/A N/A model init_sims N/A testvocab N/A N/A N/A os path join N/A N/A tempfile gettempdir gensim_word2vec.vocab N/A N/A N/A model save_word2vec_format N/A testfile testvocab binary True N/A binary_model_with_vocab N/A N/A N/A word2vec Word2Vec load_word2vec_format N/A testfile testvocab binary True N/A N/A N/A self assertEqual N/A N/A N/A model vocab N/A human count N/A N/A N/A binary_model_with_vocab vocab N/A human count N/A testLargeMmap N/A N/A self N/A N/A N/A Test storing/loading the entire model. N/A model N/A N/A word2vec Word2Vec sentences min_count 1 N/A N/A N/A model save N/A testfile sep_limit 0 N/A N/A N/A self models_equal model N/A N/A N/A word2vec Word2Vec load N/A testfile N/A N/A N/A self models_equal model N/A N/A N/A word2vec Word2Vec load N/A testfile mmap r N/A testVocab N/A N/A self N/A N/A N/A Test word2vec vocabulary building. N/A corpus N/A LeeCorpus N/A total_words N/A sum N/A N/A len sentence N/A sentence corpus N/A model N/A N/A word2vec Word2Vec min_count 1 N/A N/A N/A model build_vocab corpus N/A N/A N/A self assertTrue N/A N/A len N/A model vocab 6981 N/A N/A N/A self assertEqual N/A sum N/A N/A v count N/A v N/A N/A N/A model vocab values total_words N/A N/A N/A numpy allclose N/A N/A N/A model vocab N/A the code N/A 1 1 0 0 N/A model N/A N/A word2vec Word2Vec N/A N/A N/A model build_vocab corpus N/A N/A N/A self assertTrue N/A N/A len N/A model vocab 1750 N/A N/A N/A numpy allclose N/A N/A N/A model vocab N/A the code N/A 1 1 1 0 N/A N/A N/A self assertRaises RuntimeError N/A word2vec Word2Vec N/A N/A N/A N/A self assertRaises RuntimeError N/A word2vec Word2Vec corpus min_count N/A total_words 1 N/A testTraining N/A N/A self N/A N/A N/A Test word2vec training. N/A model N/A N/A word2vec Word2Vec size 2 min_count 1 N/A N/A N/A model build_vocab sentences N/A N/A N/A self assertTrue N/A N/A N/A model syn0 shape N/A N/A len N/A model vocab 2 N/A N/A N/A self assertTrue N/A N/A N/A model syn1 shape N/A N/A len N/A model vocab 2 N/A N/A N/A model train sentences N/A sims N/A N/A model most_similar graph topn 10 N/A graph_vector N/A N/A model syn0norm N/A N/A N/A N/A model vocab N/A graph index N/A sims2 N/A N/A model most_similar positive N/A graph_vector topn 11 N/A N/A N/A self assertEqual sims N/A sims2 N/A 1 N/A model2 N/A N/A word2vec Word2Vec sentences size 2 min_count 1 N/A N/A N/A self models_equal model model2 N/A testTrainingCbow N/A N/A self N/A N/A N/A Test CBOW word2vec training. N/A model N/A N/A word2vec Word2Vec size 2 min_count 1 sg 0 N/A N/A N/A model build_vocab sentences N/A N/A N/A self assertTrue N/A N/A N/A model syn0 shape N/A N/A len N/A model vocab 2 N/A N/A N/A self assertTrue N/A N/A N/A model syn1 shape N/A N/A len N/A model vocab 2 N/A N/A N/A model train sentences N/A sims N/A N/A model most_similar graph topn 10 N/A graph_vector N/A N/A model syn0norm N/A N/A N/A N/A model vocab N/A graph index N/A sims2 N/A N/A model most_similar positive N/A graph_vector topn 11 N/A N/A N/A self assertEqual sims N/A sims2 N/A 1 N/A model2 N/A N/A word2vec Word2Vec sentences size 2 min_count 1 sg 0 N/A N/A N/A self models_equal model model2 N/A testTrainingSgNegative N/A N/A self N/A N/A N/A Test skip-gram (negative sampling) word2vec training. N/A model N/A N/A word2vec Word2Vec size 2 min_count 1 hs 0 negative 2 N/A N/A N/A model build_vocab sentences N/A N/A N/A self assertTrue N/A N/A N/A model syn0 shape N/A N/A len N/A model vocab 2 N/A N/A N/A self assertTrue N/A N/A N/A model syn1neg shape N/A N/A len N/A model vocab 2 N/A N/A N/A model train sentences N/A sims N/A N/A model most_similar graph topn 10 N/A graph_vector N/A N/A model syn0norm N/A N/A N/A N/A model vocab N/A graph index N/A sims2 N/A N/A model most_similar positive N/A graph_vector topn 11 N/A N/A N/A self assertEqual sims N/A sims2 N/A 1 N/A model2 N/A N/A word2vec Word2Vec sentences size 2 min_count 1 hs 0 negative 2 N/A N/A N/A self models_equal model model2 N/A testTrainingCbowNegative N/A N/A self N/A N/A N/A Test CBOW (negative sampling) word2vec training. N/A model N/A N/A word2vec Word2Vec size 2 min_count 1 sg 0 hs 0 negative 2 N/A N/A N/A model build_vocab sentences N/A N/A N/A self assertTrue N/A N/A N/A model syn0 shape N/A N/A len N/A model vocab 2 N/A N/A N/A self assertTrue N/A N/A N/A model syn1neg shape N/A N/A len N/A model vocab 2 N/A N/A N/A model train sentences N/A sims N/A N/A model most_similar graph topn 10 N/A graph_vector N/A N/A model syn0norm N/A N/A N/A N/A model vocab N/A graph index N/A sims2 N/A N/A model most_similar positive N/A graph_vector topn 11 N/A N/A N/A self assertEqual sims N/A sims2 N/A 1 N/A model2 N/A N/A word2vec Word2Vec sentences size 2 min_count 1 sg 0 hs 0 negative 2 N/A N/A N/A self models_equal model model2 N/A testSimilarities N/A N/A self N/A N/A N/A Test similarity and n_similarity methods. N/A model N/A N/A word2vec Word2Vec size 2 min_count 1 sg 0 hs 0 negative 2 N/A N/A N/A model build_vocab sentences N/A N/A N/A model train sentences N/A N/A N/A self assertTrue N/A N/A model n_similarity N/A graph trees N/A trees graph N/A N/A N/A self assertTrue N/A N/A N/A model n_similarity N/A graph N/A trees N/A N/A model similarity graph trees N/A testParallel N/A N/A self N/A N/A N/A Test word2vec parallel training. N/A N/A N/A word2vec FAST_VERSION 0 N/A N/A N/A corpus N/A N/A utils RepeatCorpus N/A LeeCorpus 10000 N/A workers N/A 2 4 N/A N/A model N/A N/A word2vec Word2Vec corpus workers workers N/A sims N/A N/A model most_similar israeli N/A N/A N/A self assertTrue N/A palestinian N/A N/A N/A sims N/A i N/A 0 N/A i N/A range 3 N/A testRNG N/A N/A self N/A N/A N/A Test word2vec results identical with identical RNG seed. N/A model N/A N/A word2vec Word2Vec sentences min_count 2 seed 42 workers 1 N/A model2 N/A N/A word2vec Word2Vec sentences min_count 2 seed 42 workers 1 N/A N/A N/A self models_equal model model2 N/A models_equal N/A N/A self model model2 N/A N/A N/A N/A N/A self assertEqual N/A len N/A model vocab N/A len N/A model2 vocab N/A N/A N/A self assertTrue N/A N/A numpy allclose N/A model syn0 N/A model2 syn0 N/A N/A model hs N/A N/A N/A N/A self assertTrue N/A N/A numpy allclose N/A model syn1 N/A model2 syn1 N/A N/A model negative N/A N/A N/A N/A self assertTrue N/A N/A numpy allclose N/A model syn1neg N/A model2 syn1neg N/A most_common_word N/A N/A max N/A N/A N/A model vocab items key N/A N/A N/A item N/A N/A N/A item N/A 1 count N/A 0 N/A N/A N/A self assertTrue N/A N/A numpy allclose N/A model N/A most_common_word N/A model2 N/A most_common_word N/A N/A TestWord2VecSentenceIterators N/A N/A unittest TestCase N/A testLineSentenceWorksWithFilename N/A N/A self N/A N/A N/A Does LineSentence work with a filename argument? N/A N/A N/A utils smart_open N/A datapath lee_background.cor orig N/A N/A sentences N/A N/A word2vec LineSentence N/A datapath lee_background.cor N/A words sentences N/A N/A N/A N/A self assertEqual words N/A N/A N/A N/A utils to_unicode N/A N/A orig readline split N/A testLineSentenceWorksWithCompressedFile N/A N/A self N/A N/A N/A Does LineSentence work with a compressed file object argument? N/A N/A N/A utils smart_open N/A datapath head500.noblanks.cor orig N/A N/A sentences N/A N/A word2vec LineSentence N/A N/A bz2 BZ2File N/A datapath head500.noblanks.cor.bz2 N/A words sentences N/A N/A N/A N/A self assertEqual words N/A N/A N/A N/A utils to_unicode N/A N/A orig readline split N/A testLineSentenceWorksWithNormalFile N/A N/A self N/A N/A N/A Does LineSentence work with a file object argument, rather than filename? N/A N/A N/A utils smart_open N/A datapath head500.noblanks.cor orig N/A N/A N/A N/A utils smart_open N/A datapath head500.noblanks.cor fin N/A N/A sentences N/A N/A word2vec LineSentence fin N/A words sentences N/A N/A N/A N/A self assertEqual words N/A N/A N/A N/A utils to_unicode N/A N/A orig readline split N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A logging basicConfig format %(asctime)s : %(levelname)s : %(message)s level N/A logging DEBUG N/A N/A N/A logging info N/A using optimization %s N/A word2vec FAST_VERSION N/A N/A N/A unittest main