Query term expansion and result selection
US-2022050847-A1 · Feb 17, 2022 · US
US12197479B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-12197479-B2 |
| Application number | US-202318390496-A |
| Country | US |
| Kind code | B2 |
| Filing date | Dec 20, 2023 |
| Priority date | Dec 30, 2022 |
| Publication date | Jan 14, 2025 |
| Grant date | Jan 14, 2025 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
Disclosed are a semantic matching and retrieval method and apparatus. The semantic matching and retrieval method includes steps of obtaining both the vector representation of a query text and the vector representation of a document text; obtaining the final vector representation of the query text; obtaining the final vector representation of the document text; calculating, based on the final vector representation of the query text and the final vector representation of the document text, the similarity score between the query text and the document text; and selecting, based on the similarity scores between the query text and a plurality of document texts, a document text matching the query text from the plurality of document texts.
Opening claim text (preview).
What is claimed is: 1. A semantic matching and retrieval method comprising: obtaining both a vector representation of a query text and a vector representation of a document text, wherein, the vector representation of the query text contains a vector representation of each character or word in the query text, and the vector representation of the document text contains a vector representation of each character or word in the document text; extracting, based on the vector representation of each character or word in the query text, an original feature and a self-attention feature of the query text, extracting, based on the vector representation of each character or word in the query text as well as the vector representation of each character or word in the document text, an interactive attention feature of the query text, and fusing the original feature, the self-attention feature, and the interactive attention feature of the query text to obtain a final vector representation of the query text; extracting, based on the vector representation of each character or word in the document text, an original feature and a self-attention feature of the document text, extracting, based on the vector representation of each character or word in the document text as well as the vector representation of each character or word in the query text, an interactive attention feature of the document text, and fusing the original feature, the self-attention feature, and the interactive attention feature of the document text to obtain a final vector representation of the document text; calculating, based on the final vector representation of the query text as well as the final vector representation of the document text, a similarity score between the query text and the document text; and selecting, based on the similarity scores between the query text and a plurality of document texts, a document text matching the query text from the plurality of document texts. 2. The semantic matching and retrieval method according to claim 1 , wherein, the extraction of the original feature of the query text includes inputting the vector representation of each character or word in the query text into a first deep learning network to acquire the original feature of the query text output by the first deep learning network, and the extraction of the original feature of the document text includes inputting the vector presentation of each character or word in the document text into a second deep learning network to acquire the original feature of the document text output by the second deep learning network. 3. The semantic matching and retrieval method according to claim 1 , wherein, the extraction of the self-attention feature of the query text includes calculating a self-attention weight of each character or word in the query text with respect to a target character or word in the query text; performing, based on the self-attention weight of each character or word in the query text with respect to the target character or word in the query text, weighted summation on the vector representation of each character or word in the query text to acquire a self-attention feature of the target character or word in the query text; and stitching the self-attention feature of each character or word in the query text to acquire the self-attention feature of the query text, and the extraction of the self-attention feature of the document text includes calculating a self-attention weight of each character or word in the document text with respect to a target character or word in the document text; performing, based on the self-attention weight of each character or word in the document text with respect to the target character or word in the document text, weighted summation on the vector representation of each character or word in the document text to acquire a self-attention feature of the target character or word in the document text; and stitching the self-attention feature of each character or word in the document text to acquire the self-attention feature of the document text. 4. The semantic matching and retrieval method according to claim 1 , wherein, the extraction of the interactive attention feature of the query text includes calculating an interactive attention weight of each character or word in the document text with respect to a target character or word in the query text; performing, based on the interactive attention weight of each character or word in the document text with respect to the target character or word in the query text, weighted summation on the vector representation of each character or word in the document text to acquire an interactive attention feature of the target character or word in the query text; and stitching the interactive attention feature of each character or word in the query text to acquire the interactive attention feature of the query text, and the extraction of the interactive attention feature of the document text includes calculating an interactive attention weight of each character or word in the query text with respect to a target character or word in the document text; performing, based on the interactive attention weight of each character or word in the query text with respect to the target character or word in the document text, weighted summation on the vector representation of each character or word in the query text to acquire an interactive attention feature of the target character or word in the document text; and stitching the interactive attention feature of each character or word in the document text to acquire the interactive attention feature of the document text. 5. The semantic matching and retrieval method according to claim 1 , wherein, the fusion of the original feature, the self-attention feature, and the interactive attention feature of the query text includes performing feature addition, feature stitching, or weighted summation on the original feature, the self-attention feature, and the interactive attention feature of the query text to acquire the final vector representation of the query text, and the fusion of the original feature, the self-attention feature, and the interactive attention feature of the document text includes performing feature addition, feature stitching, or weighted summation on the original feature, the self-attention feature, and the interactive attention feature of the document text to acquire the final vector representation of the document text. 6. The semantic matching and retrieval method according to claim 1 , wherein, the calculation of the similarity score between the query text and the document text based on the final vector representation of the query text as well as the final vector representation of the document text includes calculating a cosine distance or a Manhattan distance between the final vector representation of the query text and the final vector representation of the document text to serve as the similarity score between the query text and the document text. 7. A semantic matching and retrieval apparatus comprising: a first vector obtainment part configured to obtain a vector representation of a query text, wherein, the vector representation of the query text contains a vector representation of each character or word in the query text; a second vector obtainment part configured to obtain a vector representation of a document text, wherein, the vector representation of the document text contains a vector representation of each character or word in the document text; a first feature extraction part configured to extract, based on the vector representation of each character or word in the query text, an original feature and a self-attention feature of the query text, extract, based on the vect
Combinations of networks · CPC title
using vector based model · CPC title
Energy efficient computing, e.g. low power processors, power management or thermal management · CPC title
Calculation of difference between files · CPC title
Semantic analysis · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.