Sentence pair semantic matching method and device for intelligent interaction
A technology of semantic matching and intelligent interaction, applied in semantic analysis, character and pattern recognition, natural language data processing, etc. It can solve the problems of ignoring interaction and not considering re-encoding semantic features, so as to achieve accurate matching representation tensors and semantic features. Rich, Accurate Effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0117] as attached Figure 9 As shown, the main frame structure of the present invention includes a multi-granularity embedding module, a multi-level alignment matching network module, a feature enhancement module and a label prediction module. Among them, the multi-granularity embedding module performs embedding operations on the input sentences at word granularity and word granularity respectively, and transmits the results to the multi-level alignment matching network module of the model. Multi-level alignment matching network modules such as Figure 8 As shown, there are four alignment matching modules with unified structure, namely the basic module. The structure of the basic module is as Figure 7 As shown, the basic module takes tensor 1 and tensor 2 as input and calculates the attention scores of the two tensors, and then multiplies the input tensor 1 and the attention score to perform the alignment operation to obtain the alignment result 2, and then uses The align...
Embodiment 2
[0123] as attached figure 1 As shown, the intelligent interaction-oriented sentence pair semantic matching method of the present invention, the specific steps are as follows:
[0124] S1. Build a sentence pair semantic matching knowledge base, as attached figure 2 shown, the specific steps are as follows:
[0125] S101. Download a dataset on the Internet to obtain original data: download a dataset of semantic matching of sentence pairs or an artificially constructed dataset that has been published on the Internet, and use it as the original data for constructing a knowledge base of semantic matching of sentence pairs.
[0126] Example: There are many public datasets of sentence pair semantic matching on the web. The present invention collects and downloads these data, thereby obtaining the original data for constructing the semantic matching knowledge base of sentence pairs. For example, an example from the LCQMC dataset is as follows:
[0127] Sentence 1 Whic...
Embodiment 3
[0237] as attached Image 6 As shown, based on the intelligent interaction-oriented sentence pair semantic matching device of Embodiment 2, the device includes,
[0238] The sentence pair semantic matching knowledge base construction unit is used to obtain a large amount of sentence pair data, and then preprocess it to obtain the sentence pair semantic matching knowledge base that meets the training requirements; the sentence pair semantic matching knowledge base construction unit includes,
[0239] The sentence pair data acquisition unit is responsible for downloading the sentence pair semantic matching dataset or artificially constructed dataset that has been published on the Internet, and using it as the original data for constructing the sentence pair semantic matching knowledge base;
[0240] The raw data hyphenation / word segmentation preprocessing unit is responsible for preprocessing the raw data used to construct the sentence-pair semantic matching knowledge base, and ...
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