diff --git a/mlpp/data/data.cpp b/mlpp/data/data.cpp index 4084dd5..1705f5c 100644 --- a/mlpp/data/data.cpp +++ b/mlpp/data/data.cpp @@ -894,7 +894,7 @@ Ref MLPPData::bag_of_words(Vector sentences, BagOfWordsType Ref bow; bow.instance(); - bow->resize(Size2i(word_list.size(), sentences.size())); + bow->resize(Size2i(word_list.size(), segmented_sentences.size())); bow->fill(0); for (int i = 0; i < segmented_sentences.size(); i++) { @@ -1088,12 +1088,6 @@ Ref MLPPData::lsa(Vector sentences, int dim) { return embeddings; } -struct SVDResult { - Ref U; - Ref S; - Ref Vt; -}; - Vector MLPPData::create_word_list(Vector sentences) { String combined_text = "";