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…
Abstract
This application provide a keyword extraction method. The method includes: performing word segmentation on a text, to obtain a plurality of candidate words; 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 the title; and determining a keyword of the text from the candidate words according to the extraction threshold.
Claims20
A method for extracting a keyword from a text performed at a computer device, the method comprising:
- performing word segmentation on the text, to obtain a plurality of candidate words;
- 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 candidate word relative to the title;
- and
- determining a keyword of the text from the candidate words according to the extraction threshold.
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 method for extracting a keyword from a text including:
- performing word segmentation on the text, to obtain a plurality of candidate words;
- 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 candidate word relative to the title;
- and
- determining a keyword of the text from the candidate words according to the extraction threshold.
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 method for extracting a keyword from a text including:
- performing word segmentation on the text, to obtain a plurality of candidate words;
- 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 candidate word relative to the title;
- and
- determining a keyword of the text from the candidate words according to the extraction threshold.
Dependencies are inferred from the claim text.