Feature word extraction method and device, electronic equipment, computer readable storage medium and computer program product
By determining the weight based on the number and total number of words in the text in the feature word extraction method, and adjusting the weight in combination with the preset threshold, the problem of low accuracy in feature word extraction in the prior art is solved, and a more accurate text similarity calculation is achieved.
Patent Information
- Application Number
- CN202411669886.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-25
AI Technical Summary
In the prior art, the word frequency-inverse document frequency algorithm is used to extract feature words for texts with low accuracy, especially when dealing with the influence of new words and word order.
In the feature word extraction method, the first weight is determined based on the number and total number of words in the first text, and when the words are not included in the text set, the second weight is determined according to the preset threshold value, so that the weight of the word is dynamically adjusted, and the feature words are extracted in combination with the first weight and the second weight.
Improve the accuracy of feature word extraction, so that important but perhaps not widely used words can also be selected as feature words, enhancing the accuracy of text similarity calculation.