tensorflow / nmt

TensorFlow Neural Machine Translation Tutorial
Apache License 2.0
6.39k stars 1.96k forks source link

Print error #175

Open osm3 opened 6 years ago

osm3 commented 6 years ago

Hi! When i start train, program aborted with error : File "C:\Osm\Python\seq2seq\nmt\nmt\nmt\nmt.py", line 529, in main run_main(FLAGS, default_hparams, train_fn, inference_fn) File "C:\Osm\Python\seq2seq\nmt\nmt\nmt\nmt.py", line 522, in run_main train_fn(hparams, target_session=target_session) File "C:\Osm\Python\seq2seq\nmt\nmt\nmt\train.py", line 215, in train sample_tgt_data) File "C:\Osm\Python\seq2seq\nmt\nmt\nmt\train.py", line 137, in run_full_eval sample_src_data, sample_tgt_data) File "C:\Osm\Python\seq2seq\nmt\nmt\nmt\train.py", line 51, in run_sample_decode infer_model.batch_size_placeholder, summary_writer) File "C:\Osm\Python\seq2seq\nmt\nmt\nmt\train.py", line 419, in _sample_decode utils.print_out(" src: %s" % src_data[decode_id]) File "C:\Osm\Python\seq2seq\nmt\nmt\nmt\utils\misc_utils.py", line 68, in print_out print(out_s, end="", file=sys.stdout) File "C:\Documents and Settings\osm\AppData\Local\Continuum\Anaconda3\lib\encodings\cp866.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_map)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u1ed3' in position 10: character maps to