The code for EMNLP 2023 paper "In-Image Neural Machine Translation with Segmented Pixel Sequence-to-Sequence Model".
https://aclanthology.org/2023.findings-emnlp.1004/
An example of our end-to-end IIMT model, include training and evaluating. If you want to replicate our work, please refer to it.
Code for building IIMT datasets (Section 3 in our paper).
An example of dataset constructed by newstest-2014.
Code for converting image to pixel sequence (Section 4.2 in our paper).
Code for converting pixel sequence to image (Section 4.3 in our paper).
Bash scripts for training and decoding with fairseq (https://github.com/pytorch/fairseq).