Cleanups and typo fixes in MLPPData.

This commit is contained in:
Relintai 2023-12-28 18:00:26 +01:00
parent f090828e1c
commit ece344400c
1 changed files with 1 additions and 7 deletions

View File

@ -894,7 +894,7 @@ Ref<MLPPMatrix> MLPPData::bag_of_words(Vector<String> sentences, BagOfWordsType
Ref<MLPPMatrix> bow; Ref<MLPPMatrix> bow;
bow.instance(); bow.instance();
bow->resize(Size2i(word_list.size(), sentences.size())); bow->resize(Size2i(word_list.size(), segmented_sentences.size()));
bow->fill(0); bow->fill(0);
for (int i = 0; i < segmented_sentences.size(); i++) { for (int i = 0; i < segmented_sentences.size(); i++) {
@ -1088,12 +1088,6 @@ Ref<MLPPMatrix> MLPPData::lsa(Vector<String> sentences, int dim) {
return embeddings; return embeddings;
} }
struct SVDResult {
Ref<MLPPMatrix> U;
Ref<MLPPMatrix> S;
Ref<MLPPMatrix> Vt;
};
Vector<String> MLPPData::create_word_list(Vector<String> sentences) { Vector<String> MLPPData::create_word_list(Vector<String> sentences) {
String combined_text = ""; String combined_text = "";