The present invention relates to a
machine translation testing method. The method constructs a dependency
syntax tree for a
sentence, prunes the
syntax tree according to specific rules, destroys the validity of the
sentence based on a set of dependency
syntax tree-level deletion operators, deletes words or phrases from the original
sentence to generate a new grammatically and semantically valid sentence, then inputs the original text and the newly generated sentence into the
machine translation system being tested, calculates the bag-of-words distance, sorts and expands the sentences according to the bag-of-words distance, selects the five sentences with the largest distance, manually labels the original sentence and the translated sentence results, marks the erroneous sentences, and completes the test of the
machine translation system. The purpose of the present invention is to solve the problem that current
machine translation testing mainly generates test cases by replacing some words in the sentence, and the
test performance is mainly limited by the maturity of the
language model used. While amplifying the data, the invariance of the basic structure of the sentence is guaranteed, thereby discovering more errors, many of which could not be discovered by previous
machine translation testing technologies.