modelzoo.transformers.pytorch.bert.input.utils.convert_to_unicode#

modelzoo.transformers.pytorch.bert.input.utils.convert_to_unicode(text)[source]#

Converts text to unicode, assuming utf-8 input. Returns text encoded in a way suitable for print or tf.compat.v1.logging.