susanli2016 / NLP-with-Python

Scikit-Learn, NLTK, Spacy, Gensim, Textblob and more
2.74k stars 2.02k forks source link

About doc2bow #13

Closed psammy007 closed 5 years ago

psammy007 commented 5 years ago

bow_corpus = [dictionary.doc2bow(doc) for doc in processed_doc] This lines sometimes works and sometime not. like Sometimes i get result but sometimes it returns empty bow_corpus is empty