Method and system for generating question sentences
A technology for question generation and model generation, which is applied in the field of question generation methods and systems, can solve problems such as slow execution speed, insufficient performance of question generation, and lack of related questions, so as to improve execution speed and accuracy, and improve readability Sex and diversity, reducing the effect of manual labeling
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] Example 1, such as figure 1 shown and figure 2 Shown, technical scheme of the present invention is as follows:
[0048] S1 Recognize the text to be read and comprehend based on the named entity recognition tool, and get the answer part;
[0049] S2 brings the text to be read and comprehend and the corresponding answer part into the pre-trained question generation model to generate multiple questions for the answer;
[0050] S3 correcting the plurality of questions to obtain the questions corresponding to the text to be read and understood;
[0051] Wherein, the question generation model, based on the existing dialogue system and reading comprehension text, introduces a copy mechanism and a placeholder mechanism into the algorithm model of the multi-layer and multi-scale transformer network to replace the named entities in the reading comprehension text , to obtain the question expressed by the dialogue system. The transformer mentioned in the present invention is a...
Embodiment 2
[0066] In this embodiment, the text to be read and understood is set to include a statement sentence, which can be understood as an answer, for example: Beijing is the capital of China,
[0067] First, the sentence is preprocessed, including sentence segmentation, word segmentation, word vector embedding, regularization, cleaning, etc. of the text to obtain: word segmentation:
[0068] Then, use the existing named entity recognition tool to process the above-mentioned processed data to obtain the entity characteristics of each word, and get: and are place names
[0069] Finally, using the training method in steps 3-5 of Example 1, the named entity information is encoded and incorporated into the word embedding; then the word embedding model integrated with the named entity information is sent to the transformer question generation model to obtain Question: Where is the capital of China?
Embodiment 3
[0071] In order to realize the above method, the present invention also provides a system for generating question sentences, including:
[0072] The data preparation module is used to identify the text to be read and comprehend based on the named entity recognition tool, and obtain the answer part;
[0073] A question generation module, used to bring the text to be read and comprehend and the corresponding answer part into a pre-trained question generation model to generate multiple questions for the answer;
[0074] A question sentence determination module, which is used to correct a plurality of questions to obtain a question corresponding to the text to be read and understood;
[0075] Among them, the question generation model, based on the existing dialogue system and reading comprehension text, introduces the copy mechanism and placeholder mechanism in the algorithm model of the multi-layer and multi-scale transformer network to replace the named entities in the reading c...
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