latvian-text / README.md
Raivis Dejus
Adding more cleanup
bbc85d4
|
raw
history blame
2.16 kB
metadata
annotations_creators:
  - found
language:
  - lv
language_creators:
  - found
license:
  - cc-by-4.0
multilinguality:
  - monolingual
pretty_name: Latvian text dataset
size_categories:
  - 10K<n<100K
source_datasets:
  - extended|tilde_model
  - extended|wikipedia
  - extended|europarl_bilingual
tags:
  - lv
  - latvian
task_categories:
  - automatic-speech-recognition
task_ids: []

Latvian text dataset

Data set of latvian language texts. Intended for use in AI tool development, like speech recognition or spellcheckers

Data sources used

To get Wikipedia dataset (197MB) run.

python tools/wikipedia/GetWikipedia.py

To get Europarl dataset (1.7GB) run.

python tools/europarl/GetEuroparl.py

To get Tilde dataset (834MB) run.

python tools/europarl/GetTilde.py

To combine all datasets run

sh combine-all.sh

To clean out some junk run.

sh clean.sh

Also maybe you want to remove duplocate lines. To do so run

sort lv.txt | uniq > lv-uniq.txt

Notes

Possible future sources

Data sets not used

  • Web scrapes, as they tend to yield data from comments with improper spelling like "atrashanaas vieta" instead of "atrašanās vieta"
  • Open Subtitles, as they contain data with improper spelling like "atrashanaas vieta" instead of "atrašanās vieta"

Possible issues:

  • Data sets contain foreign language characters, like "蠻子" or cyrilic f.e. "Рига"