Skip to content
Snippets Groups Projects
Commit 0a60eaec authored by Bartosz Broda's avatar Bartosz Broda
Browse files

fix of critical bug: not handling of end of corpus in mwereader

parent 653af81d
No related merge requests found
......@@ -30,6 +30,8 @@ bool MWEReader::registered = TokenReader::register_path_reader<MWEReader>(
{
// TODO MWE stuff
Sentence::Ptr pSentence = inner_reader_->get_next_sentence();
if(pSentence == NULL)
return Sentence::Ptr();
Wccl::SentenceContext sc(pSentence);
return process_sentence(sc);
......
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