code-docstring-corpus icon indicating copy to clipboard operation
code-docstring-corpus copied to clipboard

tokenization of the data

Open bhagat02 opened this issue 7 years ago • 1 comments

Hi,

When i am running this command for this particular file only. The error is arising as you can see below.Can you please tell. me why is this so only for this particular file.

file name : data.ps_decldesc.train

all the files got tokenized very easily,but this file was not able to do so .why?

error: gauravs-MBP:~ g$ ~/Downloads/mosesdecoder/scripts/tokenizer/tokenizer.perl -l en <~/code-docstring-corpus/parallel-corpus/data_ps.decldesc.train >~/code-docstring-corpus/parallel-corpus/data_ps.decldesc.train1 Tokenizer Version 1.1 Language: en Number of threads: 1 utf8 "\xFF" does not map to Unicode at /Users/gaurav/Downloads/mosesdecoder/scripts/tokenizer/tokenizer.perl line 180, <STDIN> line 1133. Malformed UTF-8 character: \xff\xff\xff\xff\x5c\x27\x29\x20\x44\x43\x4e\x4c\x20 (overflows) in substitution (s///) at /Users/gaurav/Downloads/mosesdecoder/scripts/tokenizer/tokenizer.perl line 240, <STDIN> line 1133. Malformed UTF-8 character: \xff\xff\xff\xff\x5c\x27\x29\x20\x44\x43\x4e\x4c\x20 (unexpected non-continuation byte 0xff, immediately after start byte 0xff; need 13 bytes, got 1) in substitution (s///) at /Users/gaurav/Downloads/mosesdecoder/scripts/tokenizer/tokenizer.perl line 240, <STDIN> line 1133. Malformed UTF-8 character (fatal) at /Users/gaurav/Downloads/mosesdecoder/scripts/tokenizer/tokenizer.perl line 240, <STDIN> line 1133.

Thank you so much.

bhagat02 avatar Apr 02 '18 11:04 bhagat02

I have the same issue, did you ever manage to fix this?

kurtabela avatar Jan 31 '22 11:01 kurtabela