The invention discloses a multi-field
machine translation method based on a large
language model, and relates to
natural language processing. The method comprises the following steps: constructing a multi-field monolingual
data set, and dynamically generating a field term dictionary in combination with an expert term dictionary and a large
language model self-reflection mechanism; on the basis of
sentence length, syntactic complexity of SpaCy calculation and domain vocabulary proportion, screening single statements with different complexities, and prompting and guiding
model learning by taking a term dictionary as a feature; a mixed course learning strategy is adopted, the difficulty degree of a
data set is divided, monolingual continuous writing pre-
adaptation and bilingual alignment
fine tuning are alternately executed, and the multi-field
adaptation capability of the model is improved in combination with progressive, multi-field mixed and monolingual and bilingual mixed training. According to the method, the BLEU and
COMET indexes are improved by 10%-18%, the
training time is shortened by 6-12 h compared with sequential
fine tuning, small parameter quantity models such as Llama2-7B and the like are supported, and the method is suitable for multi-field
machine translation scenes.