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

Logical expression determination method, apparatus, device and medium

A technology of logical expressions and logical relationships, applied in the field of intelligent question answering, can solve problems such as no results, unexecutable logical expressions, etc., to achieve the effect of reducing labor requirements and costs

Active Publication Date: 2021-06-04
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF0 Cites 0 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
  • Logical expression determination method, apparatus, device and medium
  • Logical expression determination method, apparatus, device and medium
  • Logical expression determination method, apparatus, device 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] Image 6 is a schematic structural diagram of a logic expression determining device provided in Embodiment 3 of the present invention. see Image 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 ex...

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 method, device, equipment and medium for determining a logical expression, and relates to the technical field of intelligent question answering. The method includes: performing semantic analysis on the acquired questions; determining a target frame describing the overall semantic and logical relationship of the question according to the semantic analysis results and the preset semantic logical relationship between words; according to the target frame and the general representation of each resource in the knowledge base to determine the target logic expression of the question, for executing the target logic expression to determine the answer to the question from the resources included in the knowledge base. The embodiment of the present invention provides a method, device, device and medium for determining a logical expression, which realizes determining the logical expression of a question without manually writing the logical 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 Patents(China)
IPC IPC(8): G06F16/332G06F16/36G06F16/33G06F40/30
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