Newer
Older
#include <string>
#include <functional>
#include <queue>
#include <iostream>
#include <fstream>
#include "../shared/Document.h"
#include "../shared/ProducerConsumerQueue.h"
/**
* This class uses the Doc object from the Crawler to parse the text
* Returns a pointer to a dictionary that contains the tokenized input
*/
Parser ( ProducerConsumerQueue < string > * urlFrontierIn)
// TODO need to change vector type to word data, change where struct is declared
const unordered_map< string, vector< int>> * execute ( Document* document)
void parse ( string html, Tokenizer *tokenizer );
/**
* Returns a url, or "" if none
* @param word
* @return
string extract_title ( string & word );