Nothing Special   »   [go: up one dir, main page]

CN109460823A - Construction method and its device, electronic equipment, the computer-readable medium of knowledge base - Google Patents

Construction method and its device, electronic equipment, the computer-readable medium of knowledge base Download PDF

Info

Publication number
CN109460823A
CN109460823A CN201811071747.0A CN201811071747A CN109460823A CN 109460823 A CN109460823 A CN 109460823A CN 201811071747 A CN201811071747 A CN 201811071747A CN 109460823 A CN109460823 A CN 109460823A
Authority
CN
China
Prior art keywords
answer
basic
answers
extension
extended
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.)
Pending
Application number
CN201811071747.0A
Other languages
Chinese (zh)
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.)
Alibaba China Co Ltd
Original Assignee
Guangzhou Shenma Mobile Information 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 Guangzhou Shenma Mobile Information Technology Co Ltd filed Critical Guangzhou Shenma Mobile Information Technology Co Ltd
Priority to CN201811071747.0A priority Critical patent/CN109460823A/en
Publication of CN109460823A publication Critical patent/CN109460823A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/02Knowledge representation; Symbolic representation
    • G06N5/022Knowledge engineering; Knowledge acquisition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/02Knowledge representation; Symbolic representation
    • G06N5/027Frames

Landscapes

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

Abstract

This application discloses a kind of construction method of knowledge base and its device, electronic equipment, computer-readable mediums.One specific embodiment of this method comprises determining that sample problem and its corresponding basic answer;According to the answer extension rule of setting, the basic answer is extended and determines multiple extension answers;According to the sample problem, the corresponding relationship of the basic answer and the extension answer, knowledge base is constructed.The specific embodiment has effectively achieved online when providing a user answer, can provide the answer of various dimensions to carry out high-quality displaying.

Description

Knowledge base construction method and device, electronic equipment and computer readable medium
Technical Field
The present application relates to the field of internet, and in particular, to a method and an apparatus for constructing a knowledge base, an electronic device, and a computer-readable medium.
Background
Passing a question and an answer to the question is an effective way for people to obtain real-world information. Meanwhile, with the development of internet technology and the rapid development of internet applications, people increasingly rely on internet networks to obtain information. At present, related information is searched through a search platform to obtain information in a question-answering mode, and particularly, problems are searched, presented, answered, browsed or added in a question-answering community, which becomes an important mode for interactive information communication among users. The common intelligent question-answering communities know the hundredth, search questions, surf love questions and the like.
How to meet the user requirements and show the user requirements is one of the core problems of the intelligent question-answering community.
Generally, the display sequence of the answer content under each question in the intelligent question-answering community is mainly based on a certain evaluation dimension, for example, the following two common ways are provided:
1) sorting by time only of answering the question, i.e. answers presented first in the ranking are closer in time to the time of the current search;
2) and (4) sorting according to the number of good comments obtained by answers, namely, the more the answers under the same question obtain the number of agreements of the user, the more the answers are displayed in the question-answer community.
However, both approaches have their deficiencies, and for the first approach, it usually takes longer for the user to find the desired answer because the answer presented at the front is not necessarily the one that best matches the question, and the deficiencies are more pronounced as the number of answers increases; with respect to the second approach, sorting the responses based on the number of endorsements is easily attacked by spam users, so that the advertising content in the advertisements that are directly beneficial to spam users will be pushed to the front of the display position, thereby causing misleading to the users viewing the responses.
In summary, prior art solutions do not present a truly good answer to the user.
Disclosure of Invention
The present application aims to provide a method and an apparatus for constructing a knowledge base, an electronic device, and a computer-readable medium, which are used to solve the above technical problems in the prior art.
In a first aspect, an embodiment of the present application provides a method for constructing a knowledge base, including:
determining a sample question and a corresponding basic answer;
according to a set answer extension rule, extending the basic answers to determine a plurality of extension answers;
and constructing a knowledge base according to the corresponding relation among the sample question, the basic answer and the extension answer.
In a second aspect, an embodiment of the present application provides a method for determining an answer, including:
acquiring a real-time problem which is currently put forward online;
determining a sample question matched with the real-time question from a knowledge base established off line;
obtaining a basic answer and an extension answer corresponding to the sample question according to the corresponding relation among the sample question, the basic answer and the extension answer;
and screening out answers aiming at the real-time questions from the basic answers and the extended answers.
In a third aspect, an embodiment of the present application provides an apparatus for constructing a knowledge base, including:
the answer determining unit is used for determining the question and the corresponding basic answer;
the answer extension unit is used for extending the basic answers according to a set answer extension rule to determine a plurality of extension answers;
and the construction unit is used for constructing a knowledge base according to the corresponding relation among the questions, the basic answers and the extension answers.
In a fourth aspect, an embodiment of the present application provides an apparatus for determining an answer, including:
the real-time problem acquisition unit is used for acquiring the real-time problem which is currently proposed online;
the sample question matching unit is used for determining a sample question matched with the real-time question from a knowledge base established off line;
the answer obtaining unit is used for obtaining a basic answer and an extension answer corresponding to the sample question according to the corresponding relation among the sample question, the basic answer and the extension answer;
and the answer screening unit is used for screening out answers aiming at the real-time questions from the basic answers and the extended answers.
In a fifth aspect, an embodiment of the present application provides an electronic device, including:
one or more processors;
a computer readable medium configured to store one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method as described in any of the embodiments.
In a sixth aspect, the present application provides a computer-readable medium, on which a computer program is stored, which when executed by a processor implements the method as described in any one of the embodiments.
In the method and the device for constructing the knowledge base, the electronic equipment and the computer readable medium, the sample question and the corresponding basic answer are determined; according to a set answer extension rule, extending the basic answers to determine a plurality of extension answers; and constructing a knowledge base according to the corresponding relation among the sample question, the basic answer and the extension answer, so that when the answer is provided for the user on line, a multi-dimensional answer can be provided for high-quality display.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is a schematic structural diagram of a method for constructing a knowledge base according to an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a construction method of a knowledge base according to a second embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for determining answers in the third embodiment of the present application;
FIG. 4 is a schematic structural diagram of a device for constructing a knowledge base according to a fourth embodiment of the present application;
FIG. 5 is a schematic structural diagram of a device for constructing a knowledge base according to a fifth embodiment of the present application;
FIG. 6 is a schematic structural diagram of a device for constructing a knowledge base according to a sixth embodiment of the present application;
FIG. 7 is a schematic structural diagram of a device for constructing a knowledge base according to a seventh embodiment of the present application;
FIG. 8 is a schematic diagram of an apparatus for determining an answer according to an eighth embodiment of the present application;
FIG. 9 is a schematic structural diagram of an electronic device according to a ninth embodiment of the present application;
fig. 10 is a hardware structure of an electronic device in a tenth embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
FIG. 1 is a schematic structural diagram of a method for constructing a knowledge base according to an embodiment of the present application; as shown in fig. 1, it includes:
s101, determining a sample question and a corresponding basic answer;
in this embodiment, the framework of the knowledge base may be completed offline. When the knowledge base is constructed off-line, the constructed data of the knowledge base comprises two entities, namely the sample question and the answer of the sample question, and meanwhile, in order to provide a response meeting the requirement for a user when the knowledge base is used on line, the association relationship between the sample question and the answer is required to be included. Further, in a specific application scenario, the knowledge base includes question-answer data pairs, and a question-answer data pair includes one or more answers corresponding to a question and includes an index relationship between the question and the answers.
In this embodiment, the sample questions and the basic answers may be collected in real time by a background server of the intelligent question and answer community, and stored on the background server or other data servers. Further, the sample questions and the basic answers can be generated based on the sample questions and the basic answers existing in the knowledge base, or the reasoning sample questions and the reasoning basic answers can be obtained through reasoning of the knowledge base. In particular, the reasoning described above can be performed by an inference engine of RDFS and OWL rule sets. In other words, the sample questions include the collected sample questions and the inferred sample questions inferred based on the collected sample questions, and correspondingly, the basic answers include the collected basic answers and the inferred basic answers inferred based on the collected basic answers.
In this embodiment, the basic answer is a comprehensive and generalized answer that can satisfy the question and answer requirements of most users.
S102, expanding the basic answers according to a set answer expansion rule to determine a plurality of extension answers;
in this embodiment, the extension rule of the answer defines an extension angle of the basic answer, that is, the basic answer is extended from different angles.
Further, in this embodiment, the step S102 may specifically include expanding the basic answer from a plurality of different expansion angles according to a set answer expansion rule to generate a plurality of extended answers. Each extended answer includes a base extended answer and a plurality of similar extended answers corresponding to the base extended answer.
In a specific implementation, in step S102 or after step S102, a basic extended answer layer and a similar extended answer layer are established, where the basic extended answer constitutes the basic extended answer layer, and a plurality of similar extended answers corresponding to the basic extended answer constitutes the similar extended answer layer.
Such as the sample problem related to "Liuxiang": who Liu Xiang is, or who is Liu Xiang. The basic answer "Liu Xiang is a hurdle athlete", if the basic answer is expanded from the user attribute angle indicated by "Liu Xiang", basic extended answers such as "Liu Xiang is a man hurdle athlete", "Liu Xiang is a Chinese hurdle athlete", "Liu Xiang is a man hurdle athlete in the upper sea of China", "Liu Xiang, number Asian flier" and the like can be obtained, under each basic extended answer, a plurality of similar extended answers exist, for example, for "Liu Xiang is a man hurdle athlete", a plurality of approximate extended answers exist: "Liu Xiang emerges from the Shanghai and is a man hurdle athlete, Liu Xiang is born in the Shanghai in 1983 and is a man hurdle athlete, belonging to track and field projects", and the like.
S103, constructing a knowledge base according to the corresponding relation among the sample questions, the basic answers and the extension answers.
In this embodiment, as described above, since the knowledge base is used for providing answers meeting the user's question when used online, in addition to establishing the corresponding relationship between the sample question and the basic answer, that is, the association relationship, the corresponding relationship between the sample question and the extended answer is also established. In this embodiment, since the extension answer is obtained by performing extension processing on the basic answer, the corresponding relationship between the basic answer and the extension answer is directly established, that is, the corresponding relationship between the sample question and the extension answer, that is, the association relationship is indirectly established.
In this embodiment, the basic answer, the basic extended answer, and the display extended answer substantially form a progressive top-bottom association relationship.
It should be noted that, in this embodiment, the basic answer and the extended answer do not absolutely limit the correctness of the answers.
FIG. 2 is a schematic structural diagram of a construction method of a knowledge base according to a second embodiment of the present application; as shown in fig. 2, it includes:
s201, determining a sample question and a corresponding basic answer;
s202, expanding the basic answers according to a set answer expansion rule to determine a plurality of extension answers;
in this embodiment, steps S201 and S202 are similar to steps S101 and S102 in fig. 1, and are not repeated again.
And S203, calculating the quality indexes of the multiple basic answers and/or the extended answers according to the set quality evaluation rule.
However, the difference between the basic answer and the extended answer is not absolute, and in some application scenarios, a part of the extended answers may also be converted into the basic answer, so as to form a plurality of basic answers; alternatively, when the basic answer is determined in step S201, a plurality of answers which reply to the same question from a plurality of angles and can satisfy a vast number of usage questioning requirements are taken as the plurality of basic answers.
As described above, the knowledge base is constructed mainly for responding to the online question of the user with the matching answers, and since the selectable answers in the knowledge base are higher in order and different answers are very different, a quality index is configured for each basic answer and extended answer (including the basic extended answer and the similar extended answer) so as to accurately match the online question of the user. Or, it is also called, selecting an optimal answer from the database as the answer to the online question.
For example, the quality index is specifically proportional to a user authority level (a related score of a user authentication system), a user community behavior level (an answer rate in a community, a contribution rate), and the like. Certainly, in specific implementation, the user authority level and the user community behavior level may be considered at the same time, and different calculation weights are given to the user authority level and the user community behavior level, so as to calculate the quality index of the basic answer and the extended answer.
S204, sequencing the multiple basic answers and the multiple extended answers corresponding to each sample question according to the quality index to respectively generate a basic answer queue and an extended answer queue.
S205, constructing a knowledge base according to the corresponding relation among the sample questions, the basic answers and the extension answers.
In this embodiment, in step S204, the correspondence between the sample question, the basic answer, and the extended answer is specifically set with reference to a basic answer queue and an extended answer queue, and for the basic answer, the higher the quality index is, the closer the position of the basic answer queue is, the better the recommendation is made when online recommending to the user. Similarly, for the extended answers (basic extended answers, similar extended answers), the higher the quality index, the earlier the extended answer queue is, the preference is given to online recommendation to the user.
In this embodiment, the quality index is directly associated with the priority of recommendation, which may also be referred to as a recommendation index.
Since the answer (the basic answer or the extended answer) is recommended to the user for online use, subsequent user behavior may be generated, and thus, the quality index of the extended answer may be further updated according to the subsequent user behavior. For example, if the answer obtains the praise behavior of a large number of users, the quality index is correspondingly increased, and the position in the answer queue is adjusted to be higher. Conversely, if a large number of users' click behaviors are obtained, their quality index is correspondingly lowered and the positions in their answer queue are adjusted further back.
FIG. 3 is a flowchart illustrating a method for determining answers in the third embodiment of the present application; as shown in fig. 3, it includes:
s301, acquiring a real-time problem presented on line currently;
in this embodiment, the real-time question is captured through a user input interface, such as an input box, that is only provided by the question and answer community.
S302, determining a sample problem matched with the real-time problem from a knowledge base established in an off-line manner;
in this embodiment, the real-time problem may be first analyzed to obtain the keywords thereof, and then the keywords are compared with the keywords of the sample problem in the knowledge base to complete the matching of the real-time problem and the sample problem.
S303, obtaining a basic answer and an extension answer corresponding to the sample question according to the corresponding relation among the sample question, the basic answer and the extension answer;
s304, screening out answers aiming at the real-time questions from the basic answers and the extended answers.
Optionally, in an embodiment of the present application, the step of screening the answer to the real-time question from the basic answer and the extended answer includes: and screening the basic answer and/or the extended answer with the highest quality index from the basic answers and the extended answers and using the basic answer and/or the extended answer as the answer for the real-time question.
FIG. 4 is a schematic structural diagram of a device for constructing a knowledge base according to a fourth embodiment of the present application; as shown in fig. 4, it includes:
an answer determining unit 401, configured to determine a question and a corresponding basic answer;
an answer extension unit 402, configured to extend the basic answer according to a set answer extension rule to determine multiple extension answers;
a constructing unit 403, configured to construct a knowledge base according to the corresponding relationship between the question, the basic answer, and the extended answer.
FIG. 5 is a schematic structural diagram of a device for constructing a knowledge base according to a fifth embodiment of the present application; as shown in fig. 5, the answer determining unit 401, the answer expanding unit 402, and the constructing unit 403 in the embodiment of fig. 4 further include: the quality evaluation unit 404 is configured to calculate quality indexes of the plurality of basic answers and the extended answers according to a set quality evaluation rule.
Optionally, in an embodiment of the present application, the answer extension unit 402 is further configured to sort, according to the quality index, a plurality of extended answers corresponding to each question to generate an extended answer queue.
FIG. 6 is a schematic structural diagram of a device for constructing a knowledge base according to a sixth embodiment of the present application; as shown in fig. 6, the answer determining unit 401, the answer expanding unit 402, and the constructing unit 403 in the embodiment of fig. 4 further include: an updating unit 405, configured to update the quality indexes of the basic answer and the extended answer according to the user behavior for the basic answer and the extended answer.
Optionally, in an embodiment of the present application, the answer extension unit 402 is further configured to extend the basic answer from a plurality of different extension angles according to a set answer extension rule to generate a plurality of extension answers.
Optionally, in an embodiment of the present application, each extended answer includes a base extended answer and a plurality of similar extended answers corresponding to the base extended answer.
FIG. 7 is a schematic structural diagram of a device for constructing a knowledge base according to a seventh embodiment of the present application; as shown in fig. 7, the device includes an answer determining unit 401, an answer expanding unit 402, and a constructing unit 403 in the above embodiment of fig. 4, and further includes: the answer layer establishing unit 406 is configured to establish a basic extended answer layer and a similar extended answer layer, where the basic extended answer constitutes the basic extended answer layer, and a plurality of similar extended answers corresponding to the basic extended answer constitutes the similar extended answer layer.
FIG. 8 is a schematic diagram of an apparatus for determining an answer according to an eighth embodiment of the present application; as shown in fig. 8, it includes:
a real-time problem obtaining unit 801, configured to obtain a real-time problem currently presented online;
a sample question matching unit 802, configured to determine a sample question matching the real-time question from a knowledge base established offline;
an answer obtaining unit 803, configured to obtain a basic answer and an extended answer corresponding to the sample question according to a corresponding relationship between the sample question, the basic answer, and the extended answer;
an answer screening unit 804 screens answers to the real-time questions from the basic answers and the extended answers.
Optionally, in an embodiment of the present application, the answer screening unit 804 is further configured to screen the basic answer and/or the extended answer with the highest quality index from the basic answers and the extended answers and use the basic answer and/or the extended answer as the answer to the real-time question.
FIG. 9 is a schematic structural diagram of an electronic device according to a ninth embodiment of the present application; the electronic device may include:
one or more processors 901;
a computer-readable medium 902, which may be configured to store one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method as in any one of the embodiments described above.
Fig. 10 is a hardware structure of an electronic device according to a tenth embodiment of the present application; as shown in fig. 10, the hardware structure of the electronic device may include: a processor 1001, a communication interface 1002, a computer-readable medium 1003, and a communication bus 1004;
wherein the processor 1001, the communication interface 1002, and the computer readable medium 1003 complete communication with each other through the communication bus 1004;
optionally, the communication interface 1002 may be an interface of a communication module, such as an interface of a GSM module;
the processor 1001 may be specifically configured to: determining a sample question and a corresponding basic answer; according to a set answer extension rule, extending the basic answers to determine a plurality of extension answers; and constructing a knowledge base according to the corresponding relation among the sample question, the basic answer and the extension answer. Or,
the processor 1001 may be specifically configured to: acquiring a real-time problem which is currently put forward online; determining a sample question matched with the real-time question from a knowledge base established off line; obtaining a basic answer and an extension answer corresponding to the sample question according to the corresponding relation among the sample question, the basic answer and the extension answer; and screening out answers aiming at the real-time questions from the basic answers and the extended answers.
The Processor 1001 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code configured to perform the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section, and/or installed from a removable medium. The computer program, when executed by a Central Processing Unit (CPU), performs the above-described functions defined in the method of the present application. It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access storage media (RAM), a read-only storage media (ROM), an erasable programmable read-only storage media (EPROM or flash memory), an optical fiber, a portable compact disc read-only storage media (CD-ROM), an optical storage media piece, a magnetic storage media piece, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code configured to carry out operations for the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may operate over any of a variety of networks: including a Local Area Network (LAN) or a Wide Area Network (WAN) -to the user's computer, or alternatively, to an external computer (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions configured to implement the specified logical function(s). In the above embodiments, specific precedence relationships are provided, but these precedence relationships are only exemplary, and in particular implementations, the steps may be fewer, more, or the execution order may be modified. That is, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes an answer determination unit for determining a question and its corresponding base answer; the answer extension unit is used for extending the basic answers according to a set answer extension rule to determine a plurality of extension answers; and the construction unit is used for constructing a knowledge base according to the corresponding relation among the questions, the basic answers and the extension answers. Alternatively, a processor comprises: the real-time problem acquisition unit is used for acquiring the real-time problem which is currently proposed online; the sample question matching unit is used for determining a sample question matched with the real-time question from a knowledge base established off line; the answer obtaining unit is used for obtaining a basic answer and an extension answer corresponding to the sample question according to the corresponding relation among the sample question, the basic answer and the extension answer; and the answer screening unit is used for screening out answers aiming at the real-time questions from the basic answers and the extended answers.
Where the names of these units do not in some cases constitute a limitation on the unit itself, for example, the answer determination unit may also be described as a "unit for determining a question and its corresponding base answer".
As a further aspect, the present application also provides a computer-readable medium, on which a computer program is stored, which program, when executed by a processor, performs the method as described in any of the embodiments above.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: determining a sample question and a corresponding basic answer; according to a set answer extension rule, extending the basic answers to determine a plurality of extension answers; constructing a knowledge base according to the corresponding relation among the sample questions, the basic answers and the extension answers; or,
acquiring a real-time problem which is currently put forward online; determining a sample question matched with the real-time question from a knowledge base established off line; obtaining a basic answer and an extension answer corresponding to the sample question according to the corresponding relation among the sample question, the basic answer and the extension answer; and screening out answers aiming at the real-time questions from the basic answers and the extended answers.
In addition, in the above embodiments, the answer determining unit, the answer extending unit, and the constructing unit may also be referred to as a first program unit, a second program unit, and a third program unit, respectively.
In the above embodiments, the real-time question acquiring unit, the sample question matching unit, the answer acquiring unit, and the answer screening unit may also be referred to as a third program unit, a fourth program unit, a fifth program unit, and a sixth program unit, respectively.
The expressions "first", "second", "said first" or "said second" as used in various embodiments of the present application may modify various components irrespective of order and/or importance, but these expressions do not limit the respective components. The above description is only configured for the purpose of distinguishing elements from other elements. For example, the first user equipment and the second user equipment represent different user equipment, although both are user equipment. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of the present application.
When an element (e.g., a first element) is referred to as being "operably or communicatively coupled" or "connected" (operably or communicatively) to "another element (e.g., a second element) or" connected "to another element (e.g., a second element), it is understood that the element is directly connected to the other element or the element is indirectly connected to the other element via yet another element (e.g., a third element). In contrast, it is understood that when an element (e.g., a first element) is referred to as being "directly connected" or "directly coupled" to another element (a second element), no element (e.g., a third element) is interposed therebetween.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (13)

1. A method for constructing a knowledge base is characterized by comprising the following steps:
determining a sample question and a corresponding basic answer;
according to a set answer extension rule, extending the basic answers to determine a plurality of extension answers;
and constructing a knowledge base according to the corresponding relation among the sample question, the basic answer and the extension answer.
2. The method of claim 1, wherein expanding the basic answer according to a set answer expansion rule to generate an extended answer comprises: and according to a set answer extension rule, extending the basic answer from a plurality of different extension angles to generate a plurality of extension answers.
3. The method of claim 1, wherein each extended answer comprises a base extended answer and a plurality of similar extended answers corresponding to the base extended answer.
4. The method of claim 2, further comprising: and establishing a basic extension answer layer and a similar extension answer layer, wherein the basic extension answer layer is formed by the basic extension answers, and the similar extension answer layer is formed by a plurality of similar extension answers corresponding to the basic extension answers.
5. A method for determining an answer, comprising:
acquiring a real-time problem which is currently put forward online;
determining a sample question matched with the real-time question from a knowledge base established off line;
obtaining a basic answer and an extension answer corresponding to the sample question according to the corresponding relation among the sample question, the basic answer and the extension answer;
and screening out answers aiming at the real-time questions from the basic answers and the extended answers.
6. The method of claim 5, wherein screening answers to the real-time question from a base answer and the extended answers comprises: and screening the basic answer and/or the extended answer with the highest quality index from the basic answers and the extended answers and using the basic answer and/or the extended answer as the answer for the real-time question.
7. An apparatus for building a knowledge base, comprising:
the answer determining unit is used for determining the question and the corresponding basic answer;
the answer extension unit is used for extending the basic answers according to a set answer extension rule to determine a plurality of extension answers;
and the construction unit is used for constructing a knowledge base according to the corresponding relation among the questions, the basic answers and the extension answers.
8. The apparatus according to claim 7, wherein the answer extension unit is further configured to extend the basic answer from a plurality of different extension angles according to a set answer extension rule to generate a plurality of extension answers.
9. The apparatus of claim 8, wherein each extended answer comprises a base extended answer and a plurality of similar extended answers corresponding to the base extended answer.
10. The apparatus of claim 9, further comprising: the answer layer establishing unit is used for establishing a basic extension answer layer and a similar extension answer layer, wherein the basic extension answer layer is formed by basic extension answers, and the similar extension answer layer is formed by a plurality of similar extension answers corresponding to the basic extension answers.
11. An answer determination apparatus, comprising:
the real-time problem acquisition unit is used for acquiring the real-time problem which is currently proposed online;
the sample question matching unit is used for determining a sample question matched with the real-time question from a knowledge base established off line;
the answer obtaining unit is used for obtaining a basic answer and an extension answer corresponding to the sample question according to the corresponding relation among the sample question, the basic answer and the extension answer;
and the answer screening unit is used for screening out answers aiming at the real-time questions from the basic answers and the extended answers.
12. An electronic device, comprising:
one or more processors;
a computer readable medium configured to store one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
13. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN201811071747.0A 2018-09-14 2018-09-14 Construction method and its device, electronic equipment, the computer-readable medium of knowledge base Pending CN109460823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811071747.0A CN109460823A (en) 2018-09-14 2018-09-14 Construction method and its device, electronic equipment, the computer-readable medium of knowledge base

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811071747.0A CN109460823A (en) 2018-09-14 2018-09-14 Construction method and its device, electronic equipment, the computer-readable medium of knowledge base

