cerebras.modelzoo.data.nlp.bert.bert_utils.convert_to_unicode#

cerebras.modelzoo.data.nlp.bert.bert_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.