susanli2016 / NLP-with-Python

Scikit-Learn, NLTK, Spacy, Gensim, Textblob and more
2.72k stars 2.01k forks source link

About doc2bow #13

Closed psammy007 closed 4 years ago

psammy007 commented 4 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