DeNederlandscheBank / nqm

A Transformer-based Machine for answering questions on insurance companies
MIT License
0 stars 0 forks source link

fairseq (0.10.2) replace-unk broken because of wrong data format #35

Closed jm-glowienke closed 3 years ago

jm-glowienke commented 3 years ago

Alignments are given as tuple, which causes the following piece of code to break in fairseq/utils.py:

src_token = src_tokens[alignment[i]]

Cannot use tuple to look up element of list.

TODO: