# 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.
task_categories:visual-question-answering task_ids:visual-question-answering language:vi language:en license:unknown TextVQA TextVQA-vi region:us
{"language": ["vi", "en"], "license": "unknown", "task_categories": ["visual-question-answering"], "task_ids": ["visual-question-answering"], "pretty_name": "TextVQA in Vietnamese", "source-datasets": ["TextVQA", "OpenImages"], "tags": ["TextVQA", "TextVQA-vi"]}
TAGS
#task_categories-visual-question-answering #task_ids-visual-question-answering #language-Vietnamese #language-English #license-unknown #TextVQA #TextVQA-vi #region-us 

# TextVQA in Vietnamese

This is Google-translated version of TextVQA 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, 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 then this code to apply translation.
# TextVQA in Vietnamese

This is Google-translated version of TextVQA 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, 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 then this code to apply translation.
TAGS
#task_categories-visual-question-answering #task_ids-visual-question-answering #language-Vietnamese #language-English #license-unknown #TextVQA #TextVQA-vi #region-us 
 # TextVQA in Vietnamese

This is Google-translated version of TextVQA 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, 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 then this code to apply translation.
passage: TAGS
#task_categories-visual-question-answering #task_ids-visual-question-answering #language-Vietnamese #language-English #license-unknown #TextVQA #TextVQA-vi #region-us 
# TextVQA in Vietnamese

This is Google-translated version of TextVQA 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, 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 then this code to apply translation.