Web Demo¶
The review app lets you browse the edit script that retexo predicts for each of the 1,490 references of the Loci Similes benchmark.
- The pair list has search, filters (reference type, source and reuse author and work, pairs with a predicted substitution or inflection) and sorting, including the least confident predictions first.
- The pair shows the mapping from source to reuse words as arrows, horizontal or vertical, coloured by label and thicker the more confident the prediction; the Latin texts with their English translations; and a table of the predicted links with their relation and probability.
The selected pair is in the URL, so a link opens the same pair.
How it is built¶
The app is a static page, built with React, Vite and Tailwind CSS from the webapp/ folder, and published with this
documentation by GitHub Actions on every push to main.
webapp/scripts/download_data.pydownloads the predicted edit scripts and the Loci Similes labels from the Hugging Face Hub.webapp/scripts/prepare_data.pyjoins them on the reference's id intorecords.jsonl.npm run buildbundles the page, and the workflow places it under/demo/next to the documentation.
The page therefore always shows the published predictions.