def testLineSentenceWorksWithFilename(self):
        with utils.smart_open(datapath('lee_background.cor')) as orig:
            sentences = word2vec.LineSentence(datapath('lee_background.cor'))
            for words in sentences:
                self.assertEqual(words, utils.to_unicode(orig.readline()).split())
Does LineSentence work with a filename argument?
dataset/ETHPy150Open largelymfs/topical_word_embeddings/TWE-1/gensim/test/test_word2vec.py/TestWord2VecSentenceIterators.testLineSentenceWorksWithFilename