Fix leading axis added when saving through the command run

This commit is contained in:
Morgan Funtowicz 2019-12-20 14:47:04 +01:00
parent c37815f130
commit 7f74084528

View File

@ -50,9 +50,9 @@ class RunCommand(BaseTransformersCLICommand):
nlp, output = self._nlp, []
for entry in self._reader:
if self._reader.is_multi_columns:
output += [nlp(**entry)]
output += nlp(**entry)
else:
output += [nlp(entry)]
output += nlp(entry)
# Saving data
if self._nlp.binary_output: