CN109710747B - Information processing method and device and electronic equipment - Google Patents

Information processing method and device and electronic equipment Download PDF

Info

Publication number
CN109710747B
CN109710747B CN201910040573.XA CN201910040573A CN109710747B CN 109710747 B CN109710747 B CN 109710747B CN 201910040573 A CN201910040573 A CN 201910040573A CN 109710747 B CN109710747 B CN 109710747B
Authority
CN
China
Prior art keywords
question
answer
template
input information
information
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
CN201910040573.XA
Other languages
Chinese (zh)
Other versions
CN109710747A (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 Orion Star Technology Co Ltd
Original Assignee
Beijing Orion Star 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 Orion Star Technology Co Ltd filed Critical Beijing Orion Star Technology Co Ltd
Priority to CN201910040573.XA priority Critical patent/CN109710747B/en
Publication of CN109710747A publication Critical patent/CN109710747A/en
Application granted granted Critical
Publication of CN109710747B publication Critical patent/CN109710747B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides an information processing method, an information processing device and electronic equipment, wherein the method comprises the following steps: firstly, acquiring input information; acquiring a question-answer template corresponding to the input information; and generating at least one target question-answer pair according to the input information and the question-answer template. According to the information processing method and device and the electronic equipment, the adding efficiency of the questions and the corresponding answers is improved, and therefore the user experience is improved.

Description

Information processing method and device and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of artificial intelligence, in particular to an information processing method and device and electronic equipment.
Background
In the prior art, in a process of interaction between a user and an intelligent device (e.g., a robot), when the intelligent device acquires voice information of the user, the voice information is reported to a server for processing, the server recognizes the voice information through an Automatic Speech Recognition (ASR) model to obtain corresponding text information, and processes the text information through a Natural Language Understanding (NLU) model to perform semantic Understanding, so that response information corresponding to the voice information is determined according to a result of the semantic Understanding, and the intelligent device is controlled to output the response information. When the intelligent device is controlled to output the response information, the NLU model mainly carries out semantic understanding on text information corresponding to the voice information based on the query request pre-stored in the query request library.
However, at present, enterprise users can only edit and add questions and corresponding answers by themselves through a custom question and answer entry configured in a background, which is time-consuming and labor-consuming and reduces user experience.
Disclosure of Invention
The embodiment of the invention provides an information processing method, an information processing device and electronic equipment, which improve the adding efficiency of questions and corresponding answers, and thus improve the user experience.
In a first aspect, an embodiment of the present invention provides an information processing method, where the method may include:
acquiring input information;
acquiring a question-answer template corresponding to the input information;
and generating at least one target question-answer pair according to the input information and the question-answer template.
In a possible implementation manner, the generating at least one target question-answer pair according to the input information and the question-answer template includes:
obtaining a question template in the question and answer template;
determining the content to be supplemented at the empty slot position in the sentence pattern contained in the question template according to the input information;
and generating a corresponding target question according to the determined content and the question template.
In a possible implementation manner, the generating at least one target question-answer pair according to the input information and the question-answer template includes:
obtaining an answer template in the question-answer template;
determining the content to be supplemented at the empty slot position in the sentence pattern contained in the answer template according to the input information;
and generating a corresponding target answer according to the determined content and the answer template.
In a possible implementation manner, the obtaining a question-answer template corresponding to the input information includes:
determining the field type to which the input information belongs;
and acquiring the question-answer template corresponding to the field type to which the input information belongs according to the corresponding relation between the field type and the question-answer template.
In a possible implementation manner, the obtaining the input information further includes: receiving a selection instruction; outputting the input interface of the question answering card selected by the selection instruction according to the selection instruction;
the acquiring of the input information includes: acquiring input information in the input interface;
the obtaining of the question-answer template corresponding to the input information includes: obtaining a question and answer template corresponding to the type of the question and answer card;
and after at least one target question-answer pair is generated according to the input information and the question-answer template, generating a corresponding question-answer card according to the input information and the target question-answer pair corresponding to the input information based on the template of the selected question-answer card.
In a possible implementation manner, before the receiving the first selection instruction, the method further includes:
displaying all levels of classification interfaces of preset question and answer cards, wherein the classification interfaces comprise at least one type of question and answer cards, and each type of question and answer cards comprises at least one level of question and answer cards.
In one possible implementation, the question and answer card further includes: and the front cover display interface comprises at least one of information of a display field, the completion progress of the question and answer card and the modification time of the question and answer card.
In a possible implementation manner, after generating at least one target question-answer pair according to the input information and the question-answer template, the method further includes:
if a first operation instruction is received, outputting the content preview of the question answering card indicated by the first operation instruction according to the first operation instruction; or
If a second operation instruction is received, modifying the content of the question answering card indicated by the second operation instruction according to the second operation instruction; or
And if a third operation instruction is received, deleting the question and answer card indicated by the third operation instruction according to the third operation instruction.
In a possible implementation manner, the obtaining a question-answer template corresponding to the input information includes:
acquiring historical question and answer information;
and training the historical question-answer information to obtain a question-answer template corresponding to the input information.
In one possible implementation, the input information includes text information and/or multimedia information.
In a second aspect, an embodiment of the present invention further provides an information processing apparatus, where the apparatus may include:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein a user acquires input information and acquires a question and answer template corresponding to the input information;
and the processing unit is used for generating at least one target question-answer pair according to the input information and the question-answer template.
In a possible implementation manner, the processing unit is specifically configured to obtain a question template in the question and answer template, and determine, according to the input information, content that an empty slot position in a sentence pattern included in the question template needs to be supplemented; and generating a corresponding target question according to the determined content and the question template.
In a possible implementation manner, the processing unit is specifically configured to obtain an answer template in the question and answer template, determine, according to the input information, content that needs to be supplemented at a slot position in a sentence pattern included in the answer template, and generate a corresponding target answer according to the determined content and the answer template.
In a possible implementation manner, the obtaining unit is specifically configured to determine a field type to which the input information belongs; and acquiring the question-answer template corresponding to the field type to which the input information belongs according to the corresponding relation between the field type and the question-answer template.
In one possible implementation, the apparatus further includes a receiving unit;
the receiving unit is used for receiving a selection instruction;
the processing unit is further used for outputting an input interface of the question and answer card selected by the selection instruction according to the selection instruction;
the acquisition unit is further used for acquiring input information in the input interface; obtaining a question and answer template corresponding to the type of the question and answer card;
and the processing unit is also used for generating a corresponding question and answer card according to the input information and the target question and answer pair corresponding to the input information based on the selected template of the question and answer card.
In a possible implementation manner, the processing unit is further configured to display each level of classification interfaces of preset question and answer cards, where the classification interfaces include at least one type of question and answer card, and each type of question and answer card includes at least one level of question and answer card.
In one possible implementation, the question and answer card further includes: and the front cover display interface comprises at least one of information of a display field, the completion progress of the question and answer card and the modification time of the question and answer card.
In a possible implementation manner, the processing unit is further configured to, if a first operation instruction is received, output a content preview of the quiz card indicated by the first operation instruction according to the first operation instruction; or if a second operation instruction is received, modifying the content of the question answering card indicated by the second operation instruction according to the second operation instruction; or if a third operation instruction is received, deleting the question and answer card indicated by the third operation instruction according to the third operation instruction.
In a possible implementation manner, the obtaining unit is specifically configured to obtain historical question-answering information; and training the historical question-answer information to obtain a question-answer template corresponding to the input information.
In one possible implementation, the input information includes text information and/or multimedia information.
In a third aspect, embodiments of the present application further provide an electronic device, which may include a processor and a memory, wherein,
the memory is to store program instructions;
the processor is configured to read the program instructions in the memory, and execute the information processing method according to any one of the first aspect.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the information processing method according to any one of the above first aspects is executed.
According to the information processing method, the information processing device and the electronic equipment, input information is obtained firstly; acquiring a question-answer template corresponding to the input information; compared with the prior art, the information processing method, the device and the electronic equipment provided by the embodiment of the application do not need to manually compile and add the questions and the corresponding answers by the user, but directly generate at least one target question-answer pair according to the input information and the question-answer template, namely, a plurality of target question-answer pairs can be generated, so that the automation generalization of the target question-answer pairs is realized, the adding efficiency of the questions and the corresponding answers is improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an information processing method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of another information processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the prior art, enterprise users can only edit and add questions and corresponding answers by themselves through a custom question-answer entry configured in a background, time and labor are consumed, and user experience is reduced. In order to improve the adding efficiency of the questions and the corresponding answers, the embodiment of the invention provides an information processing method, which comprises the steps of firstly obtaining input information; acquiring a question-answer template corresponding to the input information; compared with the prior art, the information processing method provided by the embodiment of the application does not need to manually compile and add the questions and the corresponding answers by the user, but directly generates at least one target question-answer pair according to the input information and the question-answer template, namely, a plurality of target question-answer pairs can be generated, the automatic generalization of the target question-answer pairs is realized, the adding efficiency of the questions and the corresponding answers is improved, and the user experience is improved.
The following describes the technical solution of the present invention and how to solve the above technical problems with specific examples. The following specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of an information processing method according to an embodiment of the present invention, where the method may be executed by a server or a controller of an intelligent device. For example, referring to fig. 1, the information processing method may include:
s101, acquiring input information.
Wherein the input information comprises text information and/or multimedia information. The multimedia information may include voice information, audio information, and/or video information. For example, the input information may be a name of a person such as "zhang san", "li si", or a name of a device such as "iphone", "computer", or of course, may also be input information for indicating an age or a location, and may be specifically set according to actual needs, and herein, as to a specific reason for the input information, the embodiment of the present application is not further limited.
Optionally, when acquiring the input information, the input information input by the user may be collected by a microphone of the electronic device, or the input information sent by other devices may be received by a network or a bluetooth, or the input information input by the user may be acquired by a screen of the electronic device.
And S102, acquiring a question and answer template corresponding to the input information.
The question-answer template comprises a question template and an answer template, and the answer template is the answer template corresponding to the question template.
Optionally, the question-answer template may be obtained by training based on historical question-answer information, specifically: historical question and answer information can be obtained firstly; the historical question and answer information is actually asked during the application process of the intelligent device (such as a robot), and after the historical question and answer information is obtained, the historical question and answer information can be trained to obtain a question template and/or an answer template corresponding to the input information, so that the obtained question and answer template is high in practicability, and the accuracy of the question and answer template is improved. Of course, the question and answer template may also be manually prepared by an operator, and the specific implementation manner of the question and answer template is not limited in the embodiment of the present invention.
For example, when the input information is a name of "three-page" or "lie four", etc., the question template corresponding to the input information may be "who XX of your company", "introduce XXX", etc., and the answer template corresponding to the input information should be "XX is XX"; of course, other question templates and answer templates corresponding to the question templates and the answer templates can also be used; when the input information is the device name such as "apple cell phone" or "computer", the question template corresponding to the input information may be "more XX of your company", "i want to know XXX", and the answer template corresponding to the input information should be "XX of XX", and of course, the embodiment of the present application only describes the question template and the answer template corresponding to each other by taking the input information as the person name or the device name as an example, but does not represent that the embodiment of the present application is limited thereto.
Optionally, the number of the question-answering templates corresponding to the same input information may be one, or may be multiple (i.e., two or more). Specifically, the question template and the answer template may be one-to-one, that is, one question template corresponds to one answer template; for example, when the input information is the name of "three-page" or "lie four", the question template corresponding to the input information may be "who is XX of your company", "introduce XXX", and the like; it can also be one-to-many, i.e. one question template corresponds to multiple answer templates, to reach generalization of the answers.
After the input information and the question template corresponding to the input information are acquired through the above S101 and S102, respectively, the following S103 may be executed:
and S103, generating at least one target question-answer pair according to the input information and the question-answer template.
The number of the generated target question-answer pairs may be one, or may be multiple, specifically, the target question and the target answer in the generated target question-answer pair may be in a one-to-one relationship, or may be in a many-to-one relationship, or may be in a one-to-many relationship, or may be in a many-to-many relationship, where, as to the specific number of at least one target question-answer pair, the embodiment of the present invention is not particularly limited.
After the input information and the question-answer template corresponding to the input information are acquired through the above S101 and S102, at least one target question-answer pair may be generated according to the input information and the question-answer template. Wherein, each target question-answer pair comprises a target question and a target answer.
In detail, when at least one target question-answer pair is generated, a target question may be generated according to the input information and a question template in the question-answer template, and a target answer may be generated according to the input information and an answer template in the question-answer template, where the target question and the corresponding target answer are one target question-answer pair.
It should be noted that, after at least one target question-answer pair is generated according to the input information and the question-answer template, the generated at least one target question-answer pair may be further stored in a pre-configured question-answer library, so that the pre-configured question-answer library is enriched.
The information processing method provided by the embodiment of the invention comprises the steps of firstly acquiring input information; acquiring a question-answer template corresponding to the input information; compared with the prior art, the information processing method provided by the embodiment of the application does not need to manually compile and add the questions and the corresponding answers by the user, but directly generates at least one target question-answer pair according to the input information and the question-answer template, namely, a plurality of target question-answer pairs can be generated, the automatic generalization of the target question-answer pairs is realized, the adding efficiency of the questions and the corresponding answers is improved, and the user experience is improved.
Based on the embodiment shown in fig. 1, it should be noted that in the above S102, at least two obtaining manners may be included when obtaining the question-answering template corresponding to the input information, and the following will describe in detail regarding the two possible obtaining manners.
In a possible implementation manner, when a question-answer template corresponding to input information is obtained, a field type to which the input information belongs may be determined first; and then, according to the corresponding relation between the field type and the question-answer template, obtaining the question-answer template corresponding to the field type to which the input information belongs, thereby obtaining the question-answer template corresponding to the input information.
In general, different field types correspond to different question and answer templates. For example, when the input information is a name of a person such as "zhang san" or "li si", the field type to which the input information belongs is a name of the person, and the corresponding question and answer template is a question and answer template related to the person; when the input information is the equipment name such as 'apple mobile phone' or 'computer', the field type of the input information is the equipment name, and the corresponding question and answer template is the question and answer template related to the equipment. Of course, the field category of the person name may be further subdivided, for example, the person name is further divided into field categories such as high-level management and general staff.
In this possible implementation manner, when the question and answer template corresponding to the input information is obtained, the field type to which the input information belongs may be determined according to the input information, and the question and answer template corresponding to the field type to which the input information belongs may be obtained in the corresponding relationship according to the field type to which the input information belongs and the preset corresponding relationship between the field type and the question and answer template, so as to obtain the question and answer template corresponding to the input information.
In another possible implementation manner, when the question-answer template corresponding to the input information is obtained, a selection instruction input by a user may be received first; and according to the selection instruction, outputting an input interface of the question and answer card selected by the selection instruction; acquiring input information in an input interface; and then obtaining the question and answer template corresponding to the type of the question and answer card, thereby obtaining the question and answer template corresponding to the input information.
It should be noted that, in this possible implementation manner, before receiving the first selection instruction input by the user, each level classification interface of the preset question and answer cards may be displayed first, where the classification interface includes at least one category of question and answer cards, and each category includes at least one level of question and answer cards.
The number of the question and answer cards of at least one category may be one or multiple, and may be specifically set according to actual needs, where the number of the question and answer cards of at least one category is not specifically limited in the embodiments of the present invention. Similarly, the number of the at least one level of quiz cards included in each category may be one, or may also be multiple, and may be specifically set according to actual needs, where the number of the at least one level of quiz cards is not specifically limited in the embodiment of the present invention.
For example, the category included in the classification interface may be an enterprise scenario category, or an exhibition scenario category, and of course, other scenario categories may also be used, and here, the category is merely used as the enterprise scenario category or the exhibition scenario category for illustration, but the present invention is not limited thereto. Further, when the category included in the classification interface is an enterprise scene category, the question and answer cards included in the enterprise scene category may include a first-level question and answer card, a second-level question and answer card, and a third-level question and answer card, for example, the first-level question and answer card may be an enterprise, the second-level question and answer card may be a "character" and a "product", and the third-level question and answer card may be a "high management" or a "employee", and the like. When the category included in the classification interface is the category of the exhibition scene, the question and answer cards included in the category of the exhibition scene may also include a first-level question and answer card, a second-level question and answer card, and a third-level question and answer card.
When all levels of classification interfaces of the preset question and answer cards are displayed, all levels of classification interfaces of the preset question and answer cards can be displayed for a user in a list mode to be checked by the user, a selection instruction input by the user is received, the selection instruction is output according to the selection instruction, the input interface of the selected question and answer card is output, input information input by the user is obtained through the input interface, then after the input information input by the user in the input interface is obtained, a question template corresponding to the type of the question and answer card is obtained, and therefore the question and answer template corresponding to the input information is obtained.
Taking the category included in the classification interface as an enterprise scene category as an example, the question and answer cards included in the enterprise scene category may include a first-level question and answer card, a second-level question and answer card, and a third-level question and answer card, where the first-level question and answer card may be an enterprise, the second-level question and answer card may be a "person" and a "product", the third-level question and answer card may be a "high-management" or a "employee", and when the user views the question and answer card in the enterprise scene category, if the user selects the third-level question and answer card "high-management", the input interface of the corresponding third-level question and answer card may be output at this time, the user may input the input information, such as "zhang san" at the position corresponding to the key field (such as name, age, birthday, graduation school, personal profile, and the like) in the input interface of the third-level question and answer card, so that the input information "zhang san" and the problem template corresponding to the type of the third-, and acquiring a question and answer template corresponding to the input information Zhang III.
After the question-answer template corresponding to the input information is acquired through the two possible implementation modes, at least one target question-answer pair can be generated according to the input information and the question-answer template, and the target question and the target answer corresponding to the target question can be generated respectively when the at least one target question-answer pair is generated.
Optionally, when generating the target question, a question template in the question and answer template may be obtained first; determining the content to be supplemented at the empty slot position in the sentence pattern contained in the problem template according to the input information; and generating a corresponding target question according to the determined content and the question template.
The content to be supplemented is input information and/or attribute information corresponding to the input information. That is, the content to be supplemented may be only the input information, may be only the attribute information corresponding to the input information, or may be the input information and the attribute information corresponding to the input information. In specific implementation, the content to be supplemented may be determined according to description information of the empty slot position in the sentence included in the question template, where the description information describes a correspondence between the empty slot position and the content to be supplemented (the input information and/or attribute information corresponding to the input information), that is, the content to be supplemented at the empty slot position may be determined in the input information and/or the attribute information corresponding to the input information through the description information of the empty slot position. For example, when the input information is a name of a person such as "three pages" or "four plums", the attribute information corresponding to the input information may be attribute information such as an age, an entry time, a height, and a position of the person such as "three pages" or "four plums"; when the input information is the device name of "apple mobile phone" or "computer", the attribute information corresponding to the input information may be the price, sales volume, production place and other attribute information of "apple mobile phone" or "computer".
When the content needing to be supplemented is input information, the input information can be directly supplemented in empty slot positions in the sentence pattern contained in the question template, so that a target question corresponding to the input information is generated; when the content to be supplemented is the attribute information corresponding to the input information or the attribute information corresponding to the input information and the input information, the attribute information corresponding to the input information may be obtained first, and then the attribute information corresponding to the input information or the attribute information corresponding to the input information and the input information is supplemented to the empty slot position in the sentence pattern included in the question template, so as to generate the target question corresponding to the input information.
For example, if the input information is "zhang san" and the corresponding attribute information is "boss", the content to be supplemented at the empty slot position in the sentence pattern included in the question template may be determined according to the input information, and if the sentence pattern included in the question template is who XX of your company, where XX represents the empty slot position, the content to be supplemented at the empty slot position may be determined as "zhang san" of the input information, or "zhang san" of the attribute information "boss", and the input information "zhang san" or "zhang san" of the attribute information "boss" is supplemented at the empty slot position in the sentence pattern included in the question template, thereby generating two target questions, which are "who zhang san of your company" and "who is your company boss".
Optionally, when generating a target answer corresponding to a target question, an answer template in the question-answer template may be obtained first; determining the content to be supplemented at the empty slot position in the sentence pattern contained in the answer template according to the input information; and generating a corresponding target answer according to the determined content and the answer template.
The content to be supplemented is attribute information and/or input information corresponding to the input information. That is, the content to be supplemented may be only the attribute information corresponding to the input information, may be only the input information, and may be, of course, the attribute information corresponding to the input information and the input information. In specific implementation, the content to be supplemented may be determined according to description information of the empty slot position in the sentence included in the answer template, where the description information describes a correspondence between the empty slot position and the content to be supplemented (attribute information and/or input information corresponding to the input information), that is, the content to be supplemented at the empty slot position may be determined in the attribute information and/or the input information corresponding to the input information according to the description information of the empty slot position.
When the content needing to be supplemented is input information, the input information can be directly supplemented in empty slot positions in a sentence pattern contained in an answer template, so that a target answer corresponding to the input information is generated; when the content to be supplemented is the attribute information corresponding to the input information or the attribute information and the input information corresponding to the input information, the attribute information corresponding to the input information may be obtained first, and then the attribute information corresponding to the input information or the attribute information and the input information corresponding to the input information are supplemented to the empty slot position in the sentence pattern included in the answer template, so as to generate the target answer corresponding to the input information.
For example, if the input information is "zhang san" and the corresponding attribute information is "boss", the content that the empty slot position in the sentence pattern included in the question template needs to be supplemented may be determined according to the input information, and if the sentence pattern included in the question template is XX, where XX denotes the empty slot position, the content that the empty slot position needs to be supplemented may be determined as the input information "zhang san" attribute information "boss, or" zhang san ", and the input information" zhang san ", or" zhang san "attribute information" boss "is supplemented to the empty slot position in the sentence pattern included in the question template, thereby generating two target answers, which are" boss "and" zhang san ", and if the sentence pattern included in the question template is XX, the input information" zhang san ", or" zhang san "attribute information" boss "is supplemented to the empty slot position in the sentence pattern included in the question template, two target answers, "three open is boss," and "boss is three open" may also be generated.
It should be noted that, the empty slots are set in the question templates and the answer templates, and the purpose is as follows: the content that the empty slot position needs to be supplemented can be determined according to the input information, when the input information is different, the content that the empty slot position needs to be supplemented can be different, so that different target question templates and target answer templates can be generated according to the different content that the empty slot position of the question template and the empty slot position of the answer template need to be supplemented, the automation generalization of the target question-answer pair is realized, the adding efficiency of the question and the corresponding answer is improved, and the user experience is improved.
In addition, it should be noted that, when the question and answer template corresponding to the input information is obtained through the second possible implementation manner, the selection instruction is received first; and according to the selection instruction, outputting an input interface of the question and answer card selected by the selection instruction; acquiring input information in an input interface; then, obtaining a question-answer template corresponding to the type of the question-answer card, and after generating at least one target question-answer pair according to the input information and the question-answer template, the method may further include:
and generating a corresponding question and answer card according to the input information and the target question and answer pair corresponding to the input information based on the template of the selected question and answer card.
The generated question-answer card may include input information and a target question-answer pair corresponding to the input information. It should be noted that, in generating a corresponding question and answer sheet based on input information and a target question and answer pair corresponding to the input information, the purpose is: the generated question answering card can be displayed to the user through a screen for the user to view.
Optionally, after at least one target question-answer pair is generated according to the input information and the question-answer template, corresponding operations may be performed on the content of the question-answer card indicated by the operation instruction according to the operation instruction input by the user. Before executing corresponding operations on the content of the question answering card indicated by the operation instructions according to the operation instructions input by the user, the operation instructions input by the user need to be received. For example, when an operation instruction input by a user is received, the trigger operation of the user on the corresponding operation key may be received through an operation key arranged on the display interface of the question answering card, so as to receive the operation instruction input by the user, and thus, the corresponding operation may be performed according to the content of the question answering card indicated by the operation instruction. For example, the operation may be a content preview operation of the quiz card, a content modification operation of the quiz card, or a quiz card deletion operation.
For example, the following steps are carried out: if the first operation instruction is received, the content preview of the question answering card indicated by the first operation instruction is output according to the first operation instruction, so that the content of the question answering card indicated by the first operation instruction can be previewed according to the first operation instruction.
For another example, if the second operation instruction is received, the content of the question and answer card indicated by the second operation instruction is modified according to the second operation instruction, so that the content of the question and answer card indicated by the second operation instruction can be modified according to the second operation instruction, so as to update the content of the question and answer card indicated by the second operation instruction. In implementation, after receiving the second operation instruction, the content modification interface corresponding to the question and answer card indicated by the second operation instruction is output, and the user can modify the content of the question and answer card on the content modification interface.
For another example, if the third operation instruction is received, the question and answer card indicated by the third operation instruction is deleted according to the third operation instruction, so that the question and answer card indicated by the third operation instruction can be deleted according to the third operation instruction, so as to delete the unnecessary question and answer card.
In addition, it should be noted that, based on the template of the selected question-answer sheet, the generated question-answer sheet further includes, according to the input information and the target question-answer pair corresponding to the input information: and the front cover display interface comprises at least one of information of a display field, the completion progress of the question answering card and the modification time of the question answering card.
For example, the display field may be the input information itself (for example, the display field displays part of the input information or all of the input information), or may be a field for uniquely identifying the input information, and may be specifically set according to actual needs, where, as to the specific reason for the display field, the embodiment of the present application is not particularly limited. The completion progress of the quiz card can be used for indicating the perfection degree of the quiz card, and the modification time of the quiz card can be used for indicating the time when the user modifies the quiz card last time.
Fig. 2 is a schematic structural diagram of an information processing apparatus 20 according to an embodiment of the present invention, where the information processing apparatus 20 may be located in an intelligent device, for example, referring to fig. 2, the information processing apparatus 20 may include:
the acquisition unit 201 acquires input information and acquires a question and answer template corresponding to the input information.
The processing unit 202 is configured to generate at least one target question-answer pair according to the input information and the question-answer template.
Optionally, the processing unit 202 is specifically configured to obtain a question template in the question and answer template, and determine, according to the input information, content that an empty slot position in a sentence pattern included in the question template needs to be supplemented; and generating a corresponding target question according to the determined content and the question template.
Optionally, the processing unit 202 is specifically configured to obtain an answer template in the question-answer template, determine, according to the input information, content that needs to be supplemented at an empty slot position in a sentence included in the answer template, and generate a corresponding target answer according to the determined content and the answer template.
Optionally, the obtaining unit 201 is specifically configured to determine a field type to which the input information belongs; and acquiring the question-answer template corresponding to the field type to which the input information belongs according to the corresponding relation between the field type and the question-answer template.
Optionally, the information processing apparatus 20 may further include a receiving unit 203, for example, please refer to fig. 3, and fig. 3 is a schematic structural diagram of another information processing apparatus 20 according to an embodiment of the present invention. The receiving unit 203 is configured to receive a selection instruction.
The processing unit 202 is further configured to output an input interface of the question and answer card selected by the selection instruction according to the selection instruction.
An acquisition unit 201, configured to acquire input information in an input interface; and obtaining a question and answer template corresponding to the type of the question and answer card.
The processing unit 202 is further configured to generate a corresponding question and answer card according to the input information and the target question and answer pair corresponding to the input information based on the selected template of the question and answer card.
Optionally, the processing unit 202 is further configured to display each level of classification interfaces of preset question and answer cards, where the classification interfaces include at least one type of question and answer card, and each type includes at least one level of question and answer card.
Optionally, the question and answer card further comprises: and the front cover display interface comprises at least one of information of a display field, the completion progress of the question answering card and the modification time of the question answering card.
Optionally, the processing unit 202 is further configured to, if the first operation instruction is received, output a content preview of the question answering card indicated by the first operation instruction according to the first operation instruction; or if a second operation instruction is received, modifying the content of the question answering card indicated by the second operation instruction according to the second operation instruction; or if the third operation instruction is received, deleting the question answering card indicated by the third operation instruction according to the third operation instruction.
Optionally, the obtaining unit 201 is specifically configured to obtain historical question answering information; and training the historical question-answer information to obtain a question-answer template corresponding to the input information.
Optionally, the input information comprises text information and/or multimedia information.
The information processing apparatus 20 shown in the embodiment of the present invention can execute the technical solution of the information processing method shown in any one of the above embodiments, and the implementation principle and the beneficial effect thereof are similar to those of the information processing method, and are not described herein again.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device may be a controller of an intelligent device or a server, and a specific implementation of the electronic device is not limited in the embodiment of the present invention. As an example, referring to fig. 4, the electronic device 40 may include a processor 401 and a memory 402, wherein,
the memory 402 is used to store program instructions.
The processor 401 is configured to read the program instructions in the memory 402 and execute the information processing method according to any of the embodiments described above according to the program instructions in the memory 402.
The electronic device 40 shown in the embodiment of the present invention may execute the technical solution of the information processing method shown in any one of the above embodiments, and the implementation principle and the beneficial effect of the electronic device are similar to those of the information processing method, and are not described herein again.
Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the technical solution of the information processing method shown in any of the above embodiments can be executed, and the implementation principle and the beneficial effects of the computer program are similar to those of the information processing method, and are not described herein again.
The processor in the above embodiments may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off the shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a Random Access Memory (RAM), a flash memory, a read-only memory (ROM), a programmable ROM, an electrically erasable programmable memory, a register, or other storage media that are well known in the art. The storage medium is located in a memory, and a processor reads instructions in the memory and combines hardware thereof to complete the steps of the method.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (20)

1. An information processing method characterized by comprising:
acquiring input information;
acquiring a question-answer template corresponding to the input information, wherein the question-answer template comprises a question template and an answer template, and the answer template is the answer template corresponding to the question template;
generating at least one target question-answer pair according to the input information and the question-answer template;
the obtaining of the question-answer template corresponding to the input information includes: determining the field type to which the input information belongs; acquiring a question-answer template corresponding to the field type to which the input information belongs according to the corresponding relation between the field type and the question-answer template;
or;
before the acquiring the input information, the method further comprises the following steps: receiving a selection instruction, and outputting an input interface of the question and answer card selected by the selection instruction according to the selection instruction; the acquiring of the input information includes: acquiring input information in the input interface; the obtaining of the question and answer template corresponding to the input information includes: and obtaining a question and answer template corresponding to the type of the question and answer card.
2. The method of claim 1, wherein generating at least one target question-answer pair based on the input information and the question-answer template comprises:
obtaining a question template in the question and answer template;
determining the content to be supplemented at the empty slot position in the sentence pattern contained in the question template according to the input information;
and generating a corresponding target question according to the determined content and the question template.
3. The method of claim 1, wherein generating at least one target question-answer pair based on the input information and the question-answer template comprises:
obtaining an answer template in the question-answer template;
determining the content to be supplemented at the empty slot position in the sentence pattern contained in the answer template according to the input information;
and generating a corresponding target answer according to the determined content and the answer template.
4. The method of claim 1,
after generating at least one target question-answer pair according to the input information and the question-answer template, the method further comprises the following steps: and generating a corresponding question and answer card according to the input information and the target question and answer pair corresponding to the input information based on the selected template of the question and answer card.
5. The method of claim 4, wherein prior to receiving the first selection instruction, further comprising:
displaying all levels of classification interfaces of preset question and answer cards, wherein the classification interfaces comprise at least one type of question and answer cards, and each type of question and answer cards comprises at least one level of question and answer cards.
6. The method of claim 4, wherein the questionnaire further comprises: and the front cover display interface comprises at least one of information of a display field, the completion progress of the question and answer card and the modification time of the question and answer card.
7. The method according to any one of claims 4-6, wherein after generating at least one target question-answer pair according to the input information and the question-answer template, further comprising:
if a first operation instruction is received, outputting the content preview of the question answering card indicated by the first operation instruction according to the first operation instruction; or
If a second operation instruction is received, modifying the content of the question answering card indicated by the second operation instruction according to the second operation instruction; or
And if a third operation instruction is received, deleting the question and answer card indicated by the third operation instruction according to the third operation instruction.
8. The method according to claim 1, wherein the obtaining of the question-answering template corresponding to the input information comprises:
acquiring historical question and answer information;
and training the historical question-answer information to obtain a question-answer template corresponding to the input information.
9. The method according to any of claims 1-6, 8, characterized in that the input information comprises text information and/or multimedia information.
10. An information processing apparatus characterized by comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring input information and acquiring a question-answer template corresponding to the input information, the question-answer template comprises a question template and an answer template, and the answer template is the answer template corresponding to the question template;
the processing unit is used for generating at least one target question-answer pair according to the input information and the question-answer template;
the acquiring unit is specifically configured to determine a field type to which the input information belongs; acquiring a question-answer template corresponding to the field type to which the input information belongs according to the corresponding relation between the field type and the question-answer template;
or;
the information processing apparatus further includes a receiving unit configured to receive a selection instruction;
the processing unit is further used for outputting an input interface of the question and answer card selected by the selection instruction according to the selection instruction; and
the acquisition unit is further used for acquiring input information in the input interface; and obtaining a question and answer template corresponding to the type of the question and answer card.
11. The apparatus of claim 10,
the processing unit is specifically configured to obtain a question template in the question and answer template, and determine, according to the input information, content to be supplemented at an empty slot position in a sentence pattern included in the question template; and generating a corresponding target question according to the determined content and the question template.
12. The apparatus of claim 10,
the processing unit is specifically configured to obtain an answer template in the question and answer template, determine, according to the input information, content that needs to be supplemented at an empty slot position in a sentence pattern included in the answer template, and generate a corresponding target answer according to the determined content and the answer template.
13. The apparatus of claim 10,
and the processing unit is also used for generating a corresponding question and answer card according to the input information and the target question and answer pair corresponding to the input information based on the selected template of the question and answer card.
14. The device according to claim 13, wherein the processing unit is further configured to display each level of classification interfaces of preset question and answer cards, where the classification interfaces include at least one category of question and answer cards, and each category includes at least one level of question and answer cards.
15. The apparatus of claim 13, wherein the questionnaire further comprises: and the front cover display interface comprises at least one of information of a display field, the completion progress of the question and answer card and the modification time of the question and answer card.
16. The device according to any one of claims 13 to 15, wherein the processing unit is further configured to, if a first operation instruction is received, output a content preview of the quiz card indicated by the first operation instruction according to the first operation instruction; or if a second operation instruction is received, modifying the content of the question answering card indicated by the second operation instruction according to the second operation instruction; or if a third operation instruction is received, deleting the question and answer card indicated by the third operation instruction according to the third operation instruction.
17. The apparatus according to claim 10, wherein the obtaining unit is specifically configured to obtain historical question-answering information; and training the historical question-answer information to obtain a question-answer template corresponding to the input information.
18. The apparatus according to any of claims 10-15, 17, wherein the input information comprises text information and/or multimedia information.
19. An electronic device comprising a processor and a memory, wherein,
the memory is to store program instructions;
the processor is configured to read the program instructions in the memory and execute the information processing method according to any one of claims 1 to 9 according to the program instructions in the memory.
20. A computer-readable storage medium, characterized in that,
the computer-readable storage medium has stored thereon a computer program that, when executed by a processor, performs the information processing method of any one of claims 1 to 9.
CN201910040573.XA 2019-01-16 2019-01-16 Information processing method and device and electronic equipment Active CN109710747B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910040573.XA CN109710747B (en) 2019-01-16 2019-01-16 Information processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910040573.XA CN109710747B (en) 2019-01-16 2019-01-16 Information processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109710747A CN109710747A (en) 2019-05-03
CN109710747B true CN109710747B (en) 2021-04-06

Family

ID=66261558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910040573.XA Active CN109710747B (en) 2019-01-16 2019-01-16 Information processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109710747B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113095056B (en) * 2021-03-17 2024-04-12 阿里巴巴创新公司 Generation method, processing method, device, electronic equipment and medium
CN113505238A (en) * 2021-07-09 2021-10-15 北京小谛机器人科技有限公司 Semantic map construction method and device
CN113591158A (en) * 2021-07-23 2021-11-02 新奥数能科技有限公司 Method and device for processing newly added information of energy enterprise, computer equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794233A (en) * 2005-12-28 2006-06-28 刘文印 Network user interactive asking answering method and its system
CN101986293A (en) * 2010-09-03 2011-03-16 百度在线网络技术(北京)有限公司 Method and equipment for displaying search answer information on search interface
CN108255826A (en) * 2016-12-28 2018-07-06 中兴通讯股份有限公司 A kind of common question and answer are to FAQ generation methods, apparatus and system
CN108874915A (en) * 2018-05-30 2018-11-23 苏州思必驰信息科技有限公司 Method of Knowledge Organization, system, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7895240B2 (en) * 2005-02-03 2011-02-22 General Electric Company Systems and methods for managing information
CN104050256B (en) * 2014-06-13 2017-05-24 西安蒜泥电子科技有限责任公司 Initiative study-based questioning and answering method and questioning and answering system adopting initiative study-based questioning and answering method
CN106991112B (en) * 2016-11-07 2021-05-25 创新先进技术有限公司 Information query method and device
CN107832374A (en) * 2017-10-26 2018-03-23 平安科技(深圳)有限公司 Construction method, electronic installation and the storage medium in standard knowledge storehouse

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794233A (en) * 2005-12-28 2006-06-28 刘文印 Network user interactive asking answering method and its system
CN101986293A (en) * 2010-09-03 2011-03-16 百度在线网络技术(北京)有限公司 Method and equipment for displaying search answer information on search interface
CN108255826A (en) * 2016-12-28 2018-07-06 中兴通讯股份有限公司 A kind of common question and answer are to FAQ generation methods, apparatus and system
CN108874915A (en) * 2018-05-30 2018-11-23 苏州思必驰信息科技有限公司 Method of Knowledge Organization, system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109710747A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN109360550B (en) Testing method, device, equipment and storage medium of voice interaction system
CN109710747B (en) Information processing method and device and electronic equipment
CN107220228A (en) One kind teaching recorded broadcast data correction device
US11094215B2 (en) Internet-based recorded course learning following system and method
CN108519998B (en) Problem guiding method and device based on knowledge graph
US11288976B2 (en) Language fluency system
CN109035930B (en) Recorded broadcast data recommendation method based on Internet
CN109815448B (en) Slide generation method and device
CN111223015B (en) Course recommendation method and device and terminal equipment
CN109472007B (en) Automatic question creating method and device for medical questionnaire, electronic equipment and storage medium
CN109214501A (en) The method and apparatus of information for identification
CN108958731A (en) A kind of Application Program Interface generation method, device, equipment and storage medium
CN109885727A (en) Data method for pushing, device, electronic equipment and system
CN110232920A (en) Method of speech processing and device
CN114244896A (en) Message pushing method and device, electronic equipment and storage medium
CN112328616A (en) Data updating method, device and storage medium
CN113077147A (en) Intelligent student course pushing method and system and terminal equipment
CN112598547A (en) Education topic generation method and device based on automatic production line and electronic equipment
JP2015206835A (en) learning system
CN114913042A (en) Teaching courseware generation method and device, electronic equipment and storage medium
JP2018101249A (en) Robot, robot system, server, information collection method, and program
KR20190070683A (en) Apparatus and method for constructing and providing lecture contents
CN114745594A (en) Method and device for generating live playback video, electronic equipment and storage medium
CN116136880A (en) Data display method and device, electronic equipment and storage medium
CN109584012B (en) Method and device for generating item push information

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