tensor2tensor icon indicating copy to clipboard operation
tensor2tensor copied to clipboard

*help* UnicodeDecodeError when using the Tokenizer data generator

Open Danysolism opened this issue 8 years ago • 3 comments

Description

Hi , I'm generating my own problem and I'm using the tokenizer.encode from the Tokenizer data generator but I'm having problems when using t2t-decoder. I get an error: UnicodeDecodeError: 'utf8' codec can't decode byte 0xa3 in position 0: invalid start byte. I thought it might be related to issue #74 but I have the latest version of Tensor2Tensor. I could not find any solution yet. Is there something else I need to take into account when using the tokenizer.encode to avoid this? Thank you, Daniela

Danysolism avatar Jun 07 '18 09:06 Danysolism

Please provide Python, T2T, and Tensorflow versions you're using.

rsepassi avatar Jun 15 '18 19:06 rsepassi

Python Version 2.7.14 T2T Version: 1.6.3 Tensorflow Version: 1.7.0

Danysolism avatar Jun 19 '18 09:06 Danysolism

I also tried it with Python Version 2.7.13 T2T Version: 1.6.0 and 1.6.1 Tensorflow Version: 1.7.0 and I get the same error.

Danysolism avatar Jul 25 '18 15:07 Danysolism