Unlock instant, AI-driven research and patent intelligence for your innovation.

A text inference method and device based on rule embedding

A technology for inputting text and rules, applied in reasoning methods, neural learning methods, biological neural network models, etc., can solve problems such as difficulty in dealing with topic diversity, limitations of keyword Boolean retrieval methods, difficulty in adapting to changes in user needs, etc., to achieve Supports language flexibility and text diversity, enhances robustness, and efficiently handles effects

Active Publication Date: 2021-11-16
SHANDONG UNIV
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Existing technologies for processing the above inference tasks are mainly divided into two categories. One is to infer based on keyword Boolean retrieval results, and to find the text that matches the logical expression by comparing the text with the keyword logical expression defined by the user. However, this There are limitations in this keyword Boolean retrieval method, and the flexibility of natural language makes the text expression form with the same semantics have a great degree of freedom, which affects the matching results
The other is a classification method based on deep learning, inferring text types based on pre-trained word vectors and neural networks, and performing supervised learning on large-scale labeled datasets, so that the neural network can understand and infer whether the text meets user needs from the semantic level , such as the acquisition of text representation vectors based on convolutional neural networks is described in Chinese patent document CN113076488A: a method and system for recommending information based on user data, which uses preset keywords to perform feature modeling on specific sentences in text carrying user information , but its disadvantage is that it is difficult to deal with the diversity of topics involved in user needs, and it is difficult to adapt to changes in user needs

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A text inference method and device based on rule embedding
  • A text inference method and device based on rule embedding
  • A text inference method and device based on rule embedding

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0094] A text inference method based on rule embedding, the method comprising:

[0095] 1) Transform the keyword logic expression describing the user's needs into an equivalent disjunctive paradigm. The user's demand is a propositional formula P, then the disjunctive paradigm of P is:

[0096] (1)

[0097] In formula (1), represents the number of conjunction rules, r i is the i-th user rule; in the propositional formula P, the connective words are taken from the set , an item is a set of keywords K , including keywords and their synonyms that describe the topic or semantic relevance; according to the existence theorem of the paradigm, the propositional formula P must be transformed into an equivalent disjunctive paradigm, is a simple conjunction composed of a set of keywords, that is, ,in represent simple conjunctions The number of middle items, the set of all simple conjunctions constituting user requirements is expressed as , is the user rule set, where ...

Embodiment 2

[0140] As described in Embodiment 1, a text inference method based on rule embedding also includes a neural classification network set in parallel with the semantic logic network, and the neural classification network is used to: perform category prediction on the input text to obtain the input text The probability of meeting user needs, that is, the prediction result;

[0141] The input text is inferred through the neural classification network and the semantic logic network respectively, and the prediction results of the two are respectively obtained; finally, the Jensen-Shannon divergence, referred to as JS distance, is used to constrain the consistency of the prediction results of the two.

[0142] The processing method of described neural classification network comprises:

[0143] Construct the semantic vector of the input text through the text encoding module, the text encoding network used here is

[0144] ENC 2 , preferably an encoding module based on CNN, RNN or BER...

Embodiment 3

[0160] A device for implementing the text inference method described in Embodiment 1, comprising: a semantic logic network module;

[0161] The semantic logic network module is used to determine whether an input text satisfies user rules; the semantic logic network module includes: an item detection module, a conjunction rule detection module, and a disjunctive paradigm detection module arranged in sequence along the data flow direction.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A text inference method based on rule embedding, including neural retrieval and inference of different components of logical rules based on pre-trained semantic logic network, and supports user demand changes or task migration; combined with the parallelism of semantic logic network and neural classification network The structure adopts the probability distribution distance function Jensen-Shannon divergence, and constrains the consistency of its inference results through network fine-tuning training. The semantic logic network proposed by the present invention encodes user rules into semantic vectors, can better preserve the semantic information of text while detecting logic rules, and supports language flexibility and text diversity. The present invention also proposes a method of integrating user rules into the neural classification network to improve the performance of text inference, that is, combining the parallel prediction structure inferred by the neural classification network and the semantic logic network, and adopting the consistency joint loss, which can make the semantic logic network and the neural network Classification networks benefit from each other and use rule detection results as evidence for text inference.

Description

technical field [0001] The invention discloses a text inference method and device based on rule embedding, belonging to the technical field of natural language processing. Background technique [0002] Public opinion subscription is an important application scenario in the new media era. It means that media organizations regularly push Internet public opinion or news texts that users pay attention to according to the needs of subscribers. User needs are usually expressed in the form of keyword logic rules, which describe The text content of user preferences. The task of text inference based on user needs refers to determining whether a text meets user needs, and this task has important application value in the above scenarios. [0003] Existing technologies for processing the above inference tasks are mainly divided into two categories. One is to infer based on keyword Boolean retrieval results, and to find the text that matches the logical expression by comparing the text ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F40/30G06N3/08G06N5/04
CPCG06F40/30G06N5/041G06N3/08
Inventor 孙宇清郑威
Owner SHANDONG UNIV