Question classification method and application thereof
A classification method and a technology of question sentences, which are applied in the computer field, can solve problems such as training difficulties of recurrent neural networks, ambiguity of word vectors, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] The present embodiment provides a method for classifying questions in a Chinese medical question-and-answer system, and specifically adopts the following steps:
[0051] S1. Data collection of medical questions:
[0052] 1250 questions in the medical field are obtained from the doctor-patient dialogue data open on the website (http: / / jib.xywy.com / ), and are manually labeled, and each question corresponds to a category. Questions are divided into 16 categories, which are common medicines for diseases, foods suitable for diseases, inspection items required for diseases, foods not to eat for diseases, recommended drugs for diseases, symptoms of diseases, concurrent diseases of diseases, departments of disease treatment, methods of disease treatment, diseases Treatment time, disease cure probability, disease treatment cost, disease preventive measures, disease etiology, disease description, and disease contagiousness.
[0053] S2. Question preprocessing: convert the tradit...
Embodiment 2
[0082] Based on the scheme given in Example 1, the following specific examples and in conjunction with the attached figure 2 The present invention is described in further detail. In this specific embodiment, taking the question "Can leukemia be cured?" as an example, we first preprocess the text, and obtain the word vector x corresponding to each word of the sentence through the BERT model i , the sentence can be expressed as v q , and then input it into a two-layer bidirectional GRU network. The input of the first layer of the GRU network is the word vector obtained by the BERT model. Through the first layer, we can extract the hidden state of each word The original word vector x i and the hidden state vector of the first layer of the GRU network Connect, input to the second layer of GRU, and extract the advanced hidden state of each word Then use the attention layer to the hidden state vector of the second layer of the GRU network learning weight α i , using the l...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



