/*
    Copyright (C) 2012 Bartosz Broda, Jacek Bochenek, Łukasz Biłeńkij, 
    Damian Jaworski, Wojciech Mazur, Dominik Piasecki, Maciej Piasecki, 
    Radosław Ramocki
    
    This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your option)
any later version.

    This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. 

    See the LICENSE and COPYING files for more details.
*/

#ifndef QUESTION_BUILDER_H
#define QUESTION_BUILDER_H
#include "config.h"
#include <map>
#include <string>
#include <libcorpus2/sentence.h>

namespace questionbuilder{

class QuestionBuilder
{
public:
	QuestionBuilder(const config &cfg);

	void run();

private:

	std::string human_readable(double input, size_t level = 0);
	/** Generates a vector of strings of the form INDOC;pos:lemma for each
		sentence token. */
	std::vector<std::string> index_sentence_words(
			Corpus2::Sentence::Ptr pSentence,
			const Corpus2::Tagset& tagset);
	/** Generates a vector of strings of the form INDOC;chunk_type:lemma_string
		for each sentence chunk from the set of chunk types given in config. */
	std::vector<std::string> index_sentence_chunks(
			Corpus2::Sentence::Ptr pSentence,
			const Corpus2::Tagset& tagset);

	const config& config_;
	std::map<std::string, size_t> data_;



};

}//namespace doctermbuilder
#endif //QUESTION_BUILDER_H
