The present application relates to the technical field of model training learning, in particular to a training method of an
intent recognition model for understanding user demand in a text-to-
software scenario, comprising the following steps: traversing a path to determine a level and establish a variable dimension
projection mapping, generating a semantic orthogonal conflict sample, obtaining a variable dimension feature by using matrix transformation, quantifying a sibling node overlap degree to impose an orthogonal constraint, updating a weight by minimizing a
positive sample distance and maximizing a conflict
sample distance, and constructing a text-to-
software intent recognition optimization model.In the present application, a mapping mechanism of a level position and a variable dimension projection matrix is established through a
software architecture topology, a semantic orthogonal logical conflict sample is constructed and a sibling node feature
branch orthogonal constraint is introduced, the feature representation of parallel architecture branches is forced to separate in a vector space, the distance between logical conflict samples is maximized and the semantic overlap of similar function nodes is eliminated, and a high-differentiation
decision boundary is constructed to accurately analyze complex nested instructions.