Method for training keyword extraction model, keyword extraction method, and computer device
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsWenhao ZHENG, Lie KANG, Qiang YAN
Life of this patent
Estimating the term…
Loading patent…
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsWenhao ZHENG, Lie KANG, Qiang YAN
Estimating the term…
This application provides a keyword extraction method. The method includes: receiving an information entity including a title and a text; performing word segmentation on the text, to obtain a plurality of candidate words; and performing character segmentation on the title corresponding to semantics of the text, to obtain a plurality of characters; sequentially inputting the plurality of candidate words to a keyword extraction model, to obtain an attention weight of each candidate word relative to each character; selecting, from the plurality of candidate words, a candidate word that appears in the title; determining an extraction threshold according to an attention weight of the selected candidate word relative to each character; and determining a keyword of the text of the information entity from the candidate words according to the extraction threshold. This application further provide a method for training a keyword extraction model, a computer device, and a storage medium.
A keyword extraction method performed at a computer device, the method comprising:
A computer device, comprising one or more processors and one or more memories, the one or more memories storing at least one piece of program code, the at least one piece of program code being loaded and executed by the one or more processors to perform a plurality of operations including:
A non-transitory computer-readable storage medium, storing computer-readable instructions that, when executed by a processor of a computer device, cause the computer device to perform a plurality of operations including:
Dependencies are inferred from the claim text.