Skip to content

Commit

Permalink
fix lists of sentences being merged without a space
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik committed Feb 24, 2019
1 parent 7d1efbf commit 2b96cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jiwer/wer.py
Expand Up @@ -105,7 +105,7 @@ def _preprocess(text: Union[str, List[str], List[List[str]]],
elif len(text) == 1:
return _preprocess(text[0])
elif all(isinstance(e, str) for e in text):
return _preprocess_text("".join(text), standardize=standardize,
return _preprocess_text(" ".join(text), standardize=standardize,
words_to_remove=words_to_remove)
elif all(isinstance(e, list) for e in text):
for e in text:
Expand Down

0 comments on commit 2b96cc5

Please sign in to comment.