Semantic text similarity calculation method based on attention
A text similarity and calculation method technology, applied in the field of natural language processing, can solve problems such as missing information, fast calculation speed, ignoring semantic information of words, etc., and achieve the effect of enhancing important information
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0030] In order to describe the present invention more specifically, the technical solutions of the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0031] Such as figure 1 As shown, the semantic text similarity calculation method of the present invention comprises the following steps:
[0032] (1) Data preprocessing.
[0033] Each pair of texts (text a and text b) in the data set needs to be preprocessed and semantic text similarity calculations are performed.
[0034] This embodiment uses the Jieba word segmentation tool to carry out word segmentation operations on the text in the data set, and remove stop words; filling); for each 50-word text, initialize the word embedding based on the pre-trained 300-dimensional word vector to obtain a 50×300 word vector matrix.
[0035] (2) Build a convolutional neural network and train it.
[0036] Such as figure 2 As shown, the neural network is composed...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com