Skip to content
Snippets Groups Projects
Commit a2a0af1c authored by Franck Dary's avatar Franck Dary
Browse files

Allow blank line to be commented in tsv

parent 1795a1b3
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment