Statement similarity determination method and device, electronic device and readable storage medium
A technology for determining method and similarity, applied in the field of intelligent answering, can solve problems such as low accuracy of sentence similarity and affecting user experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0078] Such as figure 1 As shown, it is a method for determining sentence similarity provided in Embodiment 1 of the present application, including:
[0079] S101: Based on the first vocabulary feature vectors of each first vocabulary in the input sentence, determine the first semantic feature vector corresponding to each first vocabulary; and, based on the second vocabulary feature vector of each second vocabulary in the standard sentence, determine the corresponding Second semantic feature vectors corresponding to each second vocabulary.
[0080] In the specific implementation process, the client obtains the input sentences and preprocesses the input sentences. When constructing a question corpus storing standard sentences, it also needs to preprocess the historical input sentences. Taking the construction of a question corpus storing standard sentences as an example, after obtaining historical input sentences, external data needs to be loaded first.
[0081] When building...
Embodiment 2
[0122] Such as figure 2 As shown, Embodiment 2 of the present application also provides a sentence similarity determining device 200, including:
[0123] Feature extraction module 201, for determining the first semantic feature vector corresponding to each first vocabulary based on the first vocabulary feature vector of each first vocabulary in the input sentence; and, based on the second vocabulary of each second vocabulary in the standard sentence A feature vector, determining a second semantic feature vector corresponding to each second vocabulary;
[0124] The weight calculation module 202 is configured to determine the first weight corresponding to each first semantic feature vector based on the first semantic feature vector corresponding to each first vocabulary; and determine the first weight corresponding to each second semantic feature vector based on the second semantic feature vector corresponding to each second vocabulary. The second weight corresponding to the t...
Embodiment 3
[0154] refer to image 3 As shown, the electronic device 300 provided in Embodiment 3 of the present application includes a processor 301 , a memory 302 , and a bus 303 .
[0155] The memory 302 stores machine-readable instructions executable by the processor 301 (for example, figure 2 The feature extraction module 201, the weight calculation module 202 and the execution instructions corresponding to the similarity calculation module 203, etc.), when the electronic device 300 is running, the processor 301 communicates with the memory 302 through the bus 303, and the When the machine-readable instructions are executed by the processor 301, the following processes are performed:
[0156] Based on the first vocabulary feature vectors of each first vocabulary in the input sentence, determine the first semantic feature vector corresponding to each first vocabulary; The second semantic feature vectors corresponding to the two words respectively;
[0157] Based on the first seman...
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