JonnyFLDN / Federal-Reserve-Minutes-Topic-and-Sentiment-Modelling

18 stars 6 forks source link

When the text is small size(comparing), function will return 2 columns,without the score. #8

Open shuxinjin opened 1 year ago

shuxinjin commented 1 year ago

as title , When the input text is small size(comparing), corpus_stats(corpus) would return one dataframe of 2 columns. It will cause failure in the next step, when call the "pd.DataFrame( latest_stats, columns = ['category_id','file_id']+list(topic_dict.values()))"