From ece344400c1b3bfd185fc7d7bf45d358a9d432be Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 28 Dec 2023 18:00:26 +0100 Subject: [PATCH] Cleanups and typo fixes in MLPPData. --- mlpp/data/data.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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 = "";