mozilla / translations

The code, training pipeline, and models that power Firefox Translations
https://mozilla.github.io/translations/
Mozilla Public License 2.0
154 stars 33 forks source link

Consider harvesting short sentences from parallel data #879

Open gregtatum opened 2 weeks ago

gregtatum commented 2 weeks ago

It's not guaranteed that parallel "sentences" are actually sentences. We could write a script to detect how many sentences are in each parallel datum, and then attempt to extract them into a new dataset. We could use word alignments to ensure that the left and right sides of the sentence agree on being part of the same sentence.

Perhaps this won't work, because there aren't many multiple sentences in the datasets, but it seems worth looking into.