Interaction Processing Method, Device, and Computer Equipment Based on Scenario Dynamic Configuration
Through the interactive processing method based on dynamic scenario configuration, interactive scene information is obtained and matched to build processing examples, and the existing interactive processing system has been solved, and efficient and flexible interactive processing is achieved.
Patent Information
- Application Number
- CN202010346507.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-27
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2040-04-27
AI Technical Summary
The existing interactive processing system has a narrow scope of application and is not very flexible in use, resulting in high construction and maintenance costs and low interaction processing efficiency.
Using an interactive processing method based on dynamic configuration of the scene, by obtaining the target text information and interactive scene information corresponding to the pending information, a pre-stored configuration database is matched to obtain the target configuration information, and a processing instance is constructed through class reflection, and the processing instance is executed to obtain the interaction information and feedback to the client.
It realizes an interactive processing system with a wide range of application and high flexibility in use, reduces construction and maintenance costs, and improves interactive processing efficiency.
Smart Images

Figure CN111694926B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of development assistance technologies, and in particular, to an interaction processing method, apparatus, and computer device based on scenario dynamic configuration. Background Art
[0002] With the development of artificial intelligence, enterprises can build intelligent interaction processing systems based on artificial intelligence. For example, an intelligent voice customer service in the built intelligent voice system can be used to replace the traditional artificial voice customer service. The intelligent voice system answers customer calls all the time and intelligently. After voice recognition, it answers questions based on the questions raised by customers, so as to complete the process of interacting with customers through the intelligent voice customer service, improve the service efficiency and quality of voice calls, and reduce the operating costs of enterprises. However, due to the large number of businesses in large enterprises, the number of interaction scenarios is extremely large. Although including all interaction scenarios in the interaction processing system expands the number of applicable interaction scenarios, the resulting interaction processing system is too large, and its construction and maintenance costs are extremely high, and the efficiency of interaction processing is greatly reduced. To avoid the resulting interaction processing system from being too large, traditional interaction processing systems are all for specific interaction scenarios to arrange the code included in the system. A resulting interaction processing system usually can only be applicable to specific interaction scenarios, so the applicable range is narrow and the flexibility of use is not high. Therefore, the interaction processing systems in the existing technical methods have the problems of narrow applicable range and low flexibility of use. Summary of the Invention
[0003] Embodiments of the present invention provide an interaction processing method, apparatus, computer device, and storage medium based on scenario dynamic configuration, aiming to solve the problems of narrow applicable range and low flexibility of use existing in the interaction processing systems in the existing technical methods.
[0004] In a first aspect, an embodiment of the present invention provides an interaction processing method based on scenario dynamic configuration, which includes:
[0005] If receiving information to be processed from a client, obtaining target text information corresponding to the information to be processed;
[0006] Obtaining interaction scenario information corresponding to the information to be processed;
[0007] Obtaining configuration information matching the interaction scenario information in a pre-stored configuration database as target configuration information;
[0008] Performing class reflection on a pre-stored general framework according to the target configuration information to construct a corresponding processing instance;
[0009] Process the target text information by executing the processing instance to obtain interaction information corresponding to the information to be processed, and feedback the interaction information to the client to complete the interaction processing.
[0010] In a second aspect, an embodiment of the present invention provides an interaction processing device based on scenario dynamic configuration, which includes:
[0011] A target text information acquisition unit, configured to acquire target text information corresponding to the information to be processed if receiving the information to be processed from a client;
[0012] An interaction scenario information acquisition unit, configured to acquire interaction scenario information corresponding to the information to be processed;
[0013] A target configuration information acquisition unit, configured to acquire configuration information matching the interaction scenario information in a pre-stored configuration database as target configuration information;
[0014] A processing instance construction unit, configured to perform class reflection on a pre-stored general framework according to the target configuration information to construct a corresponding processing instance;
[0015] A processing instance execution unit, configured to process the target text information by executing the processing instance to obtain interaction information corresponding to the information to be processed, and feedback the interaction information to the client to complete the interaction processing.
[0016] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the interaction processing method based on scenario dynamic configuration described in the first aspect above is implemented.
[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to execute the interaction processing method based on scenario dynamic configuration described in the first aspect above.
[0018] An embodiment of the present invention provides an interaction processing method, apparatus, and computer device based on scenario dynamic configuration. By obtaining the target text information corresponding to the information to be processed and further obtaining the corresponding interaction scenario information, after obtaining the target configuration information matching the interaction scenario information, class reflection is performed to construct a processing instance, and the processing instance is executed to process the target text information to obtain interaction information and feedback it to the client, thus completing the interaction processing process. The corresponding processing instance is dynamically configured based on the interaction scenario information to complete the interaction processing. This scenario dynamic configuration process can be applied to any interaction scenario, ensuring the interaction processing efficiency while having the characteristics of wide applicability and higher flexibility in use. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0020] Figure 1 It is a schematic flowchart of the interaction processing method based on scenario dynamic configuration provided by the embodiment of the present invention;
[0021] Figure 2 It is a schematic diagram of the application scenario of the interaction processing method based on scenario dynamic configuration provided by the embodiment of the present invention;
[0022] Figure 3 It is a schematic sub - flowchart of the interaction processing method based on scenario dynamic configuration provided by the embodiment of the present invention;
[0023] Figure 4 It is another schematic sub - flowchart of the interaction processing method based on scenario dynamic configuration provided by the embodiment of the present invention;
[0024] Figure 5 It is another schematic sub - flowchart of the interaction processing method based on scenario dynamic configuration provided by the embodiment of the present invention;
[0025] Figure 6 It is another schematic sub - flowchart of the interaction processing method based on scenario dynamic configuration provided by the embodiment of the present invention;
[0026] Figure 7 It is a schematic block diagram of the interaction processing apparatus based on scenario dynamic configuration provided by the embodiment of the present invention;
[0027] Figure 8 It is a schematic block diagram of the computer device provided by the embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0028] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part rather than all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0029] It should be understood that when used in this specification and the appended claims, the terms "comprises" and "comprising" indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.
[0030] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in this specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" are intended to include the plural forms.
[0031] It should be further understood that the term "and / or" used in this specification of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0032] Please refer to Figure 1 , Figure 1 which is a schematic flowchart of an interaction processing method based on scenario dynamic configuration provided by an embodiment of the present invention. Figure 2 is a schematic diagram of an application scenario of the interaction processing method based on scenario dynamic configuration provided by an embodiment of the present invention. The interaction processing method based on scenario dynamic configuration is applied to the management server 10, and this method is executed through application software installed in the management server 10. The management server 10 communicates with the client 20 by establishing a network connection with the client 20. The user of the client 20 can send an interaction processing request to the management server 10 through the client. The management server 10 executes the interaction processing method based on scenario dynamic configuration to process the interaction processing request, and feeds back corresponding interaction information to the client 20 to complete the interaction processing. Among them, the management server 10 is the enterprise terminal for executing the interaction processing method based on scenario dynamic configuration, and the client 20 is the terminal device for sending the interaction processing request. The client 20 can be a desktop computer, a laptop computer, a tablet computer, a mobile phone, or the like. Figure 2 Only one client 20 is schematically shown in [the figure] for data information transmission with the management server 10. In actual applications, the management server 10 can also perform data information transmission with multiple clients 20 simultaneously.
[0033] As Figure 1 shown, the method includes steps S110 to S150.
[0034] S110. If receiving the information to be processed from the client, obtain the target text information corresponding to the information to be processed.
[0035] If receiving the information to be processed from the client, obtain the target text information corresponding to the information to be processed. The client sends the information to be processed to the management server through the client. The information to be processed can be any request information that needs to be interactively processed by the management server. After receiving the information to be processed, the management server can perform interactive processing on the information to be processed to obtain the corresponding interactive information and feedback it to the client. The client receives the interactive information to complete the process of interactively processing the information to be processed.
[0036] The information to be processed can be text, voice, or short video containing question information sent by the customer. The processing logics for interactively processing question information in different application scenarios are different. For example, if the customer enters text in the question box on the terminal page and clicks the confirmation button, the client will send the text as the information to be processed to the management server; if the customer clicks the voice recording button on the terminal page, speaks out their question and clicks the confirmation button, the client will send the recorded voice as the information to be processed to the management server; if the customer clicks the video recording button on the terminal page, speaks out their question facing the video capture device of the client and clicks the confirmation button, the client will send the recorded short video as the information to be processed to the management server.
[0037] In one embodiment, as Figure 3 shown, step S110 includes sub-steps S111, S112, and S113.
[0038] S111. Judge whether the information to be processed is text information.
[0039] Judge whether the information to be processed is text information. Specifically, the information to be processed contains corresponding format identification information. The format identification information is the information used to identify the format of the information to be processed. Whether the information to be processed is text information can be judged through the format identification information of the information to be processed.
[0040] For example, if the format identification information is txt, string, the corresponding information to be processed is text information; if the format identification information is wav, mp3, wma, the corresponding information to be processed is audio information; if the format identification information is avi, flv, rmvb, the corresponding information to be processed is video information.
[0041] S112: If the information to be processed is not text information, recognize the voice information in the information to be processed according to a preset voice recognition model to obtain target text information corresponding to the information to be processed.
[0042] If the information to be processed is not text information, the voice information in the information to be processed is recognized according to a preset voice recognition model to obtain target text information corresponding to the information to be processed. If the information to be processed is not text information, the information to be processed may be audio information or video information, and the audio information or video information contains voice information. The voice recognition model is a model for recognizing and converting the voice information contained in the audio information or video information, wherein the voice recognition model includes an acoustic model, a voice feature dictionary, and a semantic analysis model.
[0043] Specifically, the step of identifying the voice information in the information to be processed includes: 1. Segmenting the information to be processed according to the acoustic model in the voice recognition model to obtain multiple phonemes contained in the information to be processed. Specifically, the voice information contained in the audio information or video information is composed of phonemes of multiple character pronunciations, and the phoneme of a character includes the frequency and timbre of the pronunciation of the character. The acoustic model contains the phonemes of all character pronunciations. By matching the voice information with all the phonemes in the acoustic model, the phonemes of a single character in the voice information can be segmented, and the multiple phonemes contained in the information to be processed are finally obtained by segmentation. The phonemes are matched according to the voice feature dictionary in the voice recognition model to convert the phonemes into pinyin information. The voice feature dictionary contains the phoneme information corresponding to all character pinyins. By matching the obtained phonemes with the phoneme information corresponding to the character pinyins, the phonemes of a single character can be converted into the character pinyins matching the phonemes in the voice feature dictionary, so as to realize the conversion of all the phonemes contained in the voice information into pinyin information. The pinyin information is semantically parsed according to the semantic parsing model in the speech recognition model to obtain target text information corresponding to the information to be processed. The semantic parsing model contains the corresponding mapping relationship between the pinyin information and the text information. The obtained pinyin information can be semantically parsed through the mapping relationship contained in the semantic parsing model to convert the pinyin information into the corresponding target text information.
[0044] For example, the pinyin "bàn, lǐ" corresponds to the text information "handle" in the semantic parsing model.
[0045] S113: If the information to be processed is text information, determine the information to be processed as target text information.
[0046] If the information to be processed is text information, determine the information to be processed as the target text information. If the information to be processed is text information, there is no need to process the information to be processed, and the information to be processed can be directly determined as the target text information for subsequent processing.
[0047] S120. Obtain the interaction scenario information corresponding to the information to be processed.
[0048] Obtain the interaction scenario information corresponding to the information to be processed. When processing the information to be processed, it is necessary to first obtain the interaction scenario information corresponding to the information to be processed. The interaction scenario information is the information used to define the specific scenario for interactive processing of the information to be processed. The interaction scenario information can involve any business node in the services provided by the enterprise. For example, the interaction scenario information can be product pre-sales consultation, business handling, after-sales service, collection business, etc.
[0049] The information to be processed may or may not include interaction scenario information. The information to be processed also includes an item of interaction scenario, and this item of interaction scenario corresponds to an item value. For example, if the customer clearly knows the business node for the interactive processing they need to perform, they can select a business node from the default business nodes as the item value of the interaction scenario item and add it to the information to be processed when sending the information to be processed. In this case, the information to be processed received by the management server must include interaction scenario information; if the customer cannot clearly identify the business node for the interactive processing they need to perform, they cannot select a business node as the item value of the interaction scenario item, but they can still send the information to be processed without interaction scenario information to the management server.
[0050] In one embodiment, as Figure 4 shown, step S120 includes sub-steps S121, S122, and S123.
[0051] S121. Determine whether the information to be processed contains an interaction scenario type.
[0052] Determine whether the information to be processed contains an interaction scenario type. Specifically, determine whether the item value of the interaction scenario item is empty. If the item value of this item is empty, it indicates that the information to be processed does not contain an interaction scenario type. If the item value of this item is not empty, it indicates that the information to be processed contains an interaction scenario type.
[0053] S122. If the information to be processed contains an interaction scenario type, determine the interaction scenario type as the interaction scenario information of the information to be processed.
[0054] S123. If the information to be processed does not include an interaction scenario type, obtain, according to a preset interaction scenario classification model, an interaction scenario type that matches the target text information as the interaction scenario information of the information to be processed.
[0055] If the information to be processed does not include an interaction scenario type, obtain, according to a preset interaction scenario classification model, an interaction scenario type that matches the target text information as the interaction scenario information of the information to be processed. If the information to be processed does not include an interaction scenario type, it is necessary to obtain, through the interaction scenario classification model, an interaction scenario type that matches the target text information as the corresponding interaction scenario information. Among them, the interaction scenario classification model includes character screening rules and multiple interaction scenario types.
[0056] In an embodiment, as Figure 5 shown, step S123 includes sub-steps S1231 and S1232.
[0057] S1231. Screen the target text information according to the character screening rules to obtain screened text information.
[0058] Screen the target text information according to the character screening rules to obtain screened text information. The character screening rules are the rule information used to screen the target text information. Specifically, the character screening rules can screen out the characters with little meaning in the target text information, and the characters included in the obtained screened text information are all characters with practical significance.
[0059] For example, in the character screening rules, the characters to be screened can be set as "please", "of", "ground", etc.
[0060] S1232. Calculate the matching degree between each interaction scenario type and the screened text information, and use the interaction scenario type with the highest matching degree as the interaction scenario information of the information to be processed.
[0061] Calculate the matching degree between each interaction scenario type and the screened text information, and use the interaction scenario type with the highest matching degree as the interaction scenario information of the information to be processed. Each interaction scenario type included in the interaction scenario classification model corresponds to one or more scenario keywords. According to the screened text information and the scenario keywords corresponding to each interaction scenario type, the matching degree between the screened text information and each interaction scenario type can be calculated, and the interaction scenario type with the highest matching degree is determined as the interaction scenario information of the information to be processed. Specifically, each scenario keyword included in the interaction scenario type corresponds to a weight value. Divide the weight value of the scenario keyword that matches the screened text information and each interaction scenario type by the number of characters in the screened text information to obtain the corresponding matching degree.
[0062] For example, if the interaction scenario type is pre-sales consultation of a product, the scenario keywords of this interaction scenario type include "introduction" with a weight value of 2.8, "understanding" with a weight value of 2.4, and "product" with a weight value of 3.6. The filtered text information is "Introduce the XX product", then the matching degree between the filtered text information and this interaction scenario type is (2.8 + 3.6) / 8 = 80%.
[0063] S130. Obtain the configuration information that matches the interaction scenario information in the pre-stored configuration database as the target configuration information.
[0064] Obtain the configuration information that matches the interaction scenario information in the pre-stored configuration database as the target configuration information. The configuration database is a database in the management server for storing configuration information. A set of configuration information corresponding to each interaction scenario information is stored in the configuration database. The set of configuration information corresponding to the interaction scenario information is the basic information for interacting with the information to be processed in this interaction scenario. Based on the interaction scenario information, a set of configuration information that matches this interaction scenario information in the configuration database can be obtained as the target configuration information. Specifically, the configuration information may include attribute fields (fields) and methods (methods) to be configured. Based on specific attribute fields and methods, the target text information corresponding to the information to be processed can be interactively processed to obtain interaction information that matches this information to be processed.
[0065] For example, if the interaction scenario information is pre-sales consultation of a product, the method in the target configuration information corresponding to this interaction scenario information is: obtain "XX product" in the target text information; the attribute field is: if "XX product" = "AA product", the interaction information = "XXX"; if "XX product" = "BB product", the interaction information = "XXXX"; if "XX product" = "CC product", the interaction information = "XXXXX"; if "XX product" = other, the interaction information = "null".
[0066] S140. Perform class reflection on the pre-stored general framework according to the target configuration information to construct a corresponding processing instance.
[0067] Perform class reflection on the pre-stored general framework according to the target configuration information to construct a corresponding processing instance. The general framework contains multiple default classes. The general framework is the general code framework pre-stored in the management server. The general code framework only contains the framework for processing the information to be processed and does not contain the processing logic for interactive processing and the expected processing results. Therefore, the general code framework can be applied to any interactive scenario. Among them, class reflection is a reflection mechanism in Java programs. Class reflection allows the Java program framework to check itself and directly operate on the internal attributes or methods of the program framework; class reflection allows the program framework to obtain the internal information of any class with a known name by using the application programming interface (Reflection APIs) of class reflection, including: package, type parameters, superclass, implemented interfaces, fields, constructors, methods, etc., and can dynamically change the field values of the fields or call methods during the execution process. Performing class reflection on the general framework based on the target configuration information can configure the attribute fields and methods included in the target configuration information in the general framework to obtain a corresponding processing instance, that is, it can complete the dynamic configuration of the processing instance based on the interactive scenario information. This configuration process is also the process of dynamically changing the field values of the attribute fields and calling methods. The obtained processing instance can perform interactive processing on the information to be processed with the processing logic and expected processing results in the processing instance to obtain the corresponding interactive information. The process of dynamic configuration based on the scenario is also the process of dynamically configuring the corresponding processing instance based on the dynamic information of the interactive scenario. This process of scenario dynamic configuration can be applied to any interactive scenario. Therefore, while ensuring the efficiency of interactive processing, it has the characteristics of wide application range and higher flexibility in use.
[0068] In one embodiment, as Figure 6 shown, step S140 includes sub-steps S141 and S142.
[0069] S141. Obtain the class in the general framework that matches the target configuration information as the target class.
[0070] Obtain the class in the general framework that matches the target configuration information as the target class. The general framework contains multiple classes. In a specific interactive scenario, only some classes in the general framework may be needed, or all classes included in the general framework may be needed. If the target configuration information contains the class names required in the general framework in the corresponding interactive scenario, the class in the general framework that matches the above class names can be used as the target class.
[0071] S142. Configure the parameter values corresponding to the configuration values in the target class according to the configuration values in the target configuration information, so as to construct a processing instance corresponding to the target configuration information.
[0072] Configure the parameter values corresponding to the configuration values in the target class according to the configuration values in the target configuration information, so as to construct a processing instance corresponding to the target configuration information. The attribute fields and methods corresponding to each target class in the target configuration information all contain corresponding configuration values. Configuring the parameter values in a target class according to the configuration values in the target configuration information is also to dynamically change the field values of the corresponding attribute fields in the target class and call the corresponding methods in the target class. After completing the configuration of the parameter values in all target classes, the corresponding processing example can be obtained.
[0073] S150. Process the target text information by executing the processing instance to obtain interaction information corresponding to the information to be processed, and feedback the interaction information to the client to complete the interaction processing.
[0074] Process the target text information by executing the processing instance to obtain interaction information corresponding to the information to be processed, and feedback the interaction information to the client to complete the interaction processing. Executing the obtained processing instance can perform interaction processing on the target text information corresponding to the information to be processed with the processing logic and expected processing results in the processing instance, obtain the corresponding interaction information and feedback it to the client, which is also to complete a process of performing interaction processing on the information to be processed. Among them, the interaction information can be text information, audio information, video information, or a combination of text information and audio information or a combination of text information and video information. Specifically, the interaction information can be to answer the questions raised by the client. For example, to explain in detail the product content included in the product proposed by the client; it can also be to feedback corresponding guiding information according to the client's question information to guide the client to perform relevant operations for business handling using the client.
[0075] For example, if "XX product" included in the target text information = "CC product", and the interaction information corresponding to the execution of the processing instance is "XXXXX", then "XXXXX" is feedback to the client to complete the interaction processing.
[0076] The technical method in this application can be applied to application scenarios including intelligent interaction scenarios such as smart government affairs / smart urban management / smart communities / smart security / smart logistics / smart healthcare / smart education / smart environmental protection / smart transportation, etc., so as to promote the construction of smart cities.
[0077] In the interaction processing method based on scenario dynamic configuration provided by the embodiments of the present invention, by obtaining the target text information corresponding to the information to be processed and further obtaining the corresponding interaction scenario information, after obtaining the target configuration information matching the interaction scenario information, class reflection is performed to construct a processing instance, and the processing instance is executed to process the target text information to obtain interaction information and feedback it to the client, thus completing the interaction processing process. The corresponding processing instance is dynamically configured based on the interaction scenario information to complete the interaction processing. This scenario dynamic configuration process can be applied to any interaction scenario, and while ensuring the interaction processing efficiency, it has the characteristics of wide application scope and higher usage flexibility.
[0078] The embodiments of the present invention further provide an interaction processing device based on scenario dynamic configuration. This interaction processing device based on scenario dynamic configuration is used to execute any embodiment of the foregoing interaction processing method based on scenario dynamic configuration. Specifically, please refer to Figure 7 , Figure 7 which is a schematic block diagram of the interaction processing device based on scenario dynamic configuration provided by the embodiments of the present invention. This interaction processing device based on scenario dynamic configuration can be configured in the management server 10.
[0079] As Figure 7 shown, the interaction processing device 100 based on scenario dynamic configuration includes: a target text information acquisition unit 110, an interaction scenario information acquisition unit 120, a target configuration information acquisition unit 130, a processing instance construction unit 140, and a processing instance execution unit 150.
[0080] The target text information acquisition unit 110 is used to, if receiving the information to be processed from the client, acquire the target text information corresponding to the information to be processed.
[0081] In other embodiments of the invention, the target text information acquisition unit 110 includes: a to-be-processed information judgment unit, a to-be-processed information recognition unit, and a target text information determination unit.
[0082] The to-be-processed information judgment unit is used to judge whether the to-be-processed information is text information; the to-be-processed information recognition unit is used to, if the to-be-processed information is not text information, recognize the voice information in the to-be-processed information according to a preset voice recognition model to obtain the target text information corresponding to the to-be-processed information; the target text information determination unit is used to, if the to-be-processed information is text information, determine the to-be-processed information as the target text information.
[0083] The interaction scenario information acquisition unit 120 is used to acquire the interaction scenario information corresponding to the information to be processed.
[0084] In other embodiments of the invention, the interaction scenario information acquisition unit 120 includes: an interaction scenario judgment unit, an interaction scenario information determination unit, and an interaction scenario classification unit.
[0085] The interaction scenario judgment unit is configured to judge whether the information to be processed contains an interaction scenario type; the interaction scenario information determination unit is configured to, if the information to be processed contains an interaction scenario type, determine the interaction scenario type as the interaction scenario information of the information to be processed; the interaction scenario classification unit is configured to, if the information to be processed does not contain an interaction scenario type, obtain an interaction scenario type that matches the target text information according to a preset interaction scenario classification model as the interaction scenario information of the information to be processed.
[0086] In other embodiments of the invention, the interaction scenario classification unit includes: a filtered text information acquisition unit and an interaction scenario matching unit.
[0087] The filtered text information acquisition unit is configured to filter the target text information according to the character filtering rule to obtain filtered text information; the interaction scenario matching unit is configured to calculate the matching degree between each interaction scenario type and the filtered text information, and use the interaction scenario type with the highest matching degree as the interaction scenario information of the information to be processed.
[0088] The target configuration information acquisition unit 130 is configured to obtain configuration information that matches the interaction scenario information in a pre-stored configuration database as target configuration information.
[0089] The processing instance construction unit 140 is configured to perform class reflection on a pre-stored general framework according to the target configuration information to construct a corresponding processing instance.
[0090] In other embodiments of the invention, the processing instance construction unit 140 includes: a target class acquisition unit and a parameter configuration unit.
[0091] The target class acquisition unit is configured to obtain a class that matches the target configuration information in the general framework as a target class; the parameter configuration unit is configured to configure parameter values corresponding to the configuration values in the target class according to the configuration values in the target configuration information to construct a processing instance corresponding to the target configuration information.
[0092] The processing instance execution unit 150 is configured to process the target text information by executing the processing instance to obtain interaction information corresponding to the information to be processed, and feedback the interaction information to the client to complete the interaction process.
[0093] In the interactive processing device based on scenario dynamic configuration provided by the embodiments of the present invention, the above-mentioned interactive processing method based on scenario dynamic configuration is applied. By obtaining the target text information corresponding to the information to be processed and further obtaining the corresponding interactive scenario information, after obtaining the target configuration information matching the interactive scenario information, class reflection is performed to construct a processing instance, and the processing instance is executed to process the target text information to obtain interactive information and feedback it to the client, then the interactive processing process can be completed. The corresponding processing instance is dynamically configured based on the interactive scenario information to complete the interactive processing. This scenario dynamic configuration process can be applied to any interactive scenario, which has the characteristics of wide application range and higher flexibility in use while ensuring the interactive processing efficiency.
[0094] The above-mentioned interactive processing device based on scenario dynamic configuration can be implemented in the form of a computer program, and this computer program can run on a computer device as shown in Figure 8 .
[0095] Please refer to Figure 8 , Figure 8 which is a schematic block diagram of the computer device provided by the embodiments of the present invention.
[0096] Referring to Figure 8 , the computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501. Among them, the memory may include a non-volatile storage medium 503 and an internal memory 504.
[0097] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can be made to execute the interactive processing method based on scenario dynamic configuration.
[0098] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.
[0099] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can be made to execute the interactive processing method based on scenario dynamic configuration.
[0100] The network interface 505 is used for network communication, such as providing the transmission of data information, etc. Those skilled in the art can understand that Figure 8 the structure shown in
[0101] Among them, the processor 502 is used to run the computer program 5032 stored in the memory to implement the following functions: if the information to be processed from the client is received, obtain the target text information corresponding to the information to be processed; obtain the interaction scenario information corresponding to the information to be processed; obtain the configuration information matching the interaction scenario information in the pre-stored configuration database as the target configuration information; perform class reflection on the pre-stored general framework according to the target configuration information to construct the corresponding processing instance; process the target text information by executing the processing instance to obtain the interaction information corresponding to the information to be processed, and feedback the interaction information to the client to complete the interaction processing.
[0102] In one embodiment, when the processor 502 executes the step of if the information to be processed from the client is received, obtain the target text information corresponding to the information to be processed, the following operations are performed: determine whether the information to be processed is text information; if the information to be processed is not text information, identify the voice information in the information to be processed according to the pre-set voice recognition model to obtain the target text information corresponding to the information to be processed; if the information to be processed is text information, determine the information to be processed as the target text information.
[0103] In one embodiment, when the processor 502 executes the step of obtain the interaction scenario information corresponding to the information to be processed, the following operations are performed: determine whether the interaction scenario type is included in the information to be processed; if the interaction scenario type is included in the information to be processed, determine the interaction scenario type as the interaction scenario information of the information to be processed; if the interaction scenario type is not included in the information to be processed, obtain the interaction scenario type matching the target text information according to the pre-set interaction scenario classification model as the interaction scenario information of the information to be processed.
[0104] In one embodiment, when the processor 502 executes the step of if the interaction scenario type is not included in the information to be processed, obtain the interaction scenario type matching the target text information according to the pre-set interaction scenario classification model as the interaction scenario information of the information to be processed, the following operations are performed: screen the target text information according to the character screening rule to obtain the screened text information; calculate the matching degree between each interaction scenario type and the screened text information, and use the interaction scenario type with the highest matching degree as the interaction scenario information of the information to be processed.
[0105] In one embodiment, when the processor 502 executes the step of performing class reflection on a pre-stored general framework according to the target configuration information to construct a corresponding processing instance, the following operations are performed: obtaining a class that matches the target configuration information in the general framework as a target class; configuring parameter values corresponding to the configuration values in the target class according to the configuration values in the target configuration information to construct a processing instance corresponding to the target configuration information.
[0106] Those skilled in the art can understand that Figure 8 the embodiments of the computer device shown in do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements. For example, in some embodiments, the computer device may only include a memory and a processor. In such an embodiment, the structures and functions of the memory and the processor are the same as those in Figure 8 the embodiment shown, and will not be described in detail here.
[0107] It should be understood that in the embodiments of the present invention, the processor 502 may be a central processing unit (CPU), and this processor 502 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0108] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented: if receiving information to be processed from a client, obtaining target text information corresponding to the information to be processed; obtaining interaction scenario information corresponding to the information to be processed; obtaining configuration information that matches the interaction scenario information in a pre-stored configuration database as target configuration information; performing class reflection on a pre-stored general framework according to the target configuration information to construct a corresponding processing instance; processing the target text information by executing the processing instance to obtain interaction information corresponding to the information to be processed, and feeding back the interaction information to the client to complete the interaction process.
[0109] In one embodiment, the step of obtaining target text information corresponding to the information to be processed if receiving the information to be processed from a client includes: determining whether the information to be processed is text information; if the information to be processed is not text information, recognizing the voice information in the information to be processed according to a preset voice recognition model to obtain target text information corresponding to the information to be processed; if the information to be processed is text information, determining the information to be processed as the target text information.
[0110] In one embodiment, the step of obtaining interaction scenario information corresponding to the information to be processed includes: determining whether the information to be processed contains an interaction scenario type; if the information to be processed contains an interaction scenario type, determining the interaction scenario type as the interaction scenario information of the information to be processed; if the information to be processed does not contain an interaction scenario type, obtaining an interaction scenario type matching the target text information according to a preset interaction scenario classification model as the interaction scenario information of the information to be processed.
[0111] In one embodiment, the step of, if the information to be processed does not contain an interaction scenario type, obtaining an interaction scenario type matching the target text information according to a preset interaction scenario classification model as the interaction scenario information of the information to be processed includes: screening the target text information according to the character screening rule to obtain screened text information; calculating the matching degree between each interaction scenario type and the screened text information, and taking the interaction scenario type with the highest matching degree as the interaction scenario information of the information to be processed.
[0112] In one embodiment, the step of performing class reflection on a pre-stored general framework according to the target configuration information to construct a corresponding processing instance includes: obtaining a class in the general framework that matches the target configuration information as the target class; configuring parameter values corresponding to the configuration value in the target class according to the configuration value in the target configuration information to construct a processing instance corresponding to the target configuration information.
[0113] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, apparatuses, and units can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein. Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0114] In several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, or units with the same function can be aggregated into one unit. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed couplings or direct couplings or communication connections to each other can be indirect couplings or communication connections through some interfaces, devices, or units, or can be electrical, mechanical, or other forms of connection.
[0115] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place, or can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
[0116] In addition, the functional units in each embodiment of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-integrated units can be implemented in the form of hardware or in the form of software functional units.
[0117] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a computer-readable storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention.
[0118] The computer-readable storage medium is a physical, non-transitory storage medium. The computer-readable storage medium may be an internal storage unit of the aforementioned device, such as a physical storage medium like the hard disk or memory of the device. The storage medium may also be an external storage device of the device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc., equipped on the device.
[0119] The above is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. An interaction processing method based on scenario dynamic configuration, which is applied to a management server that communicates with at least one client. Characterized in that, The method includes: If receiving information to be processed from a client, obtaining target text information corresponding to the information to be processed; Obtaining interaction scenario information corresponding to the information to be processed; Obtaining configuration information matching the interaction scenario information in a pre-stored configuration database as target configuration information; Performing class reflection on a pre-stored general framework according to the target configuration information to construct a corresponding processing instance; The performing class reflection on a pre-stored general framework according to the target configuration information to construct a corresponding processing instance includes: configuring the attribute fields and methods included in the target configuration information in the general framework, dynamically changing the field values of the attribute fields and invoking the methods to configure and obtain a corresponding processing instance; Processing the target text information by executing the processing instance to obtain interaction information corresponding to the information to be processed, and feeding back the interaction information to the client to complete the interaction processing; The performing class reflection on a pre-stored general framework according to the target configuration information to construct a corresponding processing instance includes: Obtaining a class in the general framework that matches the target configuration information as a target class; Configuring parameter values corresponding to the configuration values in the target class according to the configuration values in the target configuration information to construct a processing instance corresponding to the target configuration information; the configuring parameter values corresponding to the configuration values in the target class according to the configuration values in the target configuration information includes dynamically changing the field values of the corresponding attribute fields in the target class and invoking the corresponding methods in the target class.
2. The interaction processing method based on scenario dynamic configuration according to claim 1, Characterized in that, The if receiving information to be processed from a client, obtaining target text information corresponding to the information to be processed includes: Judging whether the information to be processed is text information; If the information to be processed is not text information, identifying the voice information in the information to be processed according to a pre-set voice recognition model to obtain target text information corresponding to the information to be processed; If the information to be processed is text information, determining the information to be processed as target text information.
3. The interaction processing method based on scenario dynamic configuration according to claim 1, Characterized in that, The obtaining interaction scenario information corresponding to the information to be processed includes: Judging whether the information to be processed contains an interaction scenario type; If the information to be processed contains an interaction scenario type, determining the interaction scenario type as the interaction scenario information of the information to be processed; If the information to be processed does not contain an interaction scenario type, obtaining an interaction scenario type matching the target text information according to a pre-set interaction scenario classification model as the interaction scenario information of the information to be processed.
4. The interaction processing method based on scenario dynamic configuration according to claim 3, Characterized in that, The interactive scenario classification model includes a character screening rule and multiple interactive scenario types. Obtaining the interactive scenario type that matches the target text information as the interactive scenario information of the to-be-processed information according to the preset interactive scenario classification model includes: Screening the target text information according to the character screening rule to obtain screened text information; Calculating the matching degree between each interactive scenario type and the screened text information, and using the interactive scenario type with the highest matching degree as the interactive scenario information of the to-be-processed information.
5. An interactive processing device based on scenario dynamic configuration Characterized in that It includes: A target text information acquisition unit, configured to obtain target text information corresponding to the to-be-processed information if receiving the to-be-processed information from a client; An interactive scenario information acquisition unit, configured to obtain interactive scenario information corresponding to the to-be-processed information; A target configuration information acquisition unit, configured to obtain the configuration information matching the interactive scenario information in a pre-stored configuration database as target configuration information; A processing instance construction unit, configured to perform class reflection on a pre-stored general framework according to the target configuration information to construct a corresponding processing instance; Performing class reflection on the pre-stored general framework according to the target configuration information to construct a corresponding processing instance includes: configuring the attribute fields and methods included in the target configuration information in the general framework, dynamically changing the field values of the attribute fields and invoking the methods to configure and obtain a corresponding processing instance; A processing instance execution unit, configured to process the target text information by executing the processing instance to obtain interactive information corresponding to the to-be-processed information, and feedback the interactive information to the client to complete the interactive processing; Performing class reflection on the pre-stored general framework according to the target configuration information to construct a corresponding processing instance includes: Obtaining the class in the general framework that matches the target configuration information as the target class; Configuring the parameter values corresponding to the configuration values in the target class according to the configuration values in the target configuration information to construct a processing instance corresponding to the target configuration information; configuring the parameter values corresponding to the configuration values in the target class according to the configuration values in the target configuration information includes dynamically changing the field values of the corresponding attribute fields in the target class and invoking the corresponding methods in the target class.
6. The interactive processing device based on scenario dynamic configuration according to claim 5 Characterized in that The target text information acquisition unit includes: A to-be-processed information judgment unit, configured to judge whether the to-be-processed information is text information; A to-be-processed information recognition unit, configured to, if the to-be-processed information is not text information, recognize the voice information in the to-be-processed information according to a preset voice recognition model to obtain target text information corresponding to the to-be-processed information; A target text information determination unit, configured to, if the to-be-processed information is text information, determine the to-be-processed information as target text information.
7. The interactive processing device based on scenario dynamic configuration according to claim 5 It is characterized in that the interaction scenario information acquisition unit includes: an interaction scenario judgment unit, configured to judge whether the information to be processed contains an interaction scenario type; an interaction scenario information determination unit, configured to, if the information to be processed contains an interaction scenario type, determine the interaction scenario type as the interaction scenario information of the information to be processed; an interaction scenario classification unit, configured to, if the information to be processed does not contain an interaction scenario type, obtain an interaction scenario type matching the target text information as the interaction scenario information of the information to be processed according to a pre-set interaction scenario classification model.
8. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, It is characterized in that when the processor executes the computer program, the interaction processing method based on scenario dynamic configuration as described in any one of claims 1 to 4 is implemented.
9. A computer-readable storage medium, It is characterized in that the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to execute the interaction processing method based on scenario dynamic configuration as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Grain condition data acquisition method and grain condition data acquisition platform
CN110019483A
Business processing method and device of terminal, terminal and computer readable storage medium
CN111063340A