Publications (1)

Publication Number Publication Date
CN109460823A true CN109460823A (en) 2019-03-12

Family

ID=65606661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811071747.0A Pending CN109460823A (en) 2018-09-14 2018-09-14 Construction method and its device, electronic equipment, the computer-readable medium of knowledge base

Country Status (1)

Country Link
CN (1) CN109460823A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597969A (en) * 2019-08-12 2019-12-20 中国农业大学 Agricultural knowledge intelligent question and answer method and system and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729424A (en) * 2013-12-20 2014-04-16 百度在线网络技术(北京)有限公司 Method and system for assessing answers in Q&A (questions and answers) community
CN104573000A (en) * 2015-01-07 2015-04-29 北京云知声信息技术有限公司 Sequential learning based automatic questions and answers device and method
WO2015107741A1 (en) * 2014-01-15 2015-07-23 ソニー株式会社 Information processing device, information processing method, and program
CN105893535A (en) * 2016-03-31 2016-08-24 上海智臻智能网络科技股份有限公司 Intelligent question and answer method, knowledge base optimizing method and device and intelligent knowledge base
CN108154735A (en) * 2016-12-06 2018-06-12 爱天教育科技(北京)有限公司 Oral English Practice assessment method and device
CN108304587A (en) * 2018-03-07 2018-07-20 中国科学技术大学 A kind of community's answer platform answer sort method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729424A (en) * 2013-12-20 2014-04-16 百度在线网络技术(北京)有限公司 Method and system for assessing answers in Q&A (questions and answers) community
WO2015107741A1 (en) * 2014-01-15 2015-07-23 ソニー株式会社 Information processing device, information processing method, and program
CN104573000A (en) * 2015-01-07 2015-04-29 北京云知声信息技术有限公司 Sequential learning based automatic questions and answers device and method
CN105893535A (en) * 2016-03-31 2016-08-24 上海智臻智能网络科技股份有限公司 Intelligent question and answer method, knowledge base optimizing method and device and intelligent knowledge base
CN108154735A (en) * 2016-12-06 2018-06-12 爱天教育科技(北京)有限公司 Oral English Practice assessment method and device
CN108304587A (en) * 2018-03-07 2018-07-20 中国科学技术大学 A kind of community's answer platform answer sort method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
夏颖奇: "《海归竞技中关村》", 30 November 2007, 北京:中国发展出版社 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597969A (en) * 2019-08-12 2019-12-20 中国农业大学 Agricultural knowledge intelligent question and answer method and system and electronic equipment
CN110597969B (en) * 2019-08-12 2022-05-24 中国农业大学 Agricultural knowledge intelligent question and answer method and system and electronic equipment

Similar Documents

Publication Publication Date Title
AU2016303436B2 (en) Method and system for applying probabilistic topic models to content in a tax environment to improve user satisfaction with a question and answer customer support system
CN102754094B (en) For the system and method for the content classification to user or user's generation
AU2013251195B2 (en) Program, apparatus, and method for information processing
US20160371276A1 (en) Answer scheme for information request
CN108322317B (en) Account identification association method and server
US20170053186A1 (en) Cognitive Traits Avatar for Similarity Matching
US10402465B1 (en) Content authority ranking using browsing behavior
US20100268809A1 (en) System and method for assessing the usability and accessibility of web 2.0 features and functionalities of websites
US10462211B2 (en) System and method for providing more appropriate question/answer responses based upon profiles
US10650560B2 (en) Generating graphical representations of event participation flow
CN108319713B (en) Electronic book processing method based on Internet
CN111274490B (en) Method and device for processing consultation information
US10384135B2 (en) Adaptive wizard for gamification site creation
US20170255875A1 (en) Validation termination system and methods
US20180046986A1 (en) Job referral system
CN108648031B (en) Product recommendation method and device
CN113592535A (en) Advertisement recommendation method and device, electronic equipment and storage medium
CN116775815A (en) Dialogue data processing method and device, electronic equipment and storage medium
CN111507471B (en) Model training method, device, equipment and storage medium
CN111159379B (en) Automatic question setting method, device and system
CN109460823A (en) Construction method and its device, electronic equipment, the computer-readable medium of knowledge base
CN116680480A (en) Product recommendation method and device, electronic equipment and readable storage medium
CN117010413A (en) Community question and answer method and device, storage medium and computer equipment
US20180039944A1 (en) Job referral system
CN114218288B (en) Driving route recommendation method and device, storage medium and terminal

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
TA01 Transfer of patent application right

Effective date of registration: 20200604

Address after: 310051 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping square B radio tower 12 layer self unit 01

Applicant before: GUANGZHOU SHENMA MOBILE INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20190312

RJ01 Rejection of invention patent application after publication