Machine reading model training method and device, question and answer method and device
A machine and model technology, applied in the direction of instruments, special data processing applications, electrical digital data processing, etc., can solve problems such as few, difficult to implement, and low controllability of generative answers
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0091] refer to figure 1 Shown, the machine reading model training method that the embodiment of the present invention provides, this method comprises steps:
[0092] 101. Obtain a training sample. The training sample includes a sample question and its corresponding sample article, as well as the real initial position and the real end position of the corresponding answer in the sample article.
[0093] Specifically, the present invention does not limit the specific acquisition process.
[0094] 102. Extract the question feature vector of the sample question and the article feature vector of the sample article.
[0095] Wherein, the question feature vector of the sample question and the article feature vector of the sample article are extracted, and the process may include the following steps:
[0096] (1) Generate word vectors and word vectors for sample questions and sample articles.
[0097] Specifically, the features of the sample questions and the features of the sample...
Embodiment 2
[0135] Based on the machine reading model trained in Embodiment 1, the embodiment of the present invention also provides a question-and-answer method. After the machine-reading model is deployed as a service, the question-and-answer method can quickly call the online The reading comprehension model extracts answers and returns them to the user.
[0136] refer to figure 2 As shown, the embodiment of the present invention provides a question answering method, the method includes steps:
[0137] 201. According to the question input by the user, filter out articles corresponding to the question from the article knowledge base.
[0138] Specifically, the question entered by the user and all articles in the article knowledge base are represented by the bag-of-words model, and the articles corresponding to the question are screened out based on the question-article bag-of-words vector.
[0139] In the specific implementation process, the user can input questions in the form of voi...
Embodiment 3
[0145] As the realization of the machine reading model training method in the first embodiment, the embodiment of the present invention also provides a machine reading model training device, refer to image 3 As shown, the device includes:
[0146] The obtaining module 31 is used to obtain training samples, the training samples include sample questions and corresponding sample articles, and the real initial positions and real end positions of the corresponding answers in the sample articles;
[0147] The extraction module 32 is used to extract the question feature vector of the sample question and the article feature vector of the sample article;
[0148]The fusion module 33 is used to fuse and process the question feature vector and the article feature vector using the neural network structure to form a fusion result;
[0149] Prediction module 34, for the prediction of the initial position and the end position of answer for inputting fusion result in the classifier;
[015...
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