mirror of
https://github.com/Relintai/pmlpp.git
synced 2024-11-08 13:12:09 +01:00
Cleanups and typo fixes in MLPPData.
This commit is contained in:
parent
f090828e1c
commit
ece344400c
@ -894,7 +894,7 @@ Ref<MLPPMatrix> MLPPData::bag_of_words(Vector<String> sentences, BagOfWordsType
|
||||
|
||||
Ref<MLPPMatrix> 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<MLPPMatrix> MLPPData::lsa(Vector<String> sentences, int dim) {
|
||||
return embeddings;
|
||||
}
|
||||
|
||||
struct SVDResult {
|
||||
Ref<MLPPMatrix> U;
|
||||
Ref<MLPPMatrix> S;
|
||||
Ref<MLPPMatrix> Vt;
|
||||
};
|
||||
|
||||
Vector<String> MLPPData::create_word_list(Vector<String> sentences) {
|
||||
String combined_text = "";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user