added docs

main
Isabella Inuso 4 months ago
parent e4fcdad811
commit 38374dbed6

@ -13,7 +13,7 @@ int main(int argc,char const *argv[]) {
vector<string> Files;
// configurazione opzioni
//options parsing
for (int i = 1; i < argc; i++) {
string arg(argv[i]);
@ -44,10 +44,10 @@ int main(int argc,char const *argv[]) {
stringstream buffer;
buffer << s.rdbuf();
//parsing del file
//file parsing
vector<phrase> phrases = parseFile(buffer.str());
//popolazione del grafo
//graph population
populateGraph(&graph, phrases);
}

@ -49,7 +49,7 @@ vector<phrase> parseFile (string text) {
unordered_set<string> stop_words = getStopWords();
// prendo un vettore, raggruppo caratteri tra spazi in stringhe fino a punteggiatura, raggruppo queste stringhe in periodi che inserisco in un nuovo vettore
// takes a vector, groups characters between spaces in strings until it finds punctuation, groups these strings in phrases, which it inserts in a new vector
vector<phrase> phrases;
phrase phrase;
string word;

Loading…
Cancel
Save