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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


