zhaohengyang / Generate-Parallel-Data-for-Sentence-Compression

Implement Overcoming the Lack of Parallel Data in Sentence Compression Katja Filippova and Yasemin Altun Google
14 stars 3 forks source link

Something wrong? #2

Open YoonaX opened 5 years ago

YoonaX commented 5 years ago

Hi,There is a bug in your code? File "./python\parallel_data_gen.py", line 602, in heads = [index + item[0] for index, item in enumerate(doc.to_array([HEAD]))] IndexError: invalid index to scalar variable. Could you tell me how to solve?Thanks