The invention discloses a code positioning method based on
programming language migration, relates to
computer software, and aims to refine functions into typical processes to construct a function
library and a total keyword table, generate function tags through
simulation transformation and design a subject term self-checking crawler
system. A large number of accurate primary and secondary
language code segments are obtained based on a subject relevancy discrimination method and a Hash matching method to construct a primary and secondary code
library, an adversarial generator is pre-trained based on an adversarial training strategy to achieve alignment of primary and secondary language features, and a
large model encoder is finely adjusted by adopting comparative learning in combination with the primary code
library to maximize separability of code representation. A pre-training Softmax regression classifier is assisted to realize function
label endowing of a
code segment, a to-be-positioned word and a to-be-positioned code are acquired, the to-be-positioned code is split, the to-be-positioned word is identified based on a dual-channel query strategy to select a positive example, and the positive example and the
code segment are input into a pre-training and fine-tuning network to realize code positioning of a specified function or a specified typical process.