Raldir / FEVEROUS

Repository for Fact Extraction and VERification Over Unstructured and Structured information (FEVEROUS), accepted to NeurIPS 2021 Dataset and Benchmarks and used for the FEVER Workshop Shared Task at EMNLP2021.
Apache License 2.0
67 stars 20 forks source link

Seeking help regarding extracting evidence content text #27

Closed sayef closed 11 months ago

sayef commented 1 year ago

Hi,

thank you for this awesome repo and dataset.

I was trying to find an example code for retrieving evidence contexts (element ids) to their corresponding texts from wiki db. Can anyone provide me with a concrete example to convert a context to text?

Best regards sayef

Raldir commented 1 year ago

Hello,

Sorry for the delayed reply. You can call this function from a wiki_page object, using as the argument the element id: https://github.com/Raldir/FEVEROUS/blob/113a2082ebabb56abf6b008aad5286428506f1c4/src/feverous/utils/wiki_page.py#L181

Hope this answers your question, let me know if there is anything else!