CN111651560B - Method and device for configuring problems, electronic equipment and computer readable medium - Google Patents

Method and device for configuring problems, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN111651560B
CN111651560B CN202010478745.4A CN202010478745A CN111651560B CN 111651560 B CN111651560 B CN 111651560B CN 202010478745 A CN202010478745 A CN 202010478745A CN 111651560 B CN111651560 B CN 111651560B
Authority
CN
China
Prior art keywords
elements
question text
search
answer
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010478745.4A
Other languages
Chinese (zh)
Other versions
CN111651560A (en
Inventor
张野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010478745.4A priority Critical patent/CN111651560B/en
Publication of CN111651560A publication Critical patent/CN111651560A/en
Application granted granted Critical
Publication of CN111651560B publication Critical patent/CN111651560B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/3332Query translation
    • G06F16/3334Selection or weighting of terms from queries, including natural language queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure provides a method for configuring problems, which relates to the technical field of databases, such as the fields of knowledge maps and deep learning. The method comprises the following steps: acquiring at least one input retrieval element; determining at least one relation group comprising the search elements in a preset knowledge base according to the input search elements, and determining at least one other element in the relation group as an answer element; the knowledge base comprises a plurality of relation groups, each relation group comprising a plurality of elements with a predetermined relation; generating a retrieval code; the retrieval code can retrieve answer elements from a knowledge base according to the retrieval elements when being operated; acquiring an input problem text; the retrieval code is associated with the question text. The disclosure also provides an apparatus, an electronic device, and a computer readable medium for configuring a problem.

Description

Method and device for configuring problems, electronic equipment and computer readable medium
Technical Field
Embodiments of the present disclosure relate to the field of database technologies, for example, to the field of knowledge maps and deep learning technologies, and in particular, to a method and apparatus for configuring a problem, an electronic device, and a computer readable medium.
Background
Knowledge base questions and answers (KB-QA, knowledge Base Question Answering) refer to a technique of searching answers to questions posed by a user in a preset knowledge base to answer the questions.
For substantially the same problem, different persons may employ different "questions" or the specific text (words) of the problem may be different. To determine the practical meaning of a variety of question methods, one way is to pre-configure the question (question method), i.e. the text of the question corresponds to the code that should be run, so that when the user asks the question, the corresponding code can be run and an answer is given from the knowledge base.
However, the above process of configuring the problem needs to program and configure the script, so that the personnel who do not understand the programming cannot complete the configuration problem, but needs to bother the technician; and even the personnel who understand programming, carry out the configuration problem and also need longer, troublesome operation, inefficiency.
Disclosure of Invention
Embodiments of the present disclosure provide a method and apparatus for configuring a problem, an electronic device, and a computer-readable medium.
In a first aspect, embodiments of the present disclosure provide a method of configuring a problem, comprising:
acquiring at least one input retrieval element;
determining at least one relation group comprising the search elements in a preset knowledge base according to the input search elements, and determining at least one other element in the relation group as an answer element; the knowledge base comprises a plurality of relation groups, each relation group comprising a plurality of elements with a predetermined relation;
generating a retrieval code; the retrieval code can retrieve answer elements from a knowledge base according to the retrieval elements when being operated;
acquiring an input problem text;
and associating the retrieval code with the question text.
In some embodiments, the relationship group is an entity-attribute value triplet;
each relation group consists of entity elements, attribute elements and attribute value elements.
In some embodiments, the search element is any two of an entity element, an attribute value element of one relationship group, and the answer element is another.
In some embodiments, the determining that at least one of the preset knowledge bases includes a relationship group of the search elements according to the input search elements, and determining that at least one other element in the relationship group is an answer element includes:
determining at least one relation group comprising the search elements in a preset knowledge base according to the input search elements, determining at least one other element in the relation group as a candidate answer element, and displaying the candidate answer element;
and determining at least one candidate answer element as an answer element according to the input selection instruction.
In some embodiments, the obtaining the entered question text includes:
showing at least one preset candidate question text; the candidate question text corresponds to the retrieval element and the answer element;
and determining at least one candidate question text as a question text according to the input editing instruction.
In some embodiments, the determining that at least one of the candidate question texts is a question text according to the input editing instruction includes:
and modifying at least one candidate question text according to the input editing instruction, and determining the modified candidate question text as the question text.
In a second aspect, embodiments of the present disclosure provide an apparatus for configuring a problem, comprising:
a search element module configured to obtain at least one input search element;
the answer element module is configured to determine at least one relation group comprising the search element in a preset knowledge base according to the input search element, and determine at least one other element in the relation group as an answer element; the knowledge base comprises a plurality of relation groups, each relation group comprising a plurality of elements with a predetermined relation;
a search code module configured to generate a search code; the retrieval code can retrieve answer elements from a knowledge base according to the retrieval elements when being operated;
the question text module is configured to acquire an input question text;
and the association module is configured to associate the retrieval code with the question text.
In some embodiments, the relationship group is an entity-attribute value triplet;
each relation group consists of entity elements, attribute elements and attribute value elements.
In some embodiments, the search element is any two of an entity element, an attribute value element of one relationship group, and the answer element is another.
In some embodiments, the answer element module is configured to:
determining at least one relation group comprising the search elements in a preset knowledge base according to the input search elements, determining at least one other element in the relation group as a candidate answer element, and displaying the candidate answer element;
and determining at least one candidate answer element as an answer element according to the input selection instruction.
In some embodiments, the question text module is configured to:
showing at least one preset candidate question text; the candidate question text corresponds to the retrieval element and the answer element;
and determining at least one candidate question text as a question text according to the input editing instruction.
In some embodiments, the determining that at least one of the candidate question texts is a question text according to the input editing instruction includes:
and modifying at least one candidate question text according to the input editing instruction, and determining the modified candidate question text as the question text.
In a third aspect, embodiments of the present disclosure provide an electronic device, comprising:
one or more processors;
a memory having one or more programs stored thereon, which when executed by the one or more processors cause the one or more processors to implement a method of any of the configuration problems described above;
one or more I/O interfaces coupled between the processor and the memory configured to enable information interaction of the processor with the memory.
In a fourth aspect, embodiments of the present disclosure provide a computer readable medium having stored thereon a computer program which, when executed by a processor, implements a method of any one of the configuration problems described above.
In the embodiment of the disclosure, a user (operator) can complete the question configuration of the knowledge base questions and answers only by inputting non-code contents such as search elements, answer elements, question texts and the like; therefore, persons (such as product managers and operators) not knowing programming can finish problem configuration, so that the time of technicians is avoided, and the process of the problem configuration is simple, rapid and high in efficiency.
Drawings
The accompanying drawings are included to provide a further understanding of embodiments of the disclosure, and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure, without limitation to the disclosure. The above and other features and advantages will become more readily apparent to those skilled in the art by describing in detail exemplary embodiments with reference to the attached drawings, in which:
FIG. 1 is a flow chart of a method of configuring a problem provided by an embodiment of the present disclosure;
FIG. 2 is a flow chart of some steps in a method of another configuration problem provided by an embodiment of the present disclosure;
FIG. 3 is a flow chart of some steps in a method of another configuration problem provided by an embodiment of the present disclosure;
FIG. 4 is a block diagram of an apparatus for configuring a problem provided by an embodiment of the present disclosure;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present disclosure;
fig. 6 is a block diagram of a computer readable medium according to an embodiment of the present disclosure.
Detailed Description
In order to better understand the technical solutions of the present disclosure, the following describes in detail a method and an apparatus, an electronic device, and a computer readable medium for configuring a problem provided by the present disclosure with reference to the accompanying drawings.
Example embodiments will be described more fully hereinafter with reference to the accompanying drawings, but may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Embodiments of the disclosure and features of embodiments may be combined with each other without conflict.
As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Description of technical terms
In the present disclosure, unless otherwise specified, the following technical terms are to be understood as follows:
knowledge base questions and answers (KB-QA), which refers to a technology for searching answers to questions posed by a user in a preset knowledge base to answer the questions.
For example, a search platform, a service platform and the like based on a network (such as the internet or an intranet) can be realized by a knowledge base question-answering mode, namely, a user can obtain a required answer by inputting a question text on the platform, and the answer is obtained by the knowledge base question-answering mode.
Knowledge base, which refers to a database containing a large amount of knowledge, wherein the knowledge can be expressed in the form of a plurality of sets of relationships.
A relationship group comprising a plurality of elements (or objects) and having a specific relationship between the elements, such that each relationship group expresses knowledge of a relationship between the elements.
Elements, which refer to the smallest units in a relational group, each element may represent a relatively independent concept such as a person, thing, concept, property, value, etc.
An entity-attribute value triplet, which is a set of three elements of relationships, is also known as a subject-predicate-object triplet (SPO triplet). Wherein the entity (subject) element is also referred to as a subject; while an attribute (predicate) element is a property of some aspect of the subject; an attribute value (object) element is then a specific value of a property of some aspect of the subject.
For example, the entity-attribute value triplet may be "A credit card-annual fee-10 yuan" which represents an attribute value of 10 yuan for the annual fee attribute of an A credit card entity. Similarly, entity-attribute value triples may also include content in other fields such as "earth-diameter-12765 km", "Zhang San-wife-Liqu".
It should be appreciated that the above classifications of entity elements, attribute value elements are relative: i.e. the same content may be different elements in different triples.
For example, the element "Zhang Sano" is an entity element in the Zhang Sano-wife-Liqu "triplet, and an attribute value element in the Liqu-husband-Zhang Sano triplet.
The question configuration, which is also called as "question configuration", is a process of establishing correspondence between text (words) of a question and codes used for retrieving in a knowledge base according to the meaning expressed by the question to obtain a desired answer. Therefore, after completing the question configuration, if someone puts forward the questions with the same text again, the corresponding codes are operated to give corresponding answers.
In a first aspect, embodiments of the present disclosure provide a method of configuring a problem.
The method of the embodiment of the disclosure is used for being executed by a device for configuring the questions to realize the question configuration in knowledge base question answering (KB-QA), namely, the corresponding relation between the text (characters) and codes of the questions is established.
Referring to fig. 1, a method of configuring a problem of an embodiment of the present disclosure includes:
s101, acquiring at least one input retrieval element.
The means for configuring the question obtains one or more retrieval elements entered by the user as a basis for retrieval in the knowledge base.
For example, the search elements may be "A credit card" and "annual fee" which indicate that it is desired to search for results related to "A credit card" and "annual fee" (e.g., a specific value of annual fee for A credit card).
The "input" refers to a process that a user makes the device of the configuration problem learn what the user wants to express (or that is, the user sends an instruction to the device of the configuration problem) through any interaction mode, so the practical meaning of this step is that the device of the configuration problem learns which search elements the user wants to use to search through some modes.
The specific mode of input is various.
For example, the "input" may be the input of a desired text or voice (convertible into text) directly into the device of the problem by means of a keyboard, microphone, etc.
Alternatively, the "input" may be that the device configuring the problem displays options for the user to select through a display screen or the like, and the user selects or determines a certain option(s) as its own input through a mouse, touch control or the like.
S102, determining a relation group comprising search elements in at least one preset knowledge base according to the input search elements, and determining at least one other element in the relation group as an answer element.
Wherein the knowledge base comprises a plurality of relationship groups, each relationship group comprising a plurality of elements having a predetermined relationship.
The device for configuring the questions stores a knowledge base in advance, namely a knowledge base for realizing knowledge base question-answering (KB-QA), wherein the knowledge base comprises a plurality of relation groups, and each relation group comprises a plurality of elements. Wherein at least part of the relation groups comprise the above search element (i.e. one element in the relation group is the above search element) and other elements at the same time.
Thus, in this step, the relationship group containing the above search elements may be determined according to the input search elements (of course, other contents input later), and at least some other elements in the relationship group (i.e., elements belonging to the relationship group but not the search elements) may be further determined as answer elements, that is, the search results desired by the user may be determined.
For example, one set of relationships of the knowledge base may include "A credit card-annual fee-10 yuan", and when the search elements are "A credit card" and "annual fee", the corresponding answer element may be "10 yuan".
S103, generating a search code.
Wherein, the search code can be executed to search the answer element from the knowledge base according to the search element.
After the search element and the answer element are determined, a corresponding search code may be generated according to the search element and the answer element. When the search code is run, the above elements can be searched in the above knowledge base according to a certain search condition by using the above elements, namely, the process of obtaining the answer elements according to the search elements is completed.
For example, the search code may be used to search the knowledge base for another element of the elements including "A credit card" and "annual fee", i.e., to retrieve the answer "10" element.
The above codes are used in the determined knowledge base to retrieve the determined result according to the determined elements, so that the logic process of the operation is necessarily determined, and therefore, the above process of generating codes can be automatically realized as long as scripts and the like are preset.
S104, acquiring the input question text.
Meanwhile, the device for configuring the questions also needs to acquire the text of the questions input by the user, namely the specific 'text content' of the questions which the user desires to configure.
Of course, the actual meaning expressed in linguistic terms of the above question text is generally that it is desirable to obtain answer elements from search elements.
For example, the question text may be "what the annual fee for the A credit card is" or "please complain about the annual fee for I A credit card", etc.
S105, associating the retrieval code with the question text.
After the retrieval code and the question text are obtained, the device for configuring the question can connect the retrieval code and the question text, namely, the corresponding relation between the retrieval code and the question text is set. Thus, when a subsequent person presents a question of the same text content, the corresponding search code can be automatically run to give the desired search result (answer element).
For example, when there is a problem that the user then puts forward "what the annual fee of the a credit card is" or "please complain about the annual fee of the i a credit card", the code obtained above may be automatically run, and an answer of "10 yuan" may be output.
It should be understood that the order of execution of the steps in the above embodiments is not meant to represent their necessary order of execution, as long as there is no logical contradiction, and the order of execution of many of the steps may be changed.
For example, the order of the step of generating the search code (S103) and the step of acquiring the inputted question text (S104) may be interchanged, or both may be performed simultaneously, alternately, etc., as long as they are completed before the step of associating the search code with the question text (S105).
In the embodiment of the disclosure, a user (operator) can complete the question configuration of the knowledge base questions and answers only by inputting non-code contents such as search elements, answer elements, question texts and the like; therefore, persons (such as product managers and operators) not knowing programming can finish problem configuration, so that the time of technicians is avoided, and the process of the problem configuration is simple, rapid and high in efficiency.
In some embodiments, the relationship group is an entity-attribute value triplet; each relationship group is composed of entity elements, attribute value elements.
The set of relationships in the knowledge base, which may be in the form of entity-attribute-value triples (or SPO triples), may be more clearly indicative of what relationship is specifically present between the two elements, and thus is preferred.
Of course, it is also possible if the relationship group is of other forms.
For example, the sets of relationships in the knowledge base may all be tuples, each comprising two elements, a particular value for a credit card and its annual fee, e.g. "A credit card-10", "E credit card-8", etc.
In some embodiments, the search element is any two of an entity element, an attribute value element of one relationship group, and the answer element is the other.
When the relation group is an entity-attribute value triplet, the input search element may be two elements in the triplet, so that the answer element may be uniquely determined to be the other element in the triplet.
Of course, it is also possible if the search element is only one element in the entity-attribute value triplet.
For example, when a user wishes to learn all of the information related to an A credit card (e.g., his annual fee, issuing bank, offer, etc.), then the search element may be only one of the "A credit card" and thus both the attribute elements and the attribute value elements in the multiple triples having the "A credit card" entity element may be answer elements.
Referring to fig. 2, in some embodiments, determining, from the input search elements, a relationship group in which at least one of the preset knowledge bases includes the search elements, and determining at least one other element in the relationship group as an answer element (S102) includes:
s1021, determining a relation group of at least one of the preset knowledge bases comprising the search elements according to the input search elements, determining at least one other element in the relation group as a candidate answer element, and displaying the candidate answer element.
S1022, determining at least one candidate answer element as an answer element according to the input selection instruction.
Obviously, there may be a plurality of other elements related to the search element (i.e., belonging to the same relationship group), but these other elements are not necessarily all search results desired by the user.
Thus, for convenience of operation, when a user inputs a search element, the device for configuring a question may first determine a plurality of other elements related to the search element (i.e., belonging to the same relationship group) as "candidate answer elements", and show the candidate answer elements to the user, so as to provide the user with a desired search result selected therefrom, and determine that one or more of the candidate answer elements is a true search result (i.e., answer element) according to the user's selection (i.e., the input selection instruction).
The "show" means that the user can know the corresponding information by means of displaying and playing voice on the display screen.
For example, when the user inputs the search element "A credit card", a number of options may be displayed on the screen display as follows:
a Credit card issuing bank D bank
A Credit card annual fee 10 yuan
A credit card preferential activity C buying and delivering goods
……
Thus, the user can select a desired search result thereof as an answer element by clicking or the like.
Of course, the search element directly input by the user may be only one (e.g. "a credit card"); when the user selects an answer element (e.g., "10" or the like), it is also equivalent to confirming that other elements (e.g., "annuity") for the answer element are also search elements. Thus, these elements are also search elements that are "entered" by the user, since they are also search elements that are changed by the user's selection.
The "input selection instruction" refers to a command that the user issues to the device that configures the problem in any way, for example, the above "click", and is not necessarily an instruction in a specific format such as a code.
Referring to fig. 3, in some embodiments, obtaining the entered question text (S104) includes:
s1041, at least one preset candidate question text is shown; the candidate question text corresponds to the retrieval element and the answer element.
S1042, determining at least one candidate question text as a question text according to the input editing instruction.
After determining the search element and the answer element, the means for configuring the question may show some predetermined "template questions (candidate question text)" for the search element and the answer element, for the user to determine a desired question text based thereon, and determine a final question text based on the user's selection (i.e., the input editing instruction).
For example, after determining "A credit card" and "offer" as search elements and "C item buy one" as answer elements, the device that configured the question may continue to display the following candidate question text:
[ preferential Activity ] of [ A Credit card ]
Who tells me about what [ A credit cards ] there are [ preferential activities ]
[ A credit card ] can participate in [ preferential activity ]
Thus, the user can directly select one or more candidate question texts as the question text, further simplifying the operation.
Of course, it should be understood that, although each candidate question text above directly includes the text of the corresponding search element ("a credit card" and "offer"), the text of the search element may not be included in the actual candidate question text (question text).
For example, "what is important for what is now the credit card" may be taken as the candidate question text (question text), and then the four words of "preferential activity" are not included in the text.
The candidate question text can be generated by adopting a unified template aiming at a 'class' question, and only specific retrieval elements are changed.
For example, the candidate question text of which of the above [ a credit card ] [ preferential ] is applicable to other credit cards as well. Specifically, from the viewpoint of simple operation, the user may replace the content in "[ what ] of the above candidate question text with other specific elements, for example, [ a credit card ] is replaced with [ E credit card ], which is another way of inputting the search element and the answer element.
As above, "input edit instruction" refers to a command issued by a user to a device configuring a problem in any manner, and is not necessarily an instruction in a specific format such as a code.
In some embodiments, determining at least one candidate question text as a question text according to the entered editing instructions (S1042) includes: and modifying at least one candidate question text according to the input editing instruction, and determining the modified candidate question text as the question text.
In addition to directly using the candidate question text as the question text, the candidate question text may be set to an editable form, so that modification (i.e., an input editing instruction) of the candidate question text by the user may be received, and the modified candidate question text may be used as the question text.
For example, for the candidate question text above "who can tell me [ A credit card ] which [ preferential campaigns ] there are", the text within which to divide by "[ A ] may all be editable, and the position, order, etc. of the content within" [ A ] may also be changed (e.g., by dragging the concept). Thus, for example, the user may modify the text "what" therein to "what" and thus get new candidate question text "who can tell me what [ A credit card ] is there [ preferential activity ].
Of course, it is also possible if the question text is determined by other methods. For example, the text content input by the user may be used as the question text.
In a second aspect, embodiments of the present disclosure provide an apparatus for configuring a problem.
The device for configuring the problem of the embodiment of the disclosure is used for realizing the method for configuring the problem.
Referring to fig. 4, an apparatus of an embodiment of the present disclosure includes:
a search element module 401 configured to obtain at least one input search element;
an answer element module 402 configured to determine, according to the input search elements, a relationship group in which at least one of the preset knowledge bases includes the search elements, and determine at least one other element in the relationship group as an answer element; the knowledge base comprises a plurality of relation groups, each relation group comprising a plurality of elements having a predetermined relation;
a search code module 403 configured to generate a search code; the retrieval code can retrieve answer elements from the knowledge base according to the retrieval elements when being operated;
a question text module 404 configured to obtain an input question text;
an association module 405 configured to associate the retrieval code with the question text.
Wherein it should be understood that each module in the embodiments of the present disclosure is divided according to functions, so each module may correspond to a plurality of physical devices, and the physical devices corresponding to a plurality of different modules may also be the same.
In some embodiments, the relationship group is an entity-attribute value triplet;
each relationship group is composed of entity elements, attribute value elements.
In some embodiments, the search element is any two of an entity element, an attribute value element of one relationship group, and the answer element is the other.
In some embodiments, the answer element module 402 is configured to:
determining at least one relation group comprising the above search elements in a preset knowledge base according to the input search elements, determining at least one other element in the above relation group as a candidate answer element, and displaying the candidate answer element;
and determining at least one candidate answer element as an answer element according to the input selection instruction.
In some embodiments, question text module 404 is configured to:
showing at least one preset candidate question text; the candidate question text corresponds to the retrieval element and the answer element;
and determining at least one candidate question text as a question text according to the input editing instruction.
In some embodiments, determining at least one candidate question text as a question text according to the entered editing instructions comprises:
and modifying at least one candidate question text according to the input editing instruction, and determining the modified candidate question text as the question text.
In a third aspect, referring to fig. 5, an embodiment of the present disclosure provides an electronic device, including:
one or more processors 501;
a memory 502 having one or more programs stored thereon, which when executed by one or more processors cause the one or more processors to implement a method of any of the configuration problems described above;
one or more I/O interfaces 503, coupled between the processor and the memory, are configured to enable information interaction of the processor with the memory.
Wherein the processor 501 is a device having data processing capabilities, including but not limited to a Central Processing Unit (CPU) or the like; memory 502 is a device with data storage capability including, but not limited to, random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically charged erasable programmable read-only memory (EEPROM), FLASH memory (FLASH); an I/O interface (read/write interface) 503 is coupled between the processor 501 and the memory 502 to enable information interaction between the processor 501 and the memory 502, including but not limited to a data Bus (Bus) or the like.
In some embodiments, processor 501, memory 502, and I/O interface 503 are connected to each other and, in turn, other components of the computing device via bus 504.
In a fourth aspect, referring to fig. 6, an embodiment of the present disclosure provides a computer readable medium having a computer program stored thereon, which when executed by a processor implements a method of any one of the configuration problems described above.
In a fifth aspect, embodiments of the present disclosure also provide a computer program product comprising a computer program which, when executed by a processor, implements a method of any one of the above configuration problems.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed cooperatively by several physical components. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted in a generic and descriptive sense only and not for purpose of limitation. In some instances, it will be apparent to one skilled in the art that features, characteristics, and/or elements described in connection with a particular embodiment may be used alone or in combination with other embodiments unless explicitly stated otherwise. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the disclosure as set forth in the appended claims.

Claims (12)

1. A method of configuring a problem, comprising:
acquiring at least one input retrieval element;
determining at least one relation group comprising the search elements in a preset knowledge base according to the input search elements, and determining at least one other element in the relation group as an answer element; the knowledge base comprises a plurality of relation groups, each relation group comprising a plurality of elements with a predetermined relation;
generating a retrieval code; the retrieval code can retrieve answer elements from a knowledge base according to the retrieval elements when being operated;
acquiring an input problem text;
associating the retrieval code with a question text;
wherein the relation group is an entity-attribute value triplet; each relation group consists of entity elements, attribute elements and attribute value elements.
2. The method of claim 1, wherein,
the search element is any two of an entity element, an attribute element and an attribute value element of a relation group, and the answer element is the other.
3. The method of claim 1, wherein the determining that at least one of the preset knowledge bases includes a relation group of the search elements according to the input search elements, and determining at least one other element of the relation group as an answer element includes:
determining at least one relation group comprising the search elements in a preset knowledge base according to the input search elements, determining at least one other element in the relation group as a candidate answer element, and displaying the candidate answer element;
and determining at least one candidate answer element as an answer element according to the input selection instruction.
4. The method of claim 1, wherein the obtaining the entered question text comprises:
showing at least one preset candidate question text; the candidate question text corresponds to the retrieval element and the answer element;
and determining at least one candidate question text as a question text according to the input editing instruction.
5. The method of claim 4, wherein the determining that at least one of the candidate question texts is a question text according to an input editing instruction comprises:
and modifying at least one candidate question text according to the input editing instruction, and determining the modified candidate question text as the question text.
6. An apparatus for configuring a problem, comprising:
a search element module configured to obtain at least one input search element;
the answer element module is configured to determine at least one relation group comprising the search element in a preset knowledge base according to the input search element, and determine at least one other element in the relation group as an answer element; the knowledge base comprises a plurality of relation groups, each relation group comprising a plurality of elements with a predetermined relation;
a search code module configured to generate a search code; the retrieval code can retrieve answer elements from a knowledge base according to the retrieval elements when being operated;
the question text module is configured to acquire an input question text;
an association module configured to associate the search code with a question text;
wherein the relation group is an entity-attribute value triplet; each relation group consists of entity elements, attribute elements and attribute value elements.
7. The apparatus of claim 6, wherein,
the search element is any two of an entity element, an attribute element and an attribute value element of a relation group, and the answer element is the other.
8. The apparatus of claim 6, wherein the answer element module is configured to:
determining at least one relation group comprising the search elements in a preset knowledge base according to the input search elements, determining at least one other element in the relation group as a candidate answer element, and displaying the candidate answer element;
and determining at least one candidate answer element as an answer element according to the input selection instruction.
9. The apparatus of claim 6, wherein the question text module is configured to:
showing at least one preset candidate question text; the candidate question text corresponds to the retrieval element and the answer element;
and determining at least one candidate question text as a question text according to the input editing instruction.
10. The apparatus of claim 9, wherein the determining that at least one of the candidate question texts is a question text according to an input editing instruction comprises:
and modifying at least one candidate question text according to the input editing instruction, and determining the modified candidate question text as the question text.
11. An electronic device, comprising:
one or more processors;
storage means having stored thereon one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method of configuring a problem according to any one of claims 1 to 5;
one or more I/O interfaces coupled between the processor and the memory configured to enable information interaction of the processor with the memory.
12. A computer readable medium having stored thereon a computer program which when executed by a processor implements a method of configuring a problem according to any one of claims 1 to 5.
CN202010478745.4A 2020-05-29 2020-05-29 Method and device for configuring problems, electronic equipment and computer readable medium Active CN111651560B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010478745.4A CN111651560B (en) 2020-05-29 2020-05-29 Method and device for configuring problems, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010478745.4A CN111651560B (en) 2020-05-29 2020-05-29 Method and device for configuring problems, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN111651560A CN111651560A (en) 2020-09-11
CN111651560B true CN111651560B (en) 2023-08-29

Family

ID=72350844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010478745.4A Active CN111651560B (en) 2020-05-29 2020-05-29 Method and device for configuring problems, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN111651560B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1823334A (en) * 2003-05-14 2006-08-23 塞利布罗斯有限公司 Search engine method and apparatus
KR101662450B1 (en) * 2015-05-29 2016-10-05 포항공과대학교 산학협력단 Multi-source hybrid question answering method and system thereof
CN108491433A (en) * 2018-02-09 2018-09-04 平安科技(深圳)有限公司 Chat answer method, electronic device and storage medium
CN110347803A (en) * 2019-07-18 2019-10-18 北京百度网讯科技有限公司 Obtain method and apparatus, the electronic equipment, readable medium read and understand material
CN110895561A (en) * 2019-11-13 2020-03-20 中国科学院自动化研究所 Medical question and answer retrieval method, system and device based on multi-mode knowledge perception

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8370166B2 (en) * 2004-06-15 2013-02-05 Sap Aktiengesellschaft Script-based information retrieval
US20130066968A1 (en) * 2011-08-25 2013-03-14 Charles Ziegler Extendable information management mechanism for collaborative online assessment, problem solving, and related activities
US10824658B2 (en) * 2018-08-02 2020-11-03 International Business Machines Corporation Implicit dialog approach for creating conversational access to web content
US11921761B2 (en) * 2018-11-02 2024-03-05 Optum, Inc. Method, apparatus and computer program product for improving deep question-answering (QA) applications using feedback from retrieval QA applications

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1823334A (en) * 2003-05-14 2006-08-23 塞利布罗斯有限公司 Search engine method and apparatus
KR101662450B1 (en) * 2015-05-29 2016-10-05 포항공과대학교 산학협력단 Multi-source hybrid question answering method and system thereof
CN108491433A (en) * 2018-02-09 2018-09-04 平安科技(深圳)有限公司 Chat answer method, electronic device and storage medium
CN110347803A (en) * 2019-07-18 2019-10-18 北京百度网讯科技有限公司 Obtain method and apparatus, the electronic equipment, readable medium read and understand material
CN110895561A (en) * 2019-11-13 2020-03-20 中国科学院自动化研究所 Medical question and answer retrieval method, system and device based on multi-mode knowledge perception

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于众包问答信息的API使用代码搜索;李宇琨;彭鑫;赵文耘;;计算机应用与软件(07);全文 *

Also Published As

Publication number Publication date
CN111651560A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
AU2018286574B2 (en) Method and system for generating dynamic user experience
CN113094037B (en) Interaction method, development platform, equipment and storage medium for forms and workflows
US10762304B1 (en) Applied artificial intelligence technology for performing natural language generation (NLG) using composable communication goals and ontologies to generate narrative stories
CN105989082B (en) Tabular views generation method and device
CN102915237B (en) The method and system of rewrite data quality rule is required according to user application
US20060010155A1 (en) System that facilitates maintaining business calendars
US20220035847A1 (en) Information retrieval
AU2018260889B2 (en) Dynamic user experience workflow
US10762902B2 (en) Method and apparatus for synthesizing adaptive data visualizations
US20140324839A1 (en) Determining candidate scripts from a catalog of scripts
CN110046153B (en) Account fund checking method, device and equipment
US10417234B2 (en) Data flow modeling and execution
AU2018267674A1 (en) Method and system for organized user experience workflow
CN111651560B (en) Method and device for configuring problems, electronic equipment and computer readable medium
CN108304291A (en) It tests input information and retrieves device and method
US10528575B2 (en) Collaborative search of databases
CN112861060A (en) Page creating method and device, computer equipment and storage medium
US20190163810A1 (en) Search User Interface
US20210174699A1 (en) Systems and methods for unfolding data entry forms for bi-directional learning
CN114564196A (en) VUE framework-based system menu generation method and device and storage medium
da Cruz Advanced tool for aggregation and visualization of atomized data
CN117009476A (en) Service interaction processing method and device and computer equipment
CN117056414A (en) Method, system, computer and storage medium for rapidly displaying data
CN110262962A (en) Generate the method and device of test script
Deo DataSlicer: A Recommendation System for Visual Data Exploration.

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant