Skip to content
Snippets Groups Projects
Commit 78507da5 authored by Paweł Kędzia's avatar Paweł Kędzia
Browse files

Exception when one of the relation or annotation path is not given in DocumentReader.

parent 8e84f522
No related merge requests found
......@@ -35,8 +35,7 @@ boost::shared_ptr<Corpus> DocumentCorpusReader::read(const std::string& corpus_f
continue;
}
else if (splitted_line.size() == 1) {
// maybe exception?
continue;
throw Corpus2Error("DocumentReader requires both paths to relations and annotations");
}
ann_path = splitted_line[0];
......
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