Corpus data processing method and device, computer readable medium and electronic equipment
A processing method and corpus technology, which are applied in the processing of corpus data, computer-readable media and electronic equipment, can solve the problems of large recall data, large noise of corpus data, time-consuming and labor-intensive manual inspection, etc., so as to avoid time-consuming and wasteful strength, and the effect of improving accuracy
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- Publication Date
- 2019-04-09
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
Technical field
[0001] The present invention relates to the field of computer and communication technologies, and in particular to a method, device, computer readable medium and electronic equipment for processing corpus data. Background technique
[0002] In the intelligent question answering scenario, the acquisition and expansion of domain corpus is an important issue for domain construction. Sufficient corpus of high quality and diversity can be trained to obtain more accurate deep learning models, which can more accurately classify user questions. Conversely, if there are too few relevant corpus in a field, the deep learning model will learn fewer features related to the field, and it will be difficult to distinguish it from corpus in other fields. It can be seen that the work of corpus mining has a decisive significance for the effect of deep learning models. However, the corpus mining solution proposed in the related technology has the problem of more recalled data and gr...
Examples
Embodiment approach 1
[0096] In an embodiment of the present invention, if the template corresponding to the corpus data is a subset of the existing domain template, then the template corresponding to the corpus data is similar to the domain template, and the piece of corpus data is also the corpus of the domain.
[0097] For example, if the existing domain template is "[player]'s height", the corpus data "I want to know Yao Ming's height" corresponds to the template "I want to know [player]'s height". Since "[player]'s height" is a subset of "I want to know [player]'s height", the template corresponding to the corpus data is similar to the existing domain template, and the corpus data is the corpus of the domain.
Embodiment approach 2
[0099] In an embodiment of the present invention, if the edit distance between the template corresponding to the corpus data and the existing domain template is less than or equal to the distance threshold (such as 2), the template corresponding to the corpus data is similar to the existing domain template. The corpus data is the corpus of the field.
[0100] For example, the template corresponding to the corpus data "Yao Ming's real height" is "[player]'s real height", while the existing domain templates "[player]'s height" and "[player]'s real height" do not have an inclusive relationship, but the two The edit distance between the two templates is equal to 2 within the set range, so the template corresponding to the corpus data can be similar to the existing domain template, and the corpus data is the corpus of the domain.
[0101] In other embodiments of the present invention, the similarity between the models can also be calculated through algorithms such as cosine similarity a...