Skip to content
Snippets Groups Projects
Commit a632c1c9 authored by Adam Radziszewski's avatar Adam Radziszewski
Browse files

stdin reader SWIG convenience

parent 84992ad4
Branches
No related merge requests found
......@@ -84,6 +84,12 @@ namespace Corpus2 {
boost::shared_ptr<Corpus2::Token> get_next_token() {
return boost::shared_ptr<Corpus2::Token>(self->get_next_token());
}
%feature("autodoc", "1");
static TokenReaderPtr create_stdin_reader(
const std::string& class_id_params, const Tagset& tagset) {
return Corpus2::TokenReader::create_stream_reader(class_id_params, tagset, std::cin);
}
}
%feature("autodoc", "1");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment