Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 937 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 937 Bytes

Data format

To export translations from Google Translate, the translations should be saved (click the star icon to save the translation). Then, go to saved translations and click the "Export to Google Sheets" button. Add necessary column names, and then export the spreadsheet as a CSV file.

Input file should be a csv file with the following columns:

  • from_lang # source language
  • to_lang # target language
  • text # the text in the source language
  • translation # the translation of the text in the target language

Example:

Finnish,English,Hei,Hi
Finnish,English,lisää,more

Output file will be an excel file with the following columns:

  • text # the text in the source language
  • translation # the translation of the text in the target language

Running example:

```
python main.py -f data_examples/google_translate_export.csv -o data_examples/converted_anki_translations.xlsx
```