Open Dan-wanna-M opened 2 months ago
example output: ' {\n"street": "Maple Avenue",\n"city": "Boston",\n"state": "Massachusetts",\n"country": "USA",\n"postal_code": "02139"\n} \n\n \r\n\n \r<|end_of_text|><|end_of_text|><|end_of_text|><|end_of_text|><|end_of_text|>'
' {\n"street": "Maple Avenue",\n"city": "Boston",\n"state": "Massachusetts",\n"country": "USA",\n"postal_code": "02139"\n} \n\n \r\n\n \r<|end_of_text|><|end_of_text|><|end_of_text|><|end_of_text|><|end_of_text|>'
To replicate, set decode_special_tokens=True in the generator.generate() method for some json schemas.
decode_special_tokens=True
generator.generate()
Can you submit a full notebook that reproduces the issue?
example output:
' {\n"street": "Maple Avenue",\n"city": "Boston",\n"state": "Massachusetts",\n"country": "USA",\n"postal_code": "02139"\n} \n\n \r\n\n \r<|end_of_text|><|end_of_text|><|end_of_text|><|end_of_text|><|end_of_text|>'
To replicate, set
decode_special_tokens=True
in thegenerator.generate()
method for some json schemas.