In order to correctly measure the poem reference text being included in excerpts, we need to realign passim text with the original reference texts.
Use existing method correct_page_excerpt, which is currently used on ppa page text in the get_passim_results script.
The challenge is that alignment means we need this needs access to the poetry reference corpus text. This script should already have access to the reference corpus data, but finding the right segment of relevant text may be a bit more effort than the equivalent logic for getting the relevant PPA page.
In order to correctly measure the poem reference text being included in excerpts, we need to realign passim text with the original reference texts.
Use existing method
correct_page_excerpt, which is currently used on ppa page text in theget_passim_resultsscript.The challenge is that alignment means we need this needs access to the poetry reference corpus text. This script should already have access to the reference corpus data, but finding the right segment of relevant text may be a bit more effort than the equivalent logic for getting the relevant PPA page.