Skip to content
Snippets Groups Projects
Commit 8ef00260 authored by ilor's avatar ilor
Browse files

extract a function in wcclrun

parent ece779e3
No related merge requests found
......@@ -58,6 +58,8 @@ public:
void do_sentence(const boost::shared_ptr<Corpus2::Sentence>& sentence);
void do_stream(std::istream& is, bool first);
void output_tabular(const std::vector< std::vector< UnicodeString > > outputs);
private:
const Corpus2::Tagset& tagset_;
Wccl::Parser parser_;
......@@ -184,7 +186,11 @@ void Runner::do_sentence(const boost::shared_ptr<Corpus2::Sentence>& sentence)
}
}
}
output_tabular(outputs);
}
void Runner::output_tabular(const std::vector<std::vector<UnicodeString> > outputs)
{
std::vector<int> lengths(outputs[0].size());
foreach (const std::vector< UnicodeString >& line, outputs) {
for (size_t i = 0; i < line.size(); ++i) {
......
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