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

When sentence file not loaded, sentence has one empty token

parent d07a58cf
Branches
No related merge requests found
......@@ -210,6 +210,7 @@ int main(int argc, char** argv)
boost::shared_ptr<Corpus2::Sentence> sentence;
if (sentence_load.empty()) {
sentence.reset(new Corpus2::Sentence);
sentence->append(new Corpus2::Token("", PwrNlp::Whitespace::ManySpaces));
} else {
std::ifstream ifs(sentence_load.c_str());
if (ifs.good()) {
......
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