CN109739962A - A kind of control method and device of Chat mode - Google Patents
A kind of control method and device of Chat mode Download PDFInfo
- Publication number
- CN109739962A CN109739962A CN201811602281.2A CN201811602281A CN109739962A CN 109739962 A CN109739962 A CN 109739962A CN 201811602281 A CN201811602281 A CN 201811602281A CN 109739962 A CN109739962 A CN 109739962A
- Authority
- CN
- China
- Prior art keywords
- chat
- result
- scene
- analysis result
- user
- 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
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of control method of Chat mode and devices, wherein the method includes obtaining the chat message of user, chat message includes the chat content of user and the outer scene information of user;Semantic analysis and scene analysis, and generative semantics analysis result and scene analysis result are carried out to chat message by preset rules;Accurate result is judged whether there is in lower layer's scene according to semantic analysis result;If there is accurate result, then accurate result is exported;If exporting the chat signal for switching Chat mode according to scene analysis result without accurate result.How scheme disclosed by the invention can carry out fuzzy response aiming at the problem that user is proposed, and the switching of Chat mode is carried out according to the usage scenario of user.
Description
Technical field
The invention belongs to Semantic routing handoff technique fields, and in particular to a kind of control method and device of Chat mode.
Background technique
When intelligent terminal increasingly tends to identical, manufacturers attempt to jump out the frame that appearance is identical, performance is identical, feature is identical
Frame, VR heat is in the ascendant, and " artificial intelligence " beginning is referred to by manufacturers with leading attraction, and produced in some manufacturers
In intelligent terminal, mostly by some intelligent assistants as attraction.
Existing some intelligent assistants are interacted by generating between user mostly, and what can be proposed according to user asks
The viewpoint or view of topic or expression are replied accordingly.But existing intelligent assistant be mostly by knowledge mapping into
Row is simple to be searched for and is presented search result accordingly, and what is as a result presented is very stiff;And with intelligent assistant's
In question answering process, intelligent assistant only can carry out accurate response with regard to the content in the presence of knowledge mapping, can not to
Some problems that family is proposed carry out fuzzy response, cause interactive process not humanized enough, the experience sense of user is deteriorated.This
Outside, the Chat mode of intelligent assistant is also relatively simple, and when the product is set to be suitable for adult, intelligent assistant just only can
It is chatted, cannot be changed accordingly using object and scene according to the real-time of the product with adult Chat mode, because
This brings great inconvenience to people's life.
Therefore, fuzzy respond how is carried out aiming at the problem that user is proposed becomes the first technical problem urgently to be resolved;
How Chat mode is carried out according to the usage scenario of user and is switching to the second technical problem urgently to be resolved.
Summary of the invention
The technical problem to be solved in the present invention is that how to carry out fuzzy response aiming at the problem that user is proposed.
For this purpose, according in a first aspect, the embodiment of the invention discloses a kind of control methods of Chat mode, comprising:
The chat message of user is obtained, chat message includes the chat content of user and the outer scene information of user;It presses
Preset rules carry out semantic analysis and scene analysis, and generative semantics analysis result and scene analysis result to chat message;Root
Accurate result is judged whether there is in lower layer's scene according to semantic analysis result;If there is accurate result, then accurate result is exported;Such as
Fruit does not have accurate result, then exports the chat signal for switching Chat mode according to scene analysis result.
Optionally, judging whether there is accurate result in lower layer's scene according to semantic analysis result includes: according to semanteme point
Analysis result judges in lower layer's scene with the presence or absence of result associated with semantic analysis result;If there is with semantic analysis result
It is associated as a result, then to the semantic analysis result found be adapted result calculated by preset rules, to obtain standard
Really as a result, and exporting the judgement conclusion for having accurate result.
Optionally, it is adult or children that scene analysis result, which includes: user,;Output according to scene analysis result for switching
If the chat signal of Chat mode includes: that scene analysis result is adult, switching Chat mode is exported to adult's chat
First chats signal;If scene analysis result is children, outputting cutting change owner Chat mode to children is chatted, auxiliary Chat mode
Second to adult's chat chats signal.
Optionally, the outer scene information of user includes the external definition of user class group and the used product of user, external
Definition refers to the target user of product.
According to second aspect, the embodiment of the invention provides a kind of control devices of Chat mode, comprising:
Chat message module, for obtaining the chat message of user, chat message includes chat content and the user of user
Outer scene information;Object module is analyzed, for carrying out semantic analysis and scene analysis to chat message by preset rules, and
Generative semantics analyze result and scene analysis result;Accurate result module is used for according to semantic analysis result in lower layer's scene
Judge whether there is accurate result;As a result output module, for if there is accurate result, then exporting accurate result;Chat signal mode
Block, if exporting the chat signal for switching Chat mode according to scene analysis result for without accurate result.
Optionally, accurate result module includes: result judging unit, for judging lower layer's scene according to semantic analysis result
In whether there is result associated with semantic analysis result;As a result computing unit, for if there is with semantic analysis result
It is associated as a result, then to the semantic analysis result found be adapted result calculated by preset rules, to obtain standard
Really as a result, and exporting the judgement conclusion for having accurate result.
Optionally, it is adult or children that scene analysis result, which includes: user,;Chatting signaling module includes: the first chat letter
Number unit, if being adult for scene analysis result, export switching Chat mode to adult's chat first chats signal;
Second chats signal element, if being children for scene analysis result, outputting cutting change owner Chat mode to children is chatted, auxiliary
The second chat signal that Chat mode is chatted to adult.
Optionally, the outer scene information of user includes the external definition of user class group and the used product of user, external
Definition refers to the target user of product.
According to the third aspect, the present invention provides a kind of computer installation, including processor, processor is for executing storage
The computer program stored in device realizes the control method of the Chat mode of above-mentioned first aspect any one.
According to fourth aspect, the present invention provides a kind of computer readable storage mediums, are stored thereon with computer program,
Processor is used to execute the Chat mode that the computer program stored in storage medium realizes above-mentioned first aspect any one
Control method.
The beneficial effects of the present invention are:
The control method and device of a kind of Chat mode disclosed by the embodiments of the present invention, first the chat letter of acquisition user
Then breath carries out semantic analysis and scene analysis to chat message according to preset rules, and generates corresponding semantic analysis result
With scene analysis as a result, judging whether there is accurate result in lower layer's scene according to semantic analysis result, if there is accurate result,
The accurate result is then directly exported, if output switches cutting for Chat mode according to scene analysis result without accurate result
Change signal.It is merely able in compared with the existing technology for the scheme for exporting accurate result according to semantic analysis result, in no standard
In the case where true result, into Chat mode, it can be made to carry out more intelligentized chat conversations with user, and chat is believed
After breath carries out scene analysis and generates scene analysis result, Chat mode can be switched according to scene analysis result, relative to existing
Have in technology for scheme of the Chat mode for fixation, it is more intelligent, and improve the use feeling of user.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the present invention, for those skilled in the art, without creative efforts,
It is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow chart of the control method of Chat mode of the embodiment of the present invention;
Fig. 2 is the structural schematic diagram of the control device of Chat mode of the embodiment of the present invention.
Specific embodiment
Technical solution of the present invention is clearly and completely described below in conjunction with attached drawing, it is clear that described implementation
Example is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill
Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Referring to FIG. 1, for a kind of flow chart of the control method of Chat mode disclosed in the present embodiment, the Chat mode
Control method includes:
Step S101 obtains the chat message of user.
In the present embodiment, chat message includes the chat content of user and the outer scene information of user, wherein user
Chat content can be voice content and be also possible to word content.The outer scene information of user includes user class group and user
The external definition of used product, external definition refer to the target user of product, and user's monoid refers to user for adult or children.
Step S102 carries out semantic analysis and scene analysis, and generative semantics analysis knot to chat message by preset rules
Fruit and scene analysis result.
It in the specific implementation process, can be by machine when the outer scene information to user carries out scene analysis
The outer scene that vision collecting arrives carries out active analysis, such as analyzes the image of user, can also be by user's
Instruction analyzed, can also be by user analyzed using the Product Definition of product, to obtain scene analysis knot
Fruit.
Step S103 judges whether there is accurate result in lower layer's scene according to semantic analysis result.
In the present embodiment, step S103 specifically includes: to judge whether deposit in lower layer's scene according to semantic analysis result
In result associated with semantic analysis result;If there is with semantic analysis result associated as a result, then to finding
The adaptable result of semantic analysis result is calculated by preset rules, has accurate result to obtain accurate result, and export
Judgement conclusion.
In the specific implementation process, lower layer's scene can be encyclopaedia, be also possible to other subdivision scenes.According to semantic analysis
As a result judge in lower layer's scene with the presence or absence of it is associated with semantic analysis result as a result, if there is with semantic analysis result phase
It is associated as a result, then calculated according to preset rules all results found, to obtain accurate result, and export
Judgement conclusion with accurate result, and execute step S104.If there is no associated with semantic analysis result as a result, then
The judgement conclusion of not accurate result is exported, and executes step S105.
Step S104 exports accurate result.
Step S105 exports the chat signal for switching Chat mode according to scene analysis result.
In the present embodiment, it is adult or children that scene analysis result, which includes user,.Step S105 specifically include: as
Fruit scene analysis result is adult, then exports switching Chat mode to adult first to chat and chat signal;If scene analysis
It as a result is children, then outputting cutting change owner Chat mode to children is chatted, and auxiliary Chat mode to the second of adult's chat chats signal.
In the specific implementation process, adult chat can there are two types of or two or more chat modes, different chat moulds
Formula is formed by different training method training, and children's Chat mode then can be by manually inputting and arranging.It needs
Bright, the content of adult's chat and children's chat can be mended by the method learnt from history chat content
It fills.If scene analysis result is adult, exports switching Chat mode to adult first to chat and chat signal, at this time children
It chats disabled.If scene analysis result is children, signal is chatted in output second, wherein second, which chats signal, is used for table
Sign at this time Chat mode be chatted with children based on, adult chat supplemented by Chat mode.
The present embodiment obtains the chat message of user first, then carries out semantic analysis to chat message according to preset rules
And scene analysis, and corresponding semantic analysis result and scene analysis are generated as a result, according to semantic analysis result in lower layer's scene
In judge whether there is accurate result, if there is accurate result, then directly export the accurate result, if without accurate result,
Output switches the switching signal of Chat mode according to scene analysis result.It is merely able in compared with the existing technology according to semantic analysis
As a result for the scheme for exporting accurate result, in the case where no accurate result, into Chat mode, itself and user can be made
More intelligentized chat conversations are carried out, and after carrying out scene analysis to chat message and generate scene analysis result, Neng Gougen
Switch Chat mode according to scene analysis result, both can actively switch Chat mode by carrying out analysis to outer scene, it can also
Passively to switch Chat mode according to user instructions, use is more flexible, improves the applicability of Chat mode when in use.Phase
It is more intelligent for the scheme that Chat mode in the prior art is fixed, and improve the use feeling of user.
The present embodiment also discloses a kind of control device of Chat mode, referring to FIG. 2, the control for the Chat mode fills
Structural schematic diagram is set, the control device of the Chat mode includes:
Chat message module 201, for obtaining the chat message of user, chat message includes the chat content and use of user
The outer scene information at family;Object module 202 is analyzed, for carrying out semantic analysis and scene point to chat message by preset rules
Analysis, and generative semantics analysis result and scene analysis result;Accurate result module 203 is used for according to semantic analysis result under
Accurate result is judged whether there is in layer scene;As a result output module 204, for if there is accurate result, then exporting accurate result;
Signaling module 205 is chatted, if exported for without accurate result for switching Chat mode according to scene analysis result
Chat signal.
Optionally embodiment, accurate result module 203 include: result judging unit, for according to semantic analysis knot
Fruit judges in lower layer's scene with the presence or absence of result associated with semantic analysis result;As a result computing unit, for if there is
It is associated with semantic analysis result as a result, then to the semantic analysis result found be adapted result carried out by preset rules
It calculates, to obtain accurate result, and exports the judgement conclusion for having accurate result.
Optionally embodiment, scene analysis result include: that user is adult or children;Signaling module 205 is chatted to wrap
Include: first chats signal element, if being adult for scene analysis result, exports switching Chat mode to adult's chat
First chats signal;Second chats signal element, if being children, outputting cutting change owner Chat mode for scene analysis result
It chats to children, auxiliary Chat mode to the second of adult's chat chats signal.
In the specific implementation process, the outer scene information of user includes the outside of user class group and the used product of user
Definition, external definition refer to the target user of product.
In addition, also providing a kind of computer installation in the embodiment of the present invention, processor, which passes through, executes the computer instruction,
To realize following methods:
The chat message of user is obtained, chat message includes the chat content of user and the outer scene information of user;It presses
Preset rules carry out semantic analysis and scene analysis, and generative semantics analysis result and scene analysis result to chat message;Root
Accurate result is judged whether there is in lower layer's scene according to semantic analysis result;If there is accurate result, then accurate result is exported;Such as
Fruit does not have accurate result, then exports the chat signal for switching Chat mode according to scene analysis result.
It is that can lead to it will be understood by those skilled in the art that realizing all or part of the process in above-described embodiment method
Computer program is crossed to instruct relevant hardware and complete, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (ROM) or random access memory (RAM) etc..Computer processor is situated between for executing storage
The computer program stored in matter realizes following methods:
The chat message of user is obtained, chat message includes the chat content of user and the outer scene information of user;It presses
Preset rules carry out semantic analysis and scene analysis, and generative semantics analysis result and scene analysis result to chat message;Root
Accurate result is judged whether there is in lower layer's scene according to semantic analysis result;If there is accurate result, then accurate result is exported;Such as
Fruit does not have accurate result, then exports the chat signal for switching Chat mode according to scene analysis result.
What has been described above is only an embodiment of the present invention, and the common sense such as well known specific structure and characteristic are not made herein in scheme
Excessive description.It, without departing from the structure of the invention, can be with it should be pointed out that for those skilled in the art
Make several modifications and improvements.These also should be considered as protection scope of the present invention, these all will not influence what the present invention was implemented
Effect and patent practicability.The scope of protection required by this application should be based on the content of the claims, in specification
The records such as specific embodiment can be used for explaining the content of claim.
Claims (10)
1. a kind of control method of Chat mode characterized by comprising
The chat message of user is obtained, the chat message includes the chat content of user and the outer scene information of user;
Semantic analysis and scene analysis, and generative semantics analysis result and scene point are carried out to the chat message by preset rules
Analyse result;
Accurate result is judged whether there is in lower layer's scene according to the semantic analysis result;
If there is accurate result, then the accurate result is exported;
If exporting the chat signal for switching Chat mode according to the scene analysis result without accurate result.
2. the control method of Chat mode as described in claim 1, which is characterized in that described according to the semantic analysis result
Judging whether there is accurate result in lower layer's scene includes:
Judged in lower layer's scene according to the semantic analysis result with the presence or absence of associated with the semantic analysis result
As a result;
If there is associated with the semantic analysis result as a result, being then adapted to the semantic analysis result found
Result calculated by preset rules, to obtain accurate result, and export the judgement conclusion for having accurate result.
3. the control method of Chat mode as claimed in claim 2, which is characterized in that the scene analysis result includes: use
Family is adult or children;
The output for including: according to the chat signal of scene analysis result switching Chat mode
If the scene analysis result is adult, exports switching Chat mode to adult first to chat and chat signal;
If the scene analysis result be children, outputting cutting change owner Chat mode to children chat, auxiliary Chat mode at
The second of people's chat chats signal.
4. the control method of Chat mode as described in any one of claims 1-3, which is characterized in that the external field of the user
Scape information includes the external definition of user class group and the used product of user, and the external definition refers to the applicable people of the product
Group.
5. a kind of control device of Chat mode characterized by comprising
Chat message module, for obtaining the chat message of user, the chat message includes chat content and the user of user
Outer scene information;
Object module is analyzed, for carrying out semantic analysis and scene analysis to the chat message by preset rules, and generates language
Justice analysis result and scene analysis result;
Accurate result module, for judging whether there is accurate result in lower layer's scene according to the semantic analysis result;
As a result output module, for if there is accurate result, then exporting the accurate result;
Signaling module is chatted, if for without accurate result, output is chatted for switching according to the scene analysis result
The chat signal of mode.
6. the control device of Chat mode as claimed in claim 5, which is characterized in that the accurate result module includes:
As a result judging unit, for judging to whether there is and the semanteme in lower layer's scene according to the semantic analysis result
Analyze the associated result of result;
As a result computing unit, for if there is associated with the semantic analysis result as a result, then to described in finding
The adaptable result of semantic analysis result is calculated by preset rules, has accurate result to obtain accurate result, and export
Judgement conclusion.
7. the control device of Chat mode as claimed in claim 6, which is characterized in that the scene analysis result includes: use
Family is adult or children;
The chat signaling module includes:
First chats signal element, if being adult for the scene analysis result, exports switching Chat mode to adult
The first of chat chats signal;
Second chats signal element, if being children, outputting cutting change owner Chat mode to youngster for the scene analysis result
Child's chat, auxiliary Chat mode to the second of adult's chat chat signal.
8. such as the control device of the described in any item Chat modes of claim 5-7, which is characterized in that the external field of the user
Scape information includes the external definition of user class group and the used product of user, and the external definition refers to the applicable people of the product
Group.
9. a kind of computer installation, which is characterized in that including processor, the processor is based on executing and storing in memory
Calculation machine program realizes the control method of the Chat mode such as claim 1-4 any one.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that processor is for executing
The computer program stored in storage medium realizes the control method of the Chat mode as described in claim 1-4 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811602281.2A CN109739962A (en) | 2018-12-26 | 2018-12-26 | A kind of control method and device of Chat mode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811602281.2A CN109739962A (en) | 2018-12-26 | 2018-12-26 | A kind of control method and device of Chat mode |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109739962A true CN109739962A (en) | 2019-05-10 |
Family
ID=66359955
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811602281.2A Pending CN109739962A (en) | 2018-12-26 | 2018-12-26 | A kind of control method and device of Chat mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109739962A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160330150A1 (en) * | 2015-05-06 | 2016-11-10 | Kakao Corp. | Message service providing method for message service linked to search service and message server and user terminal to perform the method |
CN106559321A (en) * | 2016-12-01 | 2017-04-05 | 竹间智能科技(上海)有限公司 | The method and system of dynamic adjustment dialog strategy |
CN107609101A (en) * | 2017-09-11 | 2018-01-19 | 远光软件股份有限公司 | Intelligent interactive method, equipment and storage medium |
CN108021691A (en) * | 2017-12-18 | 2018-05-11 | 深圳前海微众银行股份有限公司 | Answer lookup method, customer service robot and computer-readable recording medium |
CN108108340A (en) * | 2017-11-28 | 2018-06-01 | 北京光年无限科技有限公司 | For the dialogue exchange method and system of intelligent robot |
-
2018
- 2018-12-26 CN CN201811602281.2A patent/CN109739962A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160330150A1 (en) * | 2015-05-06 | 2016-11-10 | Kakao Corp. | Message service providing method for message service linked to search service and message server and user terminal to perform the method |
CN106559321A (en) * | 2016-12-01 | 2017-04-05 | 竹间智能科技(上海)有限公司 | The method and system of dynamic adjustment dialog strategy |
CN107609101A (en) * | 2017-09-11 | 2018-01-19 | 远光软件股份有限公司 | Intelligent interactive method, equipment and storage medium |
CN108108340A (en) * | 2017-11-28 | 2018-06-01 | 北京光年无限科技有限公司 | For the dialogue exchange method and system of intelligent robot |
CN108021691A (en) * | 2017-12-18 | 2018-05-11 | 深圳前海微众银行股份有限公司 | Answer lookup method, customer service robot and computer-readable recording medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106951468B (en) | Talk with generation method and device | |
KR101925440B1 (en) | Method for providing vr based live video chat service using conversational ai | |
CN106328166B (en) | Human-computer dialogue abnormality detection system and method | |
CN108000526B (en) | Dialogue interaction method and system for intelligent robot | |
CN106599998B (en) | The method and system answered based on affective characteristics adjustment robot | |
CN107199572B (en) | Robot system and method based on intelligent sound source positioning and voice control | |
CN106139564B (en) | Image processing method and device | |
US11580454B2 (en) | Dynamic learning method and system for robot, robot and cloud server | |
CN110085225B (en) | Voice interaction method and device, intelligent robot and computer readable storage medium | |
CN108364645A (en) | A kind of method and device for realizing page interaction based on phonetic order | |
TW201804339A (en) | An automatic reply method and device thereof | |
CN109961780A (en) | A kind of man-machine interaction method, device, server and storage medium | |
CN106649704A (en) | Intelligent dialogue control method and intelligent dialogue control system | |
CN106021403B (en) | Client service method and device | |
CN107368572A (en) | Multifunctional intellectual man-machine interaction method and system | |
CN106503043B (en) | A kind of interaction data processing method for intelligent robot | |
CN108959531A (en) | Information search method, device, equipment and storage medium | |
CN107704612A (en) | Dialogue exchange method and system for intelligent robot | |
CN109979460A (en) | Visualize voice messaging exchange method and device | |
Fang et al. | Collaborative models for referring expression generation in situated dialogue | |
CN109154948B (en) | Method and apparatus for providing content | |
CN110019691A (en) | Conversation message treating method and apparatus | |
CN106127526A (en) | Intelligent robot system and method for work thereof | |
CN109977238A (en) | Generate the system for drawing this, method and apparatus | |
CN114550705A (en) | Dialogue recommendation method, model training method, device, equipment and medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190510 |
|
RJ01 | Rejection of invention patent application after publication |