facebookresearch / GENRE

Autoregressive Entity Retrieval
Other
761 stars 101 forks source link

get_entity_spans and trailing spaces #45

Closed Shimorina closed 2 years ago

Shimorina commented 3 years ago

Hello,

thank you very much for the tool!

I noticed that .get_entity_spans sometimes fails (on the contrary, .sample works well). It has something to do with trailing spaces.

I use the fairseq version as described in the readme.

nicola-decao commented 2 years ago

get_entity_spans was not used for the experiments in the paper. I wrote that function to show how to use .sample. I did use trailing spaces for the end-to-end experiments as well as for training.