Recent content by satrabeff

  1. S

    TF-IDF

    You must replace the line : std::unordered_map<std::string, int> words; by this line std::unordered_map<std::string, double> words; otherwise tf = 0 and tfnorm too. Here is the correct code: #include <iostream> #include <map> #include <string> #include <sstream> #include <fstream> #include...
Top