task_categories:visual-question-answering task_ids:visual-question-answering language:vi language:en license:unknown TextVQA TextVQA-vi region:us
---
language:
  - vi
  - en
pretty_name: TextVQA in Vietnamese
source-datasets:
  - TextVQA
  - OpenImages
tags:
  - TextVQA
  - TextVQA-vi
license: unknown
task_categories:
  - visual-question-answering
task_ids:
  - visual-question-answering
---
# TextVQA in Vietnamese

This is Google-translated version of [TextVQA](https://textvqa.org/) in Vietnamese. The process of building Vietnamese version as follows:
- In en/ folder,
  - Download `TextVQA_0.5.1_train.json`, `TextVQA_0.5.1_val.json`.
  - By using [set data structure](https://docs.python.org/3/tutorial/datastructures.html#sets), generate txt files of unique text: train_answer_list.txt, train_question_list.txt, val_answer_list.txt, val_question_list.txt.
- In vi/ folder
  - By translating 4 en/.txt files, generate train_answer_list.jsonl, train_question_list.jsonl, val_answer_list.jsonl, val_question_list.jsonl. In each of entry of each file, the key is the original english text, the value is the translated text in vietnamese.

To load Vietnamese version in your code, you need original English version. Then just use English text as key to retrieve Vietnamese value from jsonl files. I provide both English and Vietnamese version.

Please refer [this code](https://github.com/dinhanhx/velvet/blob/main/scripts/cherry_pick_textvqa.py) then [this code](https://github.com/dinhanhx/velvet/blob/main/scripts/apply_translate_textvqa.py) to apply translation.