google-research / uda

Unsupervised Data Augmentation (UDA)
https://arxiv.org/abs/1904.12848
Apache License 2.0
2.18k stars 312 forks source link

split_paragraphs.py - Decode content only if it is bytes #31

Closed chiragjn closed 5 years ago

chiragjn commented 5 years ago

When running back_translate/run.sh with Python 3 interpreter translation fails because decode is called on 'str' types. Avoid decoding if the content is already decoded