Embodiments of the present application relate to a slot value extraction method and device based on slot meaning of a
large model, related information of an mth slot at a
current time is obtained; the related information is spliced from a to-be-filled
sentence, an original input text and a fill-in-the-blank instruction; the to-be-filled
sentence is composed of a slot name, a meaning explanation and a corresponding slot value of a first slot, a slot name, a meaning explanation and a corresponding slot value of a second slot, and a slot name, a meaning explanation and a corresponding slot value of a third slot; based on the related information of the mth slot at the
current time, a parameter matrix, and a
hidden layer representation vector of a decoder at a previous time, an attention matrix of the mth slot is determined; the parameter matrix includes
q matrix,
k matrix and v matrix in the attention mechanism; based on the attention matrix of the mth slot, a word table probability distribution corresponding to the mth slot is determined; based on the word table probability distribution, a slot value corresponding to the mth slot is determined, and a corresponding blank symbol is replaced to fill in a completed
sentence.