Sentence generation method, device and electronic device based on large language model

    公开(公告)号:US20250005067A1

    公开(公告)日:2025-01-02

    申请号:US18745859

    申请日:2024-06-17

    Abstract: The disclosure provides a sentence generation method based on a large language model including: obtaining a query sentence, in which the query sentence has at least one candidate description object; performing semantic recognition on the query sentence to obtain first semantic information and second semantic information corresponding to the query sentence, in which categories of the first semantic information and the second semantic information are different; inputting the at least one candidate description object and the first semantic information into the large model, to identify a target description object from the at least one candidate description object based on the large model; selecting target service data from at least one piece of service data corresponding to the target description object based on the second semantic information; and generating a reply sentence corresponding to the query sentence according to the target service data.

    Role labeling method, electronic device and storage medium

    公开(公告)号:US11907671B2

    公开(公告)日:2024-02-20

    申请号:US17450595

    申请日:2021-10-12

    CPC classification number: G06F40/35 G06F16/3334 G06F16/35 G06F40/279

    Abstract: The disclosure provides a role labeling method. The method includes: obtaining a dialogue sentence to be labeled and context information corresponding to the dialogue sentence, and splicing the context information and the dialogue sentence to obtain a spliced text; extracting location information of a role name of the dialogue sentence in the spliced text from the spliced text; determining a first candidate role name of the dialogue sentence based on the location information; determining a second candidate role name of the dialogue sentence from role names in the spliced text; and determining a target role name of the dialogue sentence based on the first candidate role name and the second candidate role name, and performing role labeling on the dialogue sentence based on the target role name.

Patent Agency Ranking