nlpyang / PreSumm

code for EMNLP 2019 paper Text Summarization with Pretrained Encoders
MIT License
1.29k stars 465 forks source link

step 4 converting to simpler json returning asci error #230

Open ntnshrav opened 2 years ago

ntnshrav commented 2 years ago

I encountered this issue where i got ascii error while trying step 4 (converting to simpler json).

The solution is to add open(p, encoding='utf-8') at line 38 in data_builder.py