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
Branches python3.8
No related tags found
No related merge requests found
...@@ -35,8 +35,7 @@ boost::shared_ptr<Corpus> DocumentCorpusReader::read(const std::string& corpus_f ...@@ -35,8 +35,7 @@ boost::shared_ptr<Corpus> DocumentCorpusReader::read(const std::string& corpus_f
continue; continue;
} }
else if (splitted_line.size() == 1) { else if (splitted_line.size() == 1) {
// maybe exception? throw Corpus2Error("DocumentReader requires both paths to relations and annotations");
continue;
} }
ann_path = splitted_line[0]; ann_path = splitted_line[0];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment