CN105677823B - A kind of method and device that question and answer arrange - Google Patents

A kind of method and device that question and answer arrange Download PDF

Info

Publication number
CN105677823B
CN105677823B CN201610003143.7A CN201610003143A CN105677823B CN 105677823 B CN105677823 B CN 105677823B CN 201610003143 A CN201610003143 A CN 201610003143A CN 105677823 B CN105677823 B CN 105677823B
Authority
CN
China
Prior art keywords
message
answer
content
question
identification
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.)
Expired - Fee Related
Application number
CN201610003143.7A
Other languages
Chinese (zh)
Other versions
CN105677823A (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.)
Shanghai Jingxuerui Information Technology Co Ltd
Original Assignee
Shanghai Jingxuerui 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 Shanghai Jingxuerui Information Technology Co Ltd filed Critical Shanghai Jingxuerui Information Technology Co Ltd
Priority to CN201610003143.7A priority Critical patent/CN105677823B/en
Publication of CN105677823A publication Critical patent/CN105677823A/en
Application granted granted Critical
Publication of CN105677823B publication Critical patent/CN105677823B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • G06F40/211Syntactic parsing, e.g. based on context-free grammar [CFG] or unification grammars
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Mathematical Physics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the present application discloses a kind of method and device that question and answer arrange.The described method includes: receiving the second message that the first message for puing question to client to send and answer client are sent;Wherein, the second message is the response message in response to the first message that the answer client is sent;Judge whether start to identify comprising problem in the first message;If starting to identify comprising problem, whether judge in the first message comprising problem end of identification;If being arranged to the problems in the first message, the second message related content, and store the described problem related content of arrangement comprising problem end of identification.Using the embodiment of the present application, may be implemented automatically to carry out sorting and file to enquirement and answer.

Description

A kind of method and device that question and answer arrange
Technical field
This application involves Internet technical field, in particular to a kind of method and device of question and answer arrangement.
Background technique
With the continuous development of Internet technology, the third party application (Application, App) of different field with Appearance, and continue to develop update.As the rapid Cover of high-speed wideband wireless network and the quick of intelligent mobile terminal are popularized, So that the usage experience of App user is greatly improved.User also proposed better experience requirements simultaneously.It answers questions App (example If operation is logical, Xue Bajun, study treasured etc.) it is also such.The App that answers questions can be used for that drawings family is helped to answer it in work or study The problem of encountering.
In general, the client that quizmaster holds is properly termed as puing question to client, the client that solutionist holds can claim To answer client.
In the prior art, it answers questions and is still traditional question-answering mode in App, i.e., enquirement client sends problem, answer visitor The problem of family end is proposed according to the enquirement client is answered.Specifically: client being putd question to ask to application server transmission Topic waits answer;Application server receives the problem of puing question to client to send, and described problem is sent to answer client; The answer client sends answer to application server after receiving described problem;The answer is sent to and mentions by application server Ask client;Client is putd question to receive the answer, problem is addressed.For example, in the prior art for teaching student to learn The App that answers questions in, the App that answers questions corresponding application server will when being connected to where student the problem of puing question to client to send Described problem answers client where being sent to teacher;Teacher returns to described problem to application server in answer client and corresponds to Answer after;The application server receives the answer, and the answer is returned to where student and puts question to client.However, Such question-answering mode is to have done the transmitting of problem and answer, can not be to problem and answer sorting and file.
Summary of the invention
The purpose of the embodiment of the present application is to provide a kind of question and answer method for sorting and device, in the prior art can not to solve The problem of to problem and answer sorting and file.
In order to solve the above technical problems, the method and device that question and answer provided by the embodiments of the present application arrange is realized in :
A kind of method that question and answer arrange, comprising:
Receive the second message that the first message for puing question to client to send and answer client are sent;Wherein, described second Message is the response message in response to the first message that the answer client is sent;
Judge whether start to identify comprising problem in the first message;
If starting to identify comprising problem, whether judge in the first message comprising problem end of identification;
If being carried out comprising problem end of identification to the problems in the first message, the second message related content It arranges, and stores the described problem related content of arrangement.
A kind of device that question and answer arrange, comprising:
Receiving unit, the second message sent for receiving the first message for puing question to client to send and answer client; Wherein, the second message is the response message in response to the first message that the answer client is sent;
First judging unit, for judging in the first message whether to include that problem starts to identify;
Second judgment unit judges the first message when for including that problem starts mark in the first message In whether include problem end of identification;
Finishing unit, when for including problem end of identification in the first message, to the first message, described the The problems in two message related content is arranged, and stores the described problem related content of arrangement.
As can be seen from the technical scheme provided by the above embodiments of the present application, a kind of question and answer provided by the embodiments of the present application arrange Method and device, by judging in first message whether to include that problem starts mark and problem end of identification, to judge first Whether message is user's subject of question.For not only starting mark comprising problem in first message but also including problem end of identification, then Judge that the first message is user's subject of question.To the answering partially and in second message by the problems in described first message It is stored after case extracting section.It realizes and sorting and file automatically is carried out to enquirement and answer.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application, for those of ordinary skill in the art, in the premise of not making the creative labor property Under, it is also possible to obtain other drawings based on these drawings.
Fig. 1 shows the illustrative system architecture concept map that can be applicable in the application;
Fig. 2 is the flow chart of the question and answer method for sorting provided in one embodiment of the application;
Fig. 3 is the flow chart of the question and answer method for sorting provided in one embodiment of the application;
Fig. 4 is the module diagram of the question and answer clearing system provided in one embodiment of the application.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common The application protection all should belong in technical staff's every other embodiment obtained without creative efforts Range.
Fig. 1 shows the illustrative system architecture concept map that can be applicable in the application.
In system architecture concept map 100, the communication of message may be implemented by network for different nodes in network, then complete Interacting message and processing.System architecture concept map 100 may include such as puing question to visitor respectively with multiple client via network 112 Family end 106, answer client 107 carry out the application server 105 of data communication, and can integrate in application server 105 Or the database 115 independently of application server 105.
Network 112 may include wired or wireless telecommunication installation, and client 106, answer client 107 is putd question to be based on Network equipment can exchange data by the wired or wireless telecommunication installation.For example, network 112 may include local area network (" LAN "), wide area network (" WAN "), intranet, internet, mobile telephone network, Virtual Private Network (VPN), honeycomb fashion or other Mobile communications network, bluetooth, NFC or any combination thereof.In the discussion of exemplary implementation scheme, it should be appreciated that term " data " " message " can be used interchangeably to refer to the text that may be present in computer based environment, image, audio, view herein The message of frequency or any other form.
Application server 105 puts question to client 106, answers the equipment of client 107 architecturally all comprising some basic Component, such as bus, processing unit, storage device, one or more input/output devices and communication interface.Bus can wrap One or more conducting wires are included, for realizing the communication between each component of server and client side's equipment.Processing unit may include It is all types of be used to execute instruction, the processor or microprocessor for the treatment of progress or thread.Storage device may include to deposit The dynamic memory for storing up dynamic message, such as random access storage device (RAM), or the static memory to store static message, Such as read-only memory (ROM), and the mass storage including magnetically or optically recording medium and respective drive.Input unit can To be keyboard, mouse, writing pencil, touch screen, voice recognition device or biometric apparatus etc..Output device can be to Export display, printer or the loudspeaker etc. of message.Communication interface is used to make server or client device and other systems Or device is communicated.It can be connected to by wired connection mode, radio connection or light connects mode between communication interface In above-mentioned network, so that the realization of above-mentioned client device, server is in communication with each other.
Each network equipment for puing question to client 106 to be based on can include having to issue simultaneously via network 112 Receive the device of the communication module of data.The network equipment that same each answer client 107 is based on can include having The device of the communication module of data can be issued and received via network 112.For example, the network equipment that each client is based on It can be helped including desktop computer, laptop computer, tablet computer, smart phone, handheld computer, individual digital Manage (" PDA ") or other any wired or wireless processor driving devices.
In system architecture concept map 100, puts question to client 106 for issuing problem to be solved, answer client 107 Described the problem of answering is needed for answering.Application server 105 is used to realize that client puts question to 106 and visitor by network 112 The interaction of message between family end answer 107.
Specifically, each client 106 can will need the problem of answering to be sent to application server by network 112 105.After application server 105 receives described problem, it is sent to answer client 107 by network 112.The answer visitor Family end 107 provides the answer of described problem, and is back to the application server 105 by network 112.The application server The answer is returned to enquirement client 106 by network 112 by 105.
The application server 105 disappears between client 106 and answer client 107 realizing to put question to by network 112 While breath interaction, all interaction messages are handled one by one.The application server 105 arranges journey by the question and answer of starting Sequence, the problem of involved in the message to the interaction and answer carries out sorting and file.
In the present embodiment, executing subject is the application server (hereinafter referred to as application server) of App of answering questions.
Fig. 2 is the flow chart for the method that question and answer arrange in one embodiment of the application.In the present embodiment, the question and answer arrangement side Method includes the following steps:
S210: the second message that the first message for puing question to client to send and answer client are sent is received;Wherein, described Second message is the response message in response to the first message that the answer client is sent.
As described above, application server can be used for puing question to message between client and answer client by network implementations Interaction.The application server receives the second message that the first message for puing question to client to send and answer client are sent.
The first message may include from the message for puing question to client to send.The second message may include coming from Answer the response message in response to the first message that client is sent.The first message and the second message include The format of content may include any one or more of combination of voice, picture, text.
S220: judge whether start to identify comprising problem in the first message.
It may include artificial pre-set for identifying the field that problem starts that described problem, which starts mark, such as " ask Topic is ", " may I ask ", the field with corresponding meaning such as " please answer ".
For example, being that " my the problem of is when application server receives the first message for puing question to client to send After XXXXXX ", judge whether the first message " my the problem of is XXXXXX " starts to identify comprising problem, due to first message In field " problem is " be that problem starts to identify, so application server judgement is obtained and is opened in the first message comprising problem Begin mark, thereby executing S230 step.
In the present embodiment, show that the first message includes Ke Yikai after problem starts mark in application server judgement Question and answer are opened to collate program.It may include independent data processing threads that the question and answer, which collate program, in following S240 steps It is middle by the problems in related content such as first message part the problem of including in the first message and second message and described Answer part in the corresponding second message of problem) extract final finishing.
S230: if starting to identify comprising problem, whether judge in the first message comprising problem end of identification.
Described problem end of identification may include artificial pre-set for identifying the field that problem terminates, such as " mention Ask end ", the field with corresponding meaning such as " problem terminates ".
For example, being " to terminate about above problem enquirement, thanks answer for the first message for puing question to client to send." answer Judge whether the first message includes problem end of identification with server, since the field " problem terminates " in first message is Problem end of identification, so it includes problem end of identification in the first message that application server judgement, which obtains, thereby executing S240 step.
S240: if comprising problem end of identification, to the problems in the first message, the second message related content It is arranged, and stores the described problem related content of arrangement.
In the present embodiment, application server judges to start mark again comprising problem knot comprising problem in the first message After beam identification, collated program phase the problem of including in the first message and second message inside the Pass by the question and answer of unlatching Hold (the answer part in the problems in such as first message part and the corresponding second message of described problem) to be arranged.
Each question and answer collates program in the present embodiment, is only used for arranging answering for a problem and its one problem Case.When having a problem that the application server opens a corresponding question and answer and collates program, and exists after starting mark After one problem end of identification, after being arranged to the problems in the first message, the second message related content, close The question and answer collate program.
Specifically, as shown in figure 3, the S240 step may include steps of:
S241: using the first message as problem content.
Application server is using the first message as problem content.
Preferably, the S241, comprising:
Problem in the first message is started after identifying, the content before problem end of identification is as problem content.
S242: using the second message as answer content.
Application server is using the first message as problem content.
S243: by described problem content and the storage of answer content into database.
Application server can be by described problem content and the storage of answer content into database.The database can be The database of the application server oneself.It is also possible to and the associated external data base of the application server.
Through this embodiment, by judging in first message whether to include that problem starts mark and problem end of identification, from And judge whether first message is user's subject of question.For not only starting to identify but also comprising problem knot comprising problem in first message Beam identification then judges that the first message is user's subject of question.Thus by the problems in described first message part and second It is stored after answer extracting section in message.It realizes and sorting and file automatically is carried out to enquirement and answer.
In the specific embodiment of the application, on the basis of as shown in Figure 2, it can also be wrapped after S220 step It includes:
If not including problem to start to identify, judges whether there is ongoing question and answer and collate program;
Correspondingly, the S230 step, can specifically include:
Ongoing question and answer collate program if it does not exist, then judge whether terminate to mark comprising problem in the first message Know.
In practical applications, put question to client by application server and answer client interactive process, by can be into The multiple ordinary interaction of row.For example, puing question to client by message twice or more than twice, the problem of puing question to table will will be needed State it is clear, then correspondingly the application server connects the first message for being received by two or more.
It is assumed that comprising problematic beginning label but there is no problem terminates label in first message, and second day The case where including problematic end label in message but being not over beginning label.
For first message, due to starting to identify there are problem, application server accordingly opens question and answer and collates program, And then judge whether comprising problem end of identification, since there is no problem end of identification, so first first message conduct Common message processing.
For the message of Article 2, start to identify since there is no problem, application server needs judge whether there is into Question and answer in row collate program;It collates program since first message opens a question and answer, and is not turned off the question and answer It collates program, so application server judges whether in turn comprising problem end of identification;Due to including to ask in the message of Article 2 Inscribe end of identification, it is possible to execute S140 step, i.e., to the problems in the first message, the second message related content It is arranged, and stores the described problem related content of arrangement, closing first message, which corresponds to question and answer, to collate program.When So, it if the message of Article 2, when not including problem end of identification, is handled the message of the Article 2 as common message, And first message corresponds to during question and answer collate program and still carry out.
In the specific embodiment of the application, store by described problem content and answer content into database Before, further includes:
According to described problem content, problem types are obtained;
Correspondingly, by described problem content and the storage of answer content into database, comprising:
By the storage of described problem content, answer content and problem types into database.
In the present embodiment, according to described problem content, problem types are obtained;
It can be, semantic processes are carried out to described problem content, extract keyword;
According to the keyword, problem types are obtained.
The semantic processes, specifically, can be syntactic analysis (Parsing), morphological analysis (lexical Analysis), or according to certain rules, such as regular expression (Regular Expression), certain algorithms, such as CYK dissects algorithm and Earl benefit dissects algorithm etc..
By taking syntactic analysis (Parsing) as an example, syntactic analysis (Parsing) can be obtained sentence to be processed according to dictionary The part of speech of each word out, the word that judgement meets default part of speech whether there is in the dictionary for representing specific things, then will if it exists The word is as keyword.
Described problem type can be artificial preset, such as " mathematics ", " Chinese language " etc..
In the present embodiment, default part of speech is, for example, noun.Certainly, in other implementations, default part of speech is also possible to non-name Word.It is assumed that the subject of question is " what the effect of mathematical formulae XX is? ", application server carries out semantic processes to it, by It is noun in " mathematics ", " formula " is noun, then " mathematics " " formula " is used as keyword.Further, according to the key Word obtains problem types;Since keyword is matched with problem types, only " mathematics " can successful match, so the class that must go wrong Type is " mathematics ".In through this embodiment, problem types can also be stored to data other than problem content and answer content In library, convenient for arranging the problem of storing in database content and answer content according to problem types.
The embodiment of the present application also provides a kind of device, above-mentioned method and step may be implemented, and the device can be by soft Part is realized, can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, as on logical meaning Device is by the CPU (Central Process Unit, central processing unit) of server by corresponding computer program instructions It is read into memory what operation was formed.
Fig. 4 is a kind of module diagram of the device of arrangement problem in one embodiment of the application.In the present embodiment, the dress It sets and includes:
Receiving unit 310 disappears for receiving the first message for puing question to client to send and answer client are sent second Breath;Wherein, the second message is the response message in response to the first message that the answer client is sent;
First judging unit 320, for judging in the first message whether to include that problem starts to identify;
Second judgment unit 330 judges that described first disappears when for including that problem starts mark in the first message It whether include problem end of identification in breath;
Finishing unit 340, when for including problem end of identification in the first message, to the first message, institute It states the problems in second message related content to be arranged, and stores the described problem related content of arrangement.
Preferably, after first judging unit 320, further includes:
Third judging unit, in the first message do not include problem start mark when, judge whether there is into Question and answer in row collate program;
Correspondingly, the second judgment unit 330, when being also used to collate program there are ongoing question and answer, described in judgement It whether include problem end of identification in first message.
Preferably, the finishing unit 340, specifically includes:
First arranges subelement, for using the first message as problem content;
Second arranges subelement, for using the second message as answer content;
Third arranges subelement, for storing described problem content and answer content into database.
Preferably, it is described first arrange subelement, be also used to start problem in the first message mark after, problem Content before end of identification is as problem content.
Preferably, before the third arrangement subelement, further includes:
4th arranges subelement, for obtaining problem types according to described problem content;
Correspondingly, the third arranges subelement, is also used to store described problem content, answer content and problem types Into database.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example, Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit. Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development, And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language (Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL (Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL (Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages, The hardware circuit for realizing the logical method process can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit, ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller Device: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320 are deposited Memory controller is also implemented as a part of the control logic of memory.It is also known in the art that in addition to Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic Controller is obtained to come in fact in the form of logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc. Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when application.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group Part, data structure etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments, by Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.The above description is only an example of the present application, is not intended to limit this application.For this field skill For art personnel, various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any repair Change, equivalent replacement, improvement etc., should be included within the scope of the claims of this application.

Claims (8)

1. a kind of method that question and answer arrange characterized by comprising
Receive the second message that the first message for puing question to client to send and answer client are sent;Wherein, the second message The response message in response to the first message sent for the answer client;
Judge whether start to identify comprising problem in the first message;
If starting to identify comprising problem, whether judge in the first message comprising problem end of identification;
If being arranged comprising problem end of identification to the problems in the first message, the second message related content, And store the described problem related content of arrangement;
After whether starting mark comprising problem in judging the first message, further includes:
If not including problem to start to identify, judge the enquirement client with the presence or absence of the problem of handling;
Correspondingly, if the mark started comprising problem, judge in the first message whether to include problem end of identification, It specifically includes:
Whether ongoing question and answer collate program if it exists, then judge in the first message comprising problem end of identification;
Described problem start mark be it is artificial preset for identifying the field that problem starts, described problem end of identification is artificial It is preset to be used to identify the field that problem terminates;
If client is putd question to have sent first message twice, first time first message starts to identify there are problem, but is not present Problem end of identification, there are problem end of identification for second of first message, but there is no problem starts to identify, then to message twice The problems in related content arranged, store the described problem related content of arrangement, and it is corresponding to close first time first message Question and answer collate program.
2. the method as described in claim 1, which is characterized in that the problems in the first message, the second message phase Hold inside the Pass and arranged, and store the described problem related content of arrangement, specifically includes:
Using the first message as problem content;
Using the second message as answer content;
By described problem content and the storage of answer content into database.
3. method according to claim 2, which is characterized in that it is described using the first message as problem content, it is specific to wrap It includes:
Problem in the first message is started after identifying, the content before problem end of identification is as problem content.
4. method as claimed in claim 2 or claim 3, which is characterized in that store by described problem content and answer content to number Before in library, further includes:
According to described problem content, problem types are obtained;
Correspondingly, by described problem content and the storage of answer content into database, comprising:
By the storage of described problem content, answer content and problem types into database.
5. the device that a kind of question and answer arrange characterized by comprising
Receiving unit, the second message sent for receiving the first message for puing question to client to send and answer client;Wherein, The second message is the response message in response to the first message that the answer client is sent;
First judging unit, for judging in the first message whether to include that problem starts to identify;
Second judgment unit, in the first message include problem start mark when, judge be in the first message No includes problem end of identification;
Finishing unit disappears to the first message, described second when for including problem end of identification in the first message The problems in breath related content is arranged, and stores the described problem related content of arrangement,
After first judging unit, further includes:
Third judging unit judges whether there is in progress when starting mark for not including problem in the first message Question and answer collate program;
Correspondingly, the second judgment unit judges the first message when being also used to collate program there are ongoing question and answer In whether include problem end of identification;
Described problem start mark be it is artificial preset for identifying the field that problem starts, described problem end of identification is artificial It is preset to be used to identify the field that problem terminates;
If client is putd question to have sent first message twice, first time first message starts to identify there are problem, but is not present Problem end of identification, there are problem end of identification for second of first message, but there is no problem starts to identify, then to message twice The problems in related content arranged, store the described problem related content of arrangement, and it is corresponding to close first time first message Question and answer collate program.
6. device as claimed in claim 5, which is characterized in that the finishing unit specifically includes:
First arranges subelement, for using the first message as problem content;
Second arranges subelement, for using the second message as answer content;
Third arranges subelement, for storing described problem content and answer content into database.
7. device as claimed in claim 6, which is characterized in that described first arranges subelement, is also used to disappear to described first Problem starts after identifying in breath, the content before problem end of identification is as problem content.
8. device as claimed in claim 6, which is characterized in that before the third arranges subelement, further includes:
4th arranges subelement, for obtaining problem types according to described problem content;
Correspondingly, the third arranges subelement, is also used to store described problem content, answer content and problem types to number According in library.
CN201610003143.7A 2016-01-04 2016-01-04 A kind of method and device that question and answer arrange Expired - Fee Related CN105677823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610003143.7A CN105677823B (en) 2016-01-04 2016-01-04 A kind of method and device that question and answer arrange

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610003143.7A CN105677823B (en) 2016-01-04 2016-01-04 A kind of method and device that question and answer arrange

Publications (2)

Publication Number Publication Date
CN105677823A CN105677823A (en) 2016-06-15
CN105677823B true CN105677823B (en) 2019-07-23

Family

ID=56298849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610003143.7A Expired - Fee Related CN105677823B (en) 2016-01-04 2016-01-04 A kind of method and device that question and answer arrange

Country Status (1)

Country Link
CN (1) CN105677823B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106844734B (en) * 2017-02-13 2023-01-24 长沙军鸽软件有限公司 Method for automatically generating session reply content
CN109036554B (en) * 2018-08-07 2020-02-14 百度在线网络技术(北京)有限公司 Method and apparatus for generating information

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838642A (en) * 2005-03-21 2006-09-27 华为技术有限公司 Method and system for realizing ask-answer service using instantaneous message system
CN101521589A (en) * 2009-04-03 2009-09-02 腾讯科技(深圳)有限公司 Question method, answer method and interactive knowledge question-answer system
CN102200975A (en) * 2010-03-25 2011-09-28 北京师范大学 Vertical search engine system and method using semantic analysis
CN104866522A (en) * 2015-03-25 2015-08-26 百度在线网络技术(北京)有限公司 Method and device for providing answer information for questioner

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160125751A1 (en) * 2014-11-05 2016-05-05 International Business Machines Corporation Answer management in a question-answering environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838642A (en) * 2005-03-21 2006-09-27 华为技术有限公司 Method and system for realizing ask-answer service using instantaneous message system
CN101521589A (en) * 2009-04-03 2009-09-02 腾讯科技(深圳)有限公司 Question method, answer method and interactive knowledge question-answer system
CN102200975A (en) * 2010-03-25 2011-09-28 北京师范大学 Vertical search engine system and method using semantic analysis
CN104866522A (en) * 2015-03-25 2015-08-26 百度在线网络技术(北京)有限公司 Method and device for providing answer information for questioner

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
互联网金融数据抓取方法研究;兰秋军;《计算机工程与设计》;20110531;第32卷(第5期);第1831页左栏第2段

Also Published As

Publication number Publication date
CN105677823A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
CN107516533A (en) A kind of session information processing method, device, electronic equipment
CN105531699B (en) For organizing the automated system of presentation slides
CN110568984A (en) Online teaching method and device, storage medium and electronic equipment
CN107025906A (en) The method and product and message processing device in the cycle of extended voice identification
CN104035995B (en) Group's label generating method and device
US11468881B2 (en) Method and system for semantic intelligent task learning and adaptive execution
CN107506181A (en) Business processing, data processing method, device and electronic equipment
CN110442330A (en) List element conversion method, device, electronic equipment and storage medium
CN105446146A (en) Intelligent terminal control method based on semantic analysis, system and intelligent terminal
CN112632961A (en) Natural language understanding processing method, device and equipment based on context reasoning
CN109389974A (en) A kind of method and device of voice operating
CN108833252A (en) A kind of method for sending information based on cluster, device and equipment
CN112527962A (en) Intelligent response method and device based on multi-mode fusion, machine readable medium and equipment
JP7488871B2 (en) Dialogue recommendation method, device, electronic device, storage medium, and computer program
US10936815B2 (en) Removable spell checker device
CN109948151A (en) The method for constructing voice assistant
CN109144285A (en) A kind of input method and device
CN109241026A (en) The method, apparatus and system of data management
CN104252287A (en) Interactive device and method for improving expressive ability on basis of same
Zahour et al. Towards a Chatbot for educational and vocational guidance in Morocco: Chatbot E-Orientation
CN108491468A (en) A kind of document processing method, device and server
CN107273013A (en) Text handling method, device and electronic equipment
CN105677823B (en) A kind of method and device that question and answer arrange
CN110310638A (en) Throw screen method, apparatus, electronic equipment and computer readable storage medium
CN108614872A (en) Course content methods of exhibiting and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190723