The invention discloses a multi-context semantic recognition and understanding method based on a large
language model. The method comprises the following steps: S1, generating a semantic unit sequence; s2, constructing a context nested vector sequence; s3, constructing context priori representation, and generating a
semantic representation sequence; s4, outputting a
state vector of the semantic path by adopting a gating loop unit, obtaining a matching degree
score according to a
feedforward neural network, and determining a deliberate map tag and an alternative intention tag; s5, slot field extraction and semantic filling are completed, and a structured semantic task unit is generated; and S6, completing semantic recognition and service response
closed loop. According to the method, by introducing a prefix regulation and control mechanism and a multi-context semantic modeling structure, the accuracy of intention recognition in multiple rounds of dialogues and the consistency of the context generated in response are remarkably improved, and the method is suitable for
natural language understanding scenes of multi-language intelligent customer service, cross-context man-
machine interaction and complex task driving.