A method for generating training data for machine translation, which is for generating training data for training a learnable model for machine translation processing in a machine translation processing system for machine translation processing of language data including markup language tags, the method comprising:
- a start/end correspondence code detection step of detecting a start/end correspondence code, whose correspondence between a start indication code and an end indication code has been established, in parallel translation data in which first language data is paired with second language data obtained by translating the first language data into second language data, the parallel translation data not including the markup language tags;
- and
- a replacement processing step of performing replacement processing in which the start/end correspondence code is replaced with an alternative code for the parallel translation data to obtain parallel translation data after the replacement processing.