/*
    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.
*/

/// @author Bartosz Broda, bartosz.broda@gmail.com
/// @author Bartosz Broda, bartosz.broda@gmail.com
#ifndef TUPLESPROC_OPTIONS_H_
#define TUPLESPROC_OPTIONS_H_
#include <string>
#include <map>
#include <vector>

namespace tuplesproc
{

	/// tuplesproc configuration is kept in here
	struct options
	{
		/// directory with tuples (dir or file)
		std::string input_path;
		/// path to a file which contains files list to parse
		std::string input_list;
		/// output path (dir)
		std::string output_path;
		/// matrix name
		std::string matrix_name;
		/// matrix description
		std::string matrix_description;
		/// filename to include
		std::string include;
		/// path to a file with set of relations
		std::string relation_path;
		/// vector with relations
		std::vector<std::string> relations;
		/// path to a file with set of rows
		std::string row_path;
		/// path to a file with set of cols
		std::string col_path;
		/// number of tokens in a corpus
		long tokens;
		/// minimum value of term frequency in rows features
		long row_min_tf;
		/// minimum value of term frequency in columns features
		long col_min_tf;

		/// how often to print progress (in lines) during reading of tulpes files
		size_t raport_interval;

		/// filename with TF dictionary (global frequencies in corpus)
		std::string dict_file;
	};

	void parse_options(int ac, char**av, options & opts);
	void load_dict(const std::string &filename, std::map<std::string, size_t> &dict);

}//namespace kbestd

#endif /* OPTIONS_H_ */

