Hi! I found that some sentences are basically the same in Portuguese, with only differences in capitalization or punctuation that don’t change how they’re pronounced.
I’ve created a simple Python script, available in this gist, that reads the TSV file, normalizes the sentences and groups them by their normalized version. I found 143 duplicated sentences, appearing 295 times in total. The gist also contains the results for the Portuguese validated.tsv from CV27.
Some of them differ only in capitalization, such as these city names, which are not full sentences at all:
- São José dos Campos (
2ac9674cbdfe135882312fd715a5b3f5fadf3f414c005598a9389a91dac5e8b8) and São José Dos Campos (78c59c69545b52fa0627591cd4fe7007c2176e6f29e04df5e855689f91c690dd) - São José dos Pinhais (
af8f8c3e65a289c45ac11e7be0c709d92e93c3a817b6141937e758605277cc6e) and São José Dos Pinhais (e1305a973a050cd2e9a1da7584f0bc00df822d30045b060afa77f7cc3f1d8e32)
There are also some that differ only by a period at the end, which doesn’t change the pronunciation, such as “Me manda por WhatsApp” (676105b1f37866161e3b69cbac8e46200e47c90325be92c342de6a304f923d2b) and “Me manda por WhatsApp.” (a1d253681c564cb1a448353c94b9a785746cb6bc0078d0bd22d93d41fbb9aedb).
Are there any plans to clean up duplicates like these? Or perhaps to add a validator to prevent duplicate entries from being added to the database in the first place?
