Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Logic expression determination method, device and equipment and medium

A technology for logical expressions and determination methods, which is applied in the field of intelligent question answering, and can solve problems such as unexecutable execution and no results of logical expressions

Active Publication Date: 2019-04-23
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF7 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the writing of the logical expression of the query requires the writer to have a good understanding of the logical expression, in case the written logical expression is not executable or the execution has no result

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
  • Logic expression determination method, device and equipment and medium
  • Logic expression determination method, device and equipment and medium
  • Logic expression determination method, device and equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] figure 1 It is a flowchart of a method for determining a logical expression provided by Embodiment 1 of the present invention. This embodiment can be applied to determine the logical expression of the question, so as to execute the logical expression to determine the answer of the question. The method can be executed by a logic expression determining device, and the device can be realized by software and / or hardware. see figure 1 , the logical expression determination method provided by the embodiment of the present invention includes:

[0030] S110. Perform semantic analysis on the acquired questions.

[0031] Among them, the question sentence is the query input by the user.

[0032] Specifically, the semantic analysis includes at least one of word segmentation, entity recognition, part-of-speech tagging and dependency analysis.

[0033] S120. Determine a target frame describing the overall semantic and logical relationship of the question sentence according to th...

Embodiment 2

[0068] figure 2 It is a flowchart of a method for determining a logical expression provided in Embodiment 2 of the present invention. This embodiment is an optional solution proposed on the basis of the foregoing embodiments. see figure 2 , the logical expression determination method provided in this embodiment includes:

[0069] S210. Perform semantic analysis on the acquired questions.

[0070] S220. Determine the semantic and logical relationship between each word in the question sentence according to the semantic analysis result between the words in the question sentence and the preset semantic logical relationship between words.

[0071] S230. Construct a knowledge graph by using each word included in the question as a graph node, and using a semantic logical relationship between words as a graph relationship.

[0072] S240. Determine, according to the knowledge graph, a target frame describing the overall semantic and logical relationship of the question.

[0073]...

Embodiment 3

[0094] Figure 6 is a schematic structural diagram of a logic expression determining device provided in Embodiment 3 of the present invention. see Figure 6 , the device for determining logical expressions provided in this embodiment includes: a semantic analysis module 10 , a frame determination module 20 and an expression determination module 30 .

[0095] Wherein, the semantic analysis module 10 is used for performing semantic analysis to the acquired questions;

[0096] Framework determination module 20, for determining the target framework describing the overall semantic logic relationship of the question according to the semantic analysis results and the semantic logic relationship between the preset words and words;

[0097] An expression determination module 30, configured to determine the target logical expression of the question according to the target framework and the general representation of each resource in the knowledge base, for executing the target logical ...

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

The embodiment of the invention discloses a logic expression determination method, device and equipment and a medium, and relates to the technical field of intelligent questions and answers. The method comprises the following steps of carrying out semantic analysis on an obtained question; according to a semantic analysis result and a preset semantic logic relationship between words, determining atarget framework for describing the overall semantic logic relationship of the question; and determining a target logic expression of the question according to the target framework and the universalrepresentation form of each resource in the knowledge base, so as to execute the target logic expression to determine the answer of the question from each resource included in the knowledge base. Theembodiment of the invention provides the logic expression determination method, device and equipment and a medium, and aims to determine a logic expression of a question without manually writing the logic expression.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of intelligent question answering, and in particular to a method, device, device and medium for determining a logical expression. Background technique [0002] Currently, one of the common practices for some queries (question sentences) that require calculation or reasoning is to input the query into a pre-trained logical expression determination model, and output the logical expression of the query. An answer to the query is determined from a knowledge base based on a logical expression. [0003] Among them, the training of the logical expression determination model needs to manually mark the part of speech of the query and manually compose the logical expression of the query as the training sample data. [0004] However, the writing of the logical expression of the query requires the writer to have a good understanding of the logical expression, in case the written logical expres...

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 Applications(China)
IPC IPC(8): G06F16/332G06F16/36G06F17/27
CPCG06F40/30
Inventor 王丽杰陈颖王硕寰
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products