UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 187: character maps to <undefined>

11 views
Skip to first unread message

Shantanu Nath

unread,
May 3, 2020, 1:13:19 PM5/3/20
to Nematus Support
Dear SIr,
According to your previous solution i converted all files UTF-8 and it works.
But when i put the following command
```
python nematus/translate.py --models model-10000 --input small_test_data/testEn.txt --output output.txt

```
it raised the following problem:

Capture.JPG


Best regards,
Shantanu Nath

Rico Sennrich

unread,
May 7, 2020, 4:28:04 AM5/7/20
to nematus...@googlegroups.com
Hello Shantanu,

From the Traceback, it looks like your environment (powershell) is using the encoding cp1252, but Nematus expects UTF-8. You can fix this by changing the encoding in your powershell to UTF-8, or upgrading to powershell 6, which uses UTF-8 by default.

best wishes,
Rico
--
You received this message because you are subscribed to the Google Groups "Nematus Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nematus-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nematus-support/766727f0-9d04-4b56-b1c9-61379baef2bb%40googlegroups.com.


Reply all
Reply to author
Forward
0 new messages