|
WordFreq
|
Parser class that tokenizes words and removes special characters. More...
#include <parser.h>

Public Member Functions | |
| Parser (const std::string &path, std::map< std::string, size_t > *globalFreqencyMap=nullptr) | |
| Initializes a Parser with an input and export file. More... | |
| bool | parse () |
| A function that creates a file stream from a path and parses it for word frequency. More... | |
| void | exportToFile () |
| A function that exports the per parser frequency map. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const Parser &aDis) |
Parser class that tokenizes words and removes special characters.
This class tokenizes words, counts word frequency and stores them alphabetically in an in-memory data store.
| Parser::Parser | ( | const std::string & | path, |
| std::map< std::string, size_t > * | globalFreqencyMap = nullptr |
||
| ) |
Initializes a Parser with an input and export file.
| void Parser::exportToFile | ( | ) |
A function that exports the per parser frequency map.
| bool Parser::parse | ( | ) |
A function that creates a file stream from a path and parses it for word frequency.
|
friend |