Commit a2a0af1c authored by Franck Dary's avatar Franck Dary
Browse files

Allow blank line to be commented in tsv

parent 1795a1b3
......@@ -394,7 +394,7 @@ std::vector<std::vector<std::string>> util::readTSV(std::string_view tsvFilename
if (line.back() == '\n')
line.pop_back();
if (line.size() < 3)
if (line.size() == 0)
{
if (!inputHasBeenRead)
continue;
......@@ -420,8 +420,7 @@ std::vector<std::vector<std::string>> util::readTSV(std::string_view tsvFilename
if (not mcdLine.empty())
for (auto & sentence : sentences)
sentence.insert(sentence.begin(), mcdLine);
return sentences;
}
Markdown is supported
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