premorphtextreader.i 647 Bytes
#ifndef SWIG_LIBMACA_PREMORPHTEXTREADER_I
#define SWIG_LIBMACA_PREMORPHTEXTREADER_I


%module libmacapremorphtextreader
%{

#include <libmaca/io/premorph.h>

%}

%nodefaultctor;

%include "std_string.i"
%include "libcorpus2/tokenreader.i"

namespace Maca{

	class PremorphTextReader{

	public:
	    static boost::shared_ptr<Corpus2::TokenReader> create_file_reader(const std::string& filename, const std::string& config);
	    static boost::shared_ptr<Corpus2::TokenReader> create_stream_reader(const std::string& config);

	};
}

using namespace std;
using namespace Maca;
using namespace Corpus2;

#endif /* SWIG_LIBMACA_PREMORPHTEXTREADER_I */