WO2021217915A1 - Human-machine dialog method and apparatus, and computer device and storage medium - Google Patents

Human-machine dialog method and apparatus, and computer device and storage medium Download PDF

Info

Publication number
WO2021217915A1
WO2021217915A1 PCT/CN2020/103847 CN2020103847W WO2021217915A1 WO 2021217915 A1 WO2021217915 A1 WO 2021217915A1 CN 2020103847 W CN2020103847 W CN 2020103847W WO 2021217915 A1 WO2021217915 A1 WO 2021217915A1
Authority
WO
WIPO (PCT)
Prior art keywords
dialogue
parameter
text information
parameters
target user
Prior art date
Application number
PCT/CN2020/103847
Other languages
French (fr)
Chinese (zh)
Inventor
邹倩霞
徐国强
Original Assignee
深圳壹账通智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2021217915A1 publication Critical patent/WO2021217915A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3343Query execution using phonetics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue

Definitions

  • This application relates to the field of artificial intelligence data processing technology, in particular to a human-machine dialogue method, device, computer equipment, and computer-readable storage medium.
  • the purpose of this application is to provide a human-machine dialogue method, device, computer equipment, and computer-readable storage medium.
  • a human-machine dialogue method is provided.
  • the method is executed by a framework with a configurable parameter extraction function, including:
  • the step of obtaining text information includes obtaining the dialogue text information of the target user provided by the dialogue platform, and the dialogue text information is determined by the dialogue
  • the platform generates and provides the framework with the configurable parameter extraction function according to the dialogue data of the target user;
  • the step of obtaining text information is performed until the dialogue between the dialogue platform and the target user is stopped.
  • a human-machine dialogue method which is executed by a dialogue platform, and includes:
  • a dialogue with a target user obtain dialogue data of the target user, and generate dialogue text information based on the dialogue data;
  • the dialog text information is provided to the framework of the configurable parameter extraction function, so that the framework of the configurable parameter extraction function extracts the parameters of the dialog text information based on the pre-configured parameter extraction function, and receives the The parameters of the dialogue text information obtained by frame extraction;
  • a human-machine dialogue device includes a framework with a configurable parameter extraction function, and the device includes:
  • the obtaining module is configured to execute the step of obtaining text information after the dialogue platform starts a dialogue with the target user.
  • the step of obtaining text information includes obtaining the dialogue text information of the target user provided by the dialogue platform.
  • the text information is generated by the dialogue platform according to the dialogue data of the target user and provided to the framework with configurable parameter extraction function;
  • the parameter extraction module is configured to extract the parameters of the dialog text information based on a pre-configured parameter extraction function
  • a sending module configured to send the extracted parameters of the dialogue text information to the dialogue platform, so that the dialogue platform can continue the dialogue with the target user according to the parameters;
  • the execution module is configured to execute the step of obtaining text information until the dialogue between the dialogue platform and the target user stops.
  • a computer device including a memory and a processor, the memory is used to store a program of the human-machine dialogue of the processor, and the processor is configured to execute the program of the human-machine dialogue.
  • the following processing is performed: after the dialogue platform starts a dialogue with the target user, the step of obtaining text information is performed, and the step of obtaining text information includes obtaining the dialogue text information of the target user provided by the dialogue platform, the dialogue text information Generated by the dialogue platform according to the dialogue data of the target user and provided to the framework with configurable parameter extraction function; based on the pre-configured parameter extraction function, the parameters of the dialogue text information are extracted; the extracted result
  • the parameters of the dialogue text information are sent to the dialogue platform for the dialogue platform to continue the dialogue with the target user according to the parameters; the step of obtaining text information is performed until the dialogue platform and the target The conversation between users stops.
  • a computer device including a memory and a processor, the memory is configured to store a program of the human-machine dialogue of the processor, and the processor is configured to execute the program of the human-machine dialogue
  • the following processing is performed: during a dialogue with the target user, the dialogue data of the target user is obtained, and dialogue text information is generated based on the dialogue data; the dialogue text information is provided to the framework of the configurable parameter extraction function for use
  • the framework of the configurable parameter extraction function extracts the parameters of the dialogue text information based on the pre-configured parameter extraction function, and receives the parameters of the dialogue text information extracted by the framework;
  • the target user continues to have a dialogue, and continues to perform the steps of obtaining dialogue data of the target user and generating dialogue text information based on the dialogue data until the dialogue with the target user stops.
  • a computer-readable storage medium storing computer-readable instructions
  • a program for man-machine dialogue is stored thereon.
  • the program for the man-machine dialogue is executed by a processor, the following processing is implemented: After the target user starts the dialogue, the step of obtaining text information is executed.
  • the step of obtaining text information includes obtaining the dialogue text information of the target user provided by the dialogue platform, and the dialogue text information is determined by the dialogue platform according to the
  • the dialog data of the target user is generated and provided to the framework with a configurable parameter extraction function; the parameters of the dialog text information are extracted based on the pre-configured parameter extraction function; the parameters of the extracted dialog text information are extracted Send to the dialogue platform for the dialogue platform to continue the dialogue with the target user according to the parameters; execute the step of obtaining text information until the dialogue between the dialogue platform and the target user stops.
  • a computer-readable storage medium storing computer-readable instructions
  • a program for man-machine dialogue is stored thereon.
  • the program for the man-machine dialogue is executed by a processor, the following processing is implemented:
  • obtain the dialogue data of the target user and generate dialogue text information based on the dialogue data; provide the dialogue text information to the framework of the configurable parameter extraction function for the purpose of the configurable parameter extraction function
  • the framework extracts the parameters of the dialogue text information based on the pre-configured parameter extraction function, and receives the parameters of the dialogue text information extracted by the framework; continues the dialogue with the target user according to the parameters, and
  • the steps of obtaining the dialogue data of the target user and generating dialogue text information based on the dialogue data are continued until the dialogue with the target user stops.
  • the above-mentioned human-machine dialogue method, device, computer equipment and computer-readable storage medium utilize a pre-established framework with configurable parameter extraction function to extract parameters from the text information from the dialogue platform, and the specific parameter extraction function of the framework is It can be configured according to requirements before use.
  • the framework integrates a variety of parameter extraction functions and supports the configuration of multiple parameter extraction functions, making it basically unnecessary for developers to re-develop corresponding types of parameter extraction codes when extracting parameters from dialog data. Therefore, the use efficiency of the human-machine dialogue platform can be improved, the use of the dialogue platform is more convenient, and the needs of more scenarios can be met.
  • Fig. 1 is a schematic diagram showing a system architecture of a human-machine dialogue method according to an exemplary embodiment
  • Fig. 2 is a flow chart showing a method for man-machine dialogue according to an exemplary embodiment
  • FIG. 3 is a flowchart of the steps before step 220, the steps after step 230, and the details of step 250 according to an embodiment corresponding to FIG. 2;
  • Fig. 4 is a flow chart showing a method for man-machine dialogue according to another exemplary embodiment
  • Fig. 5 is a block diagram showing a device for man-machine dialogue according to an exemplary embodiment
  • Fig. 6 is an exemplary block diagram showing a computer device implementing the above-mentioned human-machine dialogue method according to an exemplary embodiment
  • Fig. 7 shows a computer-readable storage medium for implementing the above-mentioned human-machine dialogue method according to an exemplary embodiment.
  • the main form of human-machine dialogue is that the dialogue platform conducts dialogue with humans, and the dialogue platform receives dialogue data fed back by humans and sends corresponding dialogue data to humans based on the dialogue data to conduct dialogues with humans.
  • the dialogue platform may include a variety of modules, models, or algorithms for realizing dialogue with humans, for example, it may include a speech synthesis module, language model, acoustic model, etc.
  • the dialogue platform may conduct text, voice or video voice dialogue with humans.
  • the human-machine dialogue method provided in this application can be executed by a framework with a configurable parameter extraction function. The framework can establish a data transmission channel with the dialogue platform.
  • the dialogue platform can be Corresponding parameter extraction is performed on the sent dialogue text information, and the extracted parameters will be fed back to the dialogue platform, so that the dialogue platform performs better when conducting man-machine conversations with humans.
  • the human-machine dialogue method of this application can be applied to various scenarios, such as financial scenarios.
  • a specific example of application to financial scenarios can be to review whether loans are allowed to users through a dialogue platform, or to obtain information through communication with users. Historical behavior data for financial risk or personal financial evaluation.
  • the implementation terminal of this application can be any device with computing, processing, and communication functions.
  • the device can be connected to an external device to receive or send data.
  • it can be a portable mobile device, such as a smart phone, a tablet computer, a notebook computer, PDA (Personal Digital Assistant), etc., can also be fixed devices, such as computer equipment, field terminals, desktop computers, servers, workstations, etc., or a collection of multiple devices, such as cloud computing physical infrastructure or server clusters .
  • the implementation terminal of this application may be a server or a physical infrastructure of cloud computing.
  • Fig. 1 is a schematic diagram showing a system architecture of a human-machine dialogue method according to an exemplary embodiment.
  • the system architecture includes a server 110, a desktop computer 120, and a user terminal 130.
  • the desktop computer 120 and the server 110, and the user terminal 130 and the desktop computer 120 are all connected by communication links, so that data can be performed.
  • Receiving and sending The desktop computer 120 is fixedly provided with a dialogue platform, and the server 110 is fixedly provided with a framework with a configurable parameter extraction function. Therefore, in this embodiment, the server 110 may be the implementation terminal of the application.
  • the man-machine dialogue method provided by this application is applied to the system architecture shown in FIG.
  • a specific process can be as follows: First, the user uses the user terminal 130 to initiate a conversation with the dialogue platform fixed on the desktop computer 120.
  • the dialogue platform on the computer 120 will receive the voice dialogue data from the user terminal 130, convert the voice dialogue data into dialogue text information, and send the dialogue text information to the server 110;
  • the set frame has been pre-configured with the parameter extraction function, and the parameters in the dialog text information can be quickly extracted using this frame.
  • the server 110 will send the extracted parameters to the dialog platform on the desktop computer 120, and the dialog platform uses the parameters to It can determine how to further dialogue with the user, that is, the dialogue platform can truly understand the meaning of the dialogue data that the user feedbacks last time, so that the man-machine dialogue with the user can be continued.
  • Fig. 1 is only an embodiment of the present application.
  • the implementing terminal in this embodiment is a server, in other embodiments, the implementing terminal may be various terminals or devices as described above; although in this embodiment, a framework with a configurable parameter extraction function and The dialogue platforms are respectively fixed on different terminals, but in other embodiments or specific applications, the framework with the configurable parameter extraction function and the dialogue platform can be set on the same terminal.
  • This application does not make any limitation on this. The scope of protection should not be restricted as a result.
  • Fig. 2 is a flow chart showing a method for man-machine dialogue according to an exemplary embodiment.
  • the man-machine dialogue method provided by this embodiment can be executed by the server; and at the logical level, the man-machine dialogue method provided by this embodiment is executed by a framework with a configurable parameter extraction function, as shown in Figure 2, including The following steps:
  • Step 220 After the dialogue platform starts a dialogue with the target user, perform a step of obtaining text information.
  • the step of obtaining text information includes obtaining the dialogue text information of the target user provided by the dialogue platform.
  • the dialogue text information is generated by the dialogue platform according to the dialogue data of the target user and provided to the framework with a configurable parameter extraction function.
  • the dialogue platform first obtains the dialogue data of the target user, and then generates dialogue text information based on the dialogue data.
  • a parameter is an element or information item recorded in the dialog text information.
  • the parameter can be a keyword in a piece of dialog text information.
  • the dialog data of the target user can be voice data, text data, or audio and video data.
  • the text data can be directly used as dialogue text information.
  • the process of generating dialogue text information by the dialogue platform according to the dialogue data may include: converting the dialogue data into text information as the generated dialogue text information. This conversion process can be implemented using models or algorithms such as speech recognition.
  • Step 230 Extract the parameters of the dialog text information based on the pre-configured parameter extraction function.
  • the configurable parameter extraction function of the framework includes one or more of the following: a parameter extraction function of different parameter items corresponding to a plurality of preset extraction functions respectively; corresponding to at least one parameter item
  • the parameter extraction function based on regular expressions is implemented based on a preset configuration format; the parameter extraction function based on external links is used to introduce an external parameter extraction function that corresponds to at least one parameter item Parameter extraction function; additional vocabulary function for extracting other parameters that are semantically similar to the basic extraction result corresponding to at least one extraction function, and the basic extraction result is the parameter with the most identical manifestations among the parameters extracted by the corresponding extraction function .
  • the parameter item is the name of a specific parameter.
  • different parameters can usually be extracted for the same parameter item.
  • the parameter item of each parameter that can be extracted by the framework corresponds to a parameter type, and there can be one or more parameter items corresponding to the same parameter type.
  • the parameters of different parameter items that can be extracted by the extraction function corresponding to each extraction function may belong to the same or different parameter types.
  • the types of parameters that can be extracted by the framework may include: date type, numeric type, string type, address type, and Boolean type, where the numeric type may include integer type and decimal type.
  • the basic extraction result corresponding to the extraction function can be XX month XX day, and they all use the same
  • the format is therefore the same in expression form, and because the extracted parameters of this expression form are the most, therefore, XX month XX day is the parameter with the most expression forms of the same.
  • Other parameters similar to the semantics may include: beginning of the month, middle of the month, end of the month, early, mid, late, etc.
  • Table 1 respectively show the parameter extraction functions of the parameter items corresponding to the two extraction functions.
  • the two extraction functions are ⁇ $birthday ⁇ and ⁇ $day ⁇ , and the corresponding parameter items are the year of birth. Month, day and pay date, the parameter types corresponding to the extracted parameters are date type and integer type respectively.
  • the Chinese parameter name is the Chinese name set by the user, and the English parameter name is the English name of the parameter that is convenient for the internal management of the system.
  • Frame The functions of two extraction functions are integrated internally. Table 1 also shows additional vocabulary. They are similar in semantics to the basic extraction result corresponding to the extraction function ⁇ $day ⁇ . The contents shown in Table 1 are all configured in Frame.
  • ID parameter name Regular rule Output variable type 1 Extract the first 6 digits of the ID card //d ⁇ 6 ⁇ String type 2 retrieve mobile phone number (13
  • ID is the system number
  • the parameter name is the name of the regular rule
  • the regular rule is the regular expression supported by java programming
  • the writing method refers to the regular expression writing rules
  • output is the data type of the extracted data.
  • Table 3 shows the parameter extraction function based on external links, where ID is the system number; the parameter name is the name of the link parameter extraction function; URL is the address where the external link is called; the user's verbal input corresponds to
  • the Json information field is the json field name corresponding to the idiom that needs to extract the parameters; the other input fields are other required information for successfully calling the link, such as user name and password information; the field corresponding to the returned result is the field corresponding to the result returned by the link name.
  • the framework further includes a test verification function, which is used to verify the reliability of the parameter extraction function based on regular expressions and/or the parameter extraction function based on external links to ensure that all The parameter extraction function based on regular expressions and/or the parameter extraction function based on external links are available.
  • a test verification function which is used to verify the reliability of the parameter extraction function based on regular expressions and/or the parameter extraction function based on external links to ensure that all The parameter extraction function based on regular expressions and/or the parameter extraction function based on external links are available.
  • the test verification function can be implemented by inputting preset dialogue text information marked with the correctly extracted target parameters into the framework, and by pre-configuring the framework with externally-based information corresponding to the target parameters.
  • Link parameter extraction function and regular expression-based parameter extraction function corresponding to the parameter item and then input the dialog text information into the framework, and use the framework's parameter extraction function based on external links and the regular expression-based parameter extraction function respectively
  • the parameter extraction function extracts the parameters of the dialog text information, and then compares the extracted parameters with the correct extracted target parameters to verify the parameter extraction function based on regular expressions and the parameter extraction function based on external links it's usable or not.
  • the types of parameters that can be extracted by the framework include string type or Boolean type
  • the configurable parameter extraction function further includes: a supplementary vocabulary corresponding to at least one string type parameter item or Boolean type parameter item Function to extract the parameter corresponding to the parameter item and belonging to the supplementary vocabulary.
  • the extraction of the parameters of the dialog text information based on the pre-configured parameter extraction function includes: based on the pre-configured supplementary vocabulary function corresponding to the string-type parameter item, in the dialog text The parameter corresponding to the parameter item and belonging to the supplementary vocabulary is extracted from the information; the parameter is replaced with a standardized parameter corresponding to the parameter as the parameter extracted from the dialogue text information.
  • the types of parameters that can be extracted by the framework include a Boolean type
  • the configurable parameter extraction function further includes: an intent recognition function corresponding to at least one Boolean parameter item for extracting information related to the parameter item. Parameters with similar semantics.
  • Table 4 Please refer to Table 4.
  • Table 4 shows the parameter extraction function for Boolean and string parameter items.
  • the parameter item of name can be extracted by the extraction function
  • the difference between the function of date type and integer type parameter extraction in Table 1 is that the parameter items of marriage and provident fund can be extracted by means of supplementary vocabulary, and the parameter item of the first 6 digits of the ID card can be expressed through regular expressions.
  • the parameter item of the unit name can be extracted through external links, and the extraction results of the marriage and provident fund parameter items can also be standardized.
  • the parameter item of provident fund can also be extracted by intention recognition, that is, for the parameter item of provident fund, although the dialogue text information does not include the corresponding parameter item.
  • Step 250 Send the extracted parameters of the dialogue text information to the dialogue platform for the dialogue platform to continue the dialogue with the target user according to the parameters.
  • the dialogue platform After the dialogue platform obtains the parameters, it is equivalent to obtaining the key information of the target user's last feedback, and the dialogue platform can choose an appropriate expression according to the key information to continue the dialogue with the target user.
  • Step 260 Perform the step of obtaining text information until the dialogue between the dialogue platform and the target user stops.
  • step 220 Unless the dialogue between the dialogue platform and the target user is stopped, the step of obtaining text information, namely step 220, is executed, so that step 220 and subsequent steps are executed in a loop.
  • FIG. 3 is a flowchart of the steps before step 220, the steps after step 230, and the details of step 250 according to an embodiment corresponding to FIG. 2.
  • the aforementioned parameter is the second parameter, and the framework may also be configured with a parameter comparison function. As shown in FIG. 3, the following steps may be included:
  • Step 210 Obtain a first parameter corresponding to the target user provided by the dialogue platform.
  • the first parameter is extracted by the dialogue platform based on the personal information submitted by the target user.
  • the framework with the configurable parameter extraction function and the dialogue platform of the present application may be located on the same terminal, or may be located on different terminals.
  • the dialogue platform writes the first parameter corresponding to the target user into the memory or hard disk, and then the framework reads the first parameter from the memory or hard disk to obtain the first parameter.
  • the framework can obtain the first parameter from the dialogue platform through the communication link.
  • Step 240 Based on the pre-configured parameter comparison function, compare the first parameter and the second parameter of the same type to verify the reliability of the second parameter of the target user to obtain The verification result corresponding to the two parameters.
  • the dialogue platform pre-stores the age of the target user, the age of the target user can be used as the first parameter; then through the dialogue with the target user, the second parameter extracted is also the age of the target user, and the target user obtained twice before and after By comparing the ages of, it can be determined whether the age of the target user extracted from the second parameter is reliable.
  • Step 250' the extracted second parameter of the dialogue text information is sent to the dialogue platform along with the corresponding verification result, so that the dialogue platform can compare the result with the second parameter and the verification result according to the second parameter and the verification result.
  • the target user continues the conversation.
  • the parameter comparison function can automatically determine the difference between the user information input by the system itself and the user information extracted in the dialogue, without manual participation in the judgment, reducing labor costs, improving efficiency, and enabling multi-round dialogue platforms to be applied to more complex finances Scene.
  • the configurable parameter comparison function of the framework includes: a general comparison function, wherein the comparison mode of the general comparison function includes equal to, greater than, less than, inclusive, and not included; preset multiple parameter comparisons Function, each parameter comparison function corresponds to the parameter comparison function of different parameter items.
  • the types of parameters that can be extracted by the framework can include: date, numeric, string, and boolean, where the numeric can also include integer and decimal.
  • the comparison mode of the general comparison function in the comparison mode of the general comparison function, equal to, greater than, and less than correspond to date and/or numeric parameter types, and the comparison mode of the general comparison function in the comparison mode is equal to, contains, and does not correspond to Contains the parameter type corresponding to the string type and/or boolean type.
  • Table 5 which shows two comparison functions of "equal" and parameter comparison function in the general comparison function.
  • ID is the system code;
  • the comparison parameter name is the English name of the parameter item that records the comparison result;
  • the Chinese name is the Chinese name of the parameter item;
  • the parameter mentioning parameter is the English name of the parameter item mentioned in the framework in the previous embodiment, which is the system passing the parameter framework
  • the input parameter is the name of the known information parameter item in the input system;
  • the preset comparison method is the comparison function of some special parameters provided by the system, in Table 5 it is the ⁇ $compareBirthday ⁇ function;
  • the comparison method: equal Refers to whether they are equal.
  • the comparison of the number of employees is allowed to have an error of 10%, and within the error range, they are considered to be consistent; the comparison result: there are 3 kinds of satisfaction, that is, two data are consistent; not satisfied, that is two data Inconsistent; the inability to compare is due to the lack of data between the two, which makes it impossible to compare.
  • Standardized results The comparison results can be standardized, and correspond to the previous values one-to-one.
  • the types of parameters that the framework compares through a configurable parameter comparison function include: numerical type, and the configurable parameter comparison function of the framework further includes a comparison function based on a set error range, wherein, The comparison function based on the set error range is used in conjunction with the equal comparison method.
  • the comparison of the number of employees shown in Table 5 allows an error of 10%, which is the comparison function based on the set error range.
  • the types of parameters compared by the framework through a configurable parameter comparison function include: string type, and the configurable parameter comparison function of the framework further includes a pinyin-based comparison function, wherein the The pinyin-based comparison function is used in conjunction with the comparison method of equals.
  • the first parameter and the second parameter of the same type are compared to verify the reliability of the second parameter of the target user
  • To obtain a verification result corresponding to each second parameter including: comparing the first parameter and the second parameter of the same type based on a pre-configured parameter comparison function to obtain a comparison result; The result is replaced with the corresponding standardized result as the verification result corresponding to each second parameter.
  • Table 6 shows two comparison functions of "equal" and parameter comparison function in the general comparison function.
  • ID is the system code;
  • the comparison parameter name is the English name of the parameter item that records the comparison result;
  • the Chinese name is the Chinese name of the parameter item;
  • the parameter reference is the English name of the parameter item of the parameter mentioned in the framework in the previous embodiment, which is passed by the system
  • the input parameters are the names of the known information parameter items in the input system;
  • the preset comparison mode provides the system with the comparison function of some special parameters. If the ID number is consistent and compared, the preset function function will have multiple comparison results. In Table 5, it is the ⁇ $compareID ⁇ function. As shown in the picture. Comparison method: equal means whether it is equal or not.
  • Comparison results There are three general types. In the embodiment of Table 6, only the comparison method of equal (that is, whether it is equal) corresponding to CompareName is shown. If it is preset by the system, the results are diverse. Standardization: The comparison results can be standardized, corresponding to the previous comparison results one by one.
  • a pre-established framework with a configurable parameter extraction function is used to extract parameters from the text information from the dialogue platform, and the specific parameter extraction function of the framework is It can be configured according to requirements before use.
  • the framework integrates a variety of parameter extraction functions and supports the configuration of multiple parameter extraction functions, making it basically unnecessary for developers to re-develop corresponding types of parameter extraction codes when extracting parameters from dialog data. Therefore, the use efficiency of the human-machine dialogue platform can be improved, the use of the dialogue platform is more convenient, and the needs of more scenarios can be met.
  • this application also provides a human-machine dialogue method, which is executed by a dialogue platform and includes:
  • Step 410 During a dialogue with a target user, obtain dialogue data of the target user, and generate dialogue text information based on the dialogue data.
  • Step 420 Provide the dialog text information to the framework of the configurable parameter extraction function, so that the framework of the configurable parameter extraction function extracts the parameters of the dialog text information based on the pre-configured parameter extraction function, and Receiving the parameters of the dialog text information extracted by the framework.
  • Step 430 Continue to have a dialogue with the target user according to the parameters, and continue to perform the steps of obtaining dialogue data of the target user and generating dialogue text information based on the dialogue data, until communication with the target user The conversation stopped.
  • Steps 410 to 430 correspond to the steps shown in the embodiment in FIG. 2.
  • steps 410 to 430 please refer to the embodiment shown in FIG. 2, which will not be repeated here.
  • This application also provides a human-machine dialogue device.
  • the following are device embodiments of this application.
  • Fig. 5 is a block diagram showing a human-machine dialogue device according to an exemplary embodiment.
  • the human-machine dialogue device includes a framework with a configurable parameter extraction function. As shown in FIG. 5, the device 500 includes:
  • the obtaining module 510 is configured to perform a step of obtaining text information after the dialogue platform starts a dialogue with the target user.
  • the step of obtaining text information includes obtaining the dialogue text information of the target user provided by the dialogue platform, Dialogue text information is generated by the dialogue platform according to the dialogue data of the target user and provided to the framework with configurable parameter extraction function;
  • the parameter extraction module 520 is configured to extract the parameters of the dialog text information based on a pre-configured parameter extraction function
  • the sending module 530 is configured to send the extracted parameters of the dialogue text information to the dialogue platform, so that the dialogue platform can continue the dialogue with the target user according to the parameters;
  • the execution module 540 is configured to execute the step of obtaining text information until the dialogue between the dialogue platform and the target user is stopped.
  • the configurable parameter extraction function of the framework includes one or more of the following: a parameter extraction function of different parameter items corresponding to a plurality of preset extraction functions respectively; corresponding to at least one parameter item
  • the parameter extraction function based on regular expressions is implemented based on a preset configuration format; the parameter extraction function based on external links is used to introduce an external parameter extraction function that corresponds to at least one parameter item Parameter extraction function; additional vocabulary function for extracting other parameters that are semantically similar to the basic extraction result corresponding to at least one extraction function, and the basic extraction result is the parameter with the most identical manifestations among the parameters extracted by the corresponding extraction function .
  • the framework further includes a test verification function, which is used to verify the reliability of the parameter extraction function based on regular expressions and/or the parameter extraction function based on external links to ensure that all The parameter extraction function based on regular expressions and/or the parameter extraction function based on external links are available.
  • a test verification function which is used to verify the reliability of the parameter extraction function based on regular expressions and/or the parameter extraction function based on external links to ensure that all The parameter extraction function based on regular expressions and/or the parameter extraction function based on external links are available.
  • the types of parameters that can be extracted by the framework include string type or Boolean type
  • the configurable parameter extraction function further includes: a supplementary vocabulary corresponding to at least one string type parameter item or Boolean type parameter item Function to extract the parameter corresponding to the parameter item and belonging to the supplementary vocabulary.
  • the types of parameters that can be extracted by the framework include a Boolean type
  • the configurable parameter extraction function further includes: an intent recognition function corresponding to at least one Boolean parameter item for extracting information related to the parameter item. Parameters with similar semantics.
  • the parameter is a second parameter
  • the framework may also be configured with a parameter comparison function
  • the obtaining module is further configured to obtain a first parameter corresponding to the target user provided by the dialogue platform before performing the step of obtaining text information, and the first parameter is based on the personal information submitted by the target user by the dialogue platform.
  • the parameter extraction module is further configured to, after extracting the parameters of the dialog text information based on the pre-configured parameter extraction function, and then, based on the pre-configured parameter comparison function, compare the same type of the first parameter and the Comparing the second parameters to verify the reliability of the second parameters of the target user, and obtain a verification result corresponding to each second parameter;
  • the sending module is further configured to send the extracted second parameter of the dialog text information together with the corresponding verification result to the dialog platform, so that the dialog platform can use the second parameter and the calibration result according to the second parameter.
  • the result of the test is to continue the dialogue with the target user.
  • a computer device which executes all or part of the steps of any one of the above-mentioned man-machine dialogue methods.
  • the computer equipment includes:
  • At least one processor At least one processor
  • a memory communicatively connected with the at least one processor; wherein,
  • the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute as shown in any of the foregoing exemplary embodiments.
  • Man-machine dialogue method Man-machine dialogue method.
  • the computer device 600 according to this embodiment of the present application will be described below with reference to FIG. 6.
  • the computer device 600 shown in FIG. 6 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present application.
  • the computer device 600 is represented in the form of a general-purpose computing device.
  • the components of the computer device 600 may include, but are not limited to: the aforementioned at least one processing unit 610, the aforementioned at least one storage unit 620, and a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610).
  • the storage unit stores program code, and the program code can be executed by the processing unit 610, so that the processing unit 610 executes the various exemplary methods described in the above-mentioned "Embodiment Method" section of this specification. Steps of implementation.
  • the storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 621 and/or a cache storage unit 622, and may further include a read-only storage unit (ROM) 623.
  • the storage unit 620 may also include a program/utility tool 624 having a set of (at least one) program module 625.
  • program module 625 includes but is not limited to: an operating system, one or more application programs, other program modules, and program data, Each of these examples or some combination may include the implementation of a network environment.
  • the bus 630 may represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any bus structure among multiple bus structures. bus.
  • the computer device 600 can also communicate with one or more external devices 800 (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable a user to interact with the computer device 600, and/or communicate with Any device (such as a router, a modem, etc.) that enables the computer device 600 to communicate with one or more other computer devices. This communication can be performed through an input/output (I/O) interface 650.
  • I/O input/output
  • the computer device 600 may also communicate with one or more networks (for example, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 660.
  • the network adapter 660 communicates with other modules of the computer device 600 through the bus 630.
  • other hardware and/or software modules can be used in conjunction with the computer device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.
  • the technical solution according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on the network , Including several instructions to make a computer device (which may be a personal computer, a server, a terminal device, or a network device, etc.) execute the method according to the embodiment of the present application.
  • a non-volatile storage medium which can be a CD-ROM, U disk, mobile hard disk, etc.
  • a computer device which may be a personal computer, a server, a terminal device, or a network device, etc.
  • each aspect of the present application can also be implemented in the form of a program product, which includes program code.
  • program product runs on a terminal device
  • program code is used to make the The terminal device executes the steps according to various exemplary embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.
  • a program product 700 for implementing the above method according to an embodiment of the present application is described. It can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be stored in a terminal device, For example, running on a personal computer.
  • CD-ROM compact disk read-only memory
  • the program product of this application is not limited to this.
  • the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or device.
  • the program product can use any combination of one or more readable media.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Type programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • the computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and readable program code is carried therein.
  • This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the readable signal medium may also be any readable medium other than a readable storage medium, and the readable medium may send, propagate, or transmit a program for use by or in combination with the instruction execution system, apparatus, or device.
  • the program code contained on the readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
  • the program code used to perform the operations of this application can be written in any combination of one or more programming languages.
  • the programming languages include object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming languages. Programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computer equipment, partly on the user's equipment, executed as an independent software package, partly on the user's computer equipment and partly executed on the remote computer equipment, or entirely on the remote computer equipment or server. Executed on.
  • the remote computer equipment can be connected to the user’s computer equipment through any kind of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer equipment (for example, using Internet service providers). Business to connect via the Internet).
  • LAN local area network
  • WAN wide area network
  • Internet service providers for example, using Internet service providers.

Abstract

A human-machine dialog method and apparatus, and a computer device and a storage medium, which relate to the field of data processing of artificial intelligence. The method is executed by a framework with a configurable parameter extraction function. The method comprises: after a dialog platform starts a dialog with a user, executing a text information acquisition step, wherein the text information acquisition step comprises acquiring dialog text information, provided by the dialog platform, of the user (220), wherein the dialog text information is generated by the dialog platform according to dialog data and is provided to a framework; extracting a parameter of the dialog text information on the basis of a pre-configured parameter extraction function (230); sending the extracted parameter of the dialog text information to the dialog platform, such that the dialog platform continues the dialog with the user according to the parameter (250); and executing the text information acquisition step until a dialog between the dialog platform and the user is stopped (260). According to the method, the use efficiency of a human-machine dialog platform is improved, the use of the dialog platform can be more convenient, and the requirements of more scenarios can be met.

Description

人机对话方法、装置、计算机设备和存储介质Man-machine dialogue method, device, computer equipment and storage medium
本申请要求于2020年4月28日提交中国专利局、申请号为CN 202010350529.1,发明名称为“人机对话方法、装置、介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on April 28, 2020, the application number is CN 202010350529.1, and the invention title is "Human-Machine Dialogue Methods, Devices, Media, and Electronic Equipment", the entire content of which is incorporated by reference Incorporated in this application.
技术领域Technical field
本申请涉及人工智能的数据处理技术领域,特别是涉及一种人机对话方法、装置、计算机设备和计算机可读存储介质。This application relates to the field of artificial intelligence data processing technology, in particular to a human-machine dialogue method, device, computer equipment, and computer-readable storage medium.
背景技术Background technique
目前在人工智能技术领域中,人机对话平台被频繁采用,现有技术中,当多轮人机对话平台在应用时,需要对用户的对话信息进行加工和处理,提取相应的关键信息,从而实现准确的人机对话。然而发明人意识到,目前的人机对话平台所能提取的关键信息的类型有限,不能满足提取更多种类的关键信息的需求;若需要提取更多种类的关键信息,例如提取金融领域,宏观经济方向的相关关键信息,需要开发人员不停开发新功能以满足各种不同领域不同业务的需要,因此,目前的人机对话平台的使用效率低,使用不够方便。At present, in the field of artificial intelligence technology, human-machine dialogue platforms are frequently adopted. In the prior art, when a multi-round human-machine dialogue platform is applied, it is necessary to process and process the user’s dialogue information and extract the corresponding key information. Realize accurate man-machine dialogue. However, the inventor realizes that the types of key information that can be extracted by the current human-machine dialogue platform are limited, and cannot meet the needs of extracting more types of key information; if it is necessary to extract more types of key information, such as extracting financial fields, macro The key information related to the economic direction requires developers to continuously develop new functions to meet the needs of different businesses in various fields. Therefore, the current human-machine dialogue platform is inefficient and not convenient to use.
发明内容Summary of the invention
在人工智能的数据处理技术领域,为了解决上述技术问题,本申请的目的在于提供一种人机对话方法、装置、计算机设备和计算机可读存储介质。In the field of artificial intelligence data processing technology, in order to solve the above technical problems, the purpose of this application is to provide a human-machine dialogue method, device, computer equipment, and computer-readable storage medium.
第一方面,提供了一种人机对话方法,所述方法由具有可配置参数提取功能的框架执行,包括:In the first aspect, a human-machine dialogue method is provided. The method is executed by a framework with a configurable parameter extraction function, including:
在对话平台与目标用户开始对话后,执行获取文本信息步骤,所述获取文本信息步骤包括,获取由所述对话平台提供的所述目标用户的对话文本信息,所述对话文本信息由所述对话平台根据所述目标用户的对话数据生成并提供至所述具有可配置参数提取功能的框架;After the dialogue platform starts a dialogue with the target user, a step of obtaining text information is performed. The step of obtaining text information includes obtaining the dialogue text information of the target user provided by the dialogue platform, and the dialogue text information is determined by the dialogue The platform generates and provides the framework with the configurable parameter extraction function according to the dialogue data of the target user;
基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取;Extract the parameters of the dialogue text information based on the pre-configured parameter extraction function;
将提取得到的所述对话文本信息的参数发送至所述对话平台,以供所述对话平台根据所述参数与所述目标用户继续对话;Sending the extracted parameters of the dialogue text information to the dialogue platform for the dialogue platform to continue the dialogue with the target user according to the parameters;
执行所述获取文本信息步骤,直至所述对话平台与所述目标用户之间的对话停止。The step of obtaining text information is performed until the dialogue between the dialogue platform and the target user is stopped.
第二方面,提供了一种人机对话方法,所述方法由对话平台执行,包括:In the second aspect, a human-machine dialogue method is provided, which is executed by a dialogue platform, and includes:
在与目标用户进行对话时,获得所述目标用户的对话数据,并基于所述对话数据生成对话文本信息;During a dialogue with a target user, obtain dialogue data of the target user, and generate dialogue text information based on the dialogue data;
将所述对话文本信息提供至可配置参数提取功能的框架,以供所述可配置参数提取功能的框架基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取,并接收所述框架提取得到的所述对话文本信息的参数;The dialog text information is provided to the framework of the configurable parameter extraction function, so that the framework of the configurable parameter extraction function extracts the parameters of the dialog text information based on the pre-configured parameter extraction function, and receives the The parameters of the dialogue text information obtained by frame extraction;
根据所述参数与所述目标用户继续进行对话,并继续执行所述获得所述目标用户的对话数据并基于所述对话数据生成对话文本信息的步骤,直至与所述目标用户之间的对话停止。Continue the dialogue with the target user according to the parameters, and continue to execute the step of obtaining dialogue data of the target user and generating dialogue text information based on the dialogue data, until the dialogue with the target user stops .
第三方面,提供了一种人机对话装置,所述装置包括具有可配置参数提取功能的框架,所述装置包括:In a third aspect, a human-machine dialogue device is provided, the device includes a framework with a configurable parameter extraction function, and the device includes:
获取模块,被配置为在对话平台与目标用户开始对话后,执行获取文本信息步骤,所述获取文本信息步骤包括,获取由所述对话平台提供的所述目标用户的对话文本信息,所述对话文本信息由所述对话平台根据所述目标用户的对话数据生成并提供至所述具有可配置参数提取功能的框架;The obtaining module is configured to execute the step of obtaining text information after the dialogue platform starts a dialogue with the target user. The step of obtaining text information includes obtaining the dialogue text information of the target user provided by the dialogue platform. The text information is generated by the dialogue platform according to the dialogue data of the target user and provided to the framework with configurable parameter extraction function;
参数提取模块,被配置为基于预先配置的参数提取功能,对所述对话文本信息的参数 进行提取;The parameter extraction module is configured to extract the parameters of the dialog text information based on a pre-configured parameter extraction function;
发送模块,被配置为将提取得到的所述对话文本信息的参数发送至所述对话平台,以供所述对话平台根据所述参数与所述目标用户继续对话;A sending module, configured to send the extracted parameters of the dialogue text information to the dialogue platform, so that the dialogue platform can continue the dialogue with the target user according to the parameters;
执行模块,被配置为执行所述获取文本信息步骤,直至所述对话平台与所述目标用户之间的对话停止。The execution module is configured to execute the step of obtaining text information until the dialogue between the dialogue platform and the target user stops.
第四方面,提供了一种计算机设备,包括存储器和处理器,所述存储器用于存储所述处理器的人机对话的程序,所述处理器配置为经由执行所述人机对话的程序来执行以下处理:在对话平台与目标用户开始对话后,执行获取文本信息步骤,所述获取文本信息步骤包括,获取由所述对话平台提供的所述目标用户的对话文本信息,所述对话文本信息由所述对话平台根据所述目标用户的对话数据生成并提供至所述具有可配置参数提取功能的框架;基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取;将提取得到的所述对话文本信息的参数发送至所述对话平台,以供所述对话平台根据所述参数与所述目标用户继续对话;执行所述获取文本信息步骤,直至所述对话平台与所述目标用户之间的对话停止。In a fourth aspect, a computer device is provided, including a memory and a processor, the memory is used to store a program of the human-machine dialogue of the processor, and the processor is configured to execute the program of the human-machine dialogue. The following processing is performed: after the dialogue platform starts a dialogue with the target user, the step of obtaining text information is performed, and the step of obtaining text information includes obtaining the dialogue text information of the target user provided by the dialogue platform, the dialogue text information Generated by the dialogue platform according to the dialogue data of the target user and provided to the framework with configurable parameter extraction function; based on the pre-configured parameter extraction function, the parameters of the dialogue text information are extracted; the extracted result The parameters of the dialogue text information are sent to the dialogue platform for the dialogue platform to continue the dialogue with the target user according to the parameters; the step of obtaining text information is performed until the dialogue platform and the target The conversation between users stops.
第五方面,提供了一种计算机设备,包括存储器和处理器,所述存储器用于存储所述处理器的人机对话的程序,所述处理器配置为经由执行所述人机对话的程序来执行以下处理:在与目标用户进行对话时,获得所述目标用户的对话数据,并基于所述对话数据生成对话文本信息;将所述对话文本信息提供至可配置参数提取功能的框架,以供所述可配置参数提取功能的框架基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取,并接收所述框架提取得到的所述对话文本信息的参数;根据所述参数与所述目标用户继续进行对话,并继续执行所述获得所述目标用户的对话数据并基于所述对话数据生成对话文本信息的步骤,直至与所述目标用户之间的对话停止。In a fifth aspect, a computer device is provided, including a memory and a processor, the memory is configured to store a program of the human-machine dialogue of the processor, and the processor is configured to execute the program of the human-machine dialogue The following processing is performed: during a dialogue with the target user, the dialogue data of the target user is obtained, and dialogue text information is generated based on the dialogue data; the dialogue text information is provided to the framework of the configurable parameter extraction function for use The framework of the configurable parameter extraction function extracts the parameters of the dialogue text information based on the pre-configured parameter extraction function, and receives the parameters of the dialogue text information extracted by the framework; The target user continues to have a dialogue, and continues to perform the steps of obtaining dialogue data of the target user and generating dialogue text information based on the dialogue data until the dialogue with the target user stops.
第六方面,提供了一种存储有计算机可读指令的计算机可读存储介质,其上存储有人机对话的程序,所述人机对话的程序被处理器执行时实现以下处理:在对话平台与目标用户开始对话后,执行获取文本信息步骤,所述获取文本信息步骤包括,获取由所述对话平台提供的所述目标用户的对话文本信息,所述对话文本信息由所述对话平台根据所述目标用户的对话数据生成并提供至所述具有可配置参数提取功能的框架;基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取;将提取得到的所述对话文本信息的参数发送至所述对话平台,以供所述对话平台根据所述参数与所述目标用户继续对话;执行所述获取文本信息步骤,直至所述对话平台与所述目标用户之间的对话停止。In a sixth aspect, a computer-readable storage medium storing computer-readable instructions is provided, and a program for man-machine dialogue is stored thereon. When the program for the man-machine dialogue is executed by a processor, the following processing is implemented: After the target user starts the dialogue, the step of obtaining text information is executed. The step of obtaining text information includes obtaining the dialogue text information of the target user provided by the dialogue platform, and the dialogue text information is determined by the dialogue platform according to the The dialog data of the target user is generated and provided to the framework with a configurable parameter extraction function; the parameters of the dialog text information are extracted based on the pre-configured parameter extraction function; the parameters of the extracted dialog text information are extracted Send to the dialogue platform for the dialogue platform to continue the dialogue with the target user according to the parameters; execute the step of obtaining text information until the dialogue between the dialogue platform and the target user stops.
第七方面,提供了一种存储有计算机可读指令的计算机可读存储介质,其上存储有人机对话的程序,所述人机对话的程序被处理器执行时实现以下处理:在与目标用户进行对话时,获得所述目标用户的对话数据,并基于所述对话数据生成对话文本信息;将所述对话文本信息提供至可配置参数提取功能的框架,以供所述可配置参数提取功能的框架基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取,并接收所述框架提取得到的所述对话文本信息的参数;根据所述参数与所述目标用户继续进行对话,并继续执行所述获得所述目标用户的对话数据并基于所述对话数据生成对话文本信息的步骤,直至与所述目标用户之间的对话停止。In a seventh aspect, a computer-readable storage medium storing computer-readable instructions is provided, and a program for man-machine dialogue is stored thereon. When the program for the man-machine dialogue is executed by a processor, the following processing is implemented: During a dialogue, obtain the dialogue data of the target user, and generate dialogue text information based on the dialogue data; provide the dialogue text information to the framework of the configurable parameter extraction function for the purpose of the configurable parameter extraction function The framework extracts the parameters of the dialogue text information based on the pre-configured parameter extraction function, and receives the parameters of the dialogue text information extracted by the framework; continues the dialogue with the target user according to the parameters, and The steps of obtaining the dialogue data of the target user and generating dialogue text information based on the dialogue data are continued until the dialogue with the target user stops.
上述人机对话方法、装置、计算机设备和计算机可读存储介质,利用了预先建立的具有可配置参数提取功能的框架对来自对话平台的文本信息进行参数提取,而该框架的特定参数提取功能在使用之前根据需求即可配置完成,框架整合了多种参数提取功能并支持多种参数提取功能的配置,使得在对对话数据进行参数提取时基本上无需开发人员重新开发相应类型的参数提取代码,因此,可以提高人机对话平台的使用效率,使对话平台的使用更加方便,可以满足更多场景的需要。The above-mentioned human-machine dialogue method, device, computer equipment and computer-readable storage medium utilize a pre-established framework with configurable parameter extraction function to extract parameters from the text information from the dialogue platform, and the specific parameter extraction function of the framework is It can be configured according to requirements before use. The framework integrates a variety of parameter extraction functions and supports the configuration of multiple parameter extraction functions, making it basically unnecessary for developers to re-develop corresponding types of parameter extraction codes when extracting parameters from dialog data. Therefore, the use efficiency of the human-machine dialogue platform can be improved, the use of the dialogue platform is more convenient, and the needs of more scenarios can be met.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本申请。It should be understood that the above general description and the following detailed description are only exemplary and cannot limit the application.
附图说明Description of the drawings
图1是根据一示例性实施例示出的一种人机对话方法的系统架构示意图;Fig. 1 is a schematic diagram showing a system architecture of a human-machine dialogue method according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种人机对话方法的流程图;Fig. 2 is a flow chart showing a method for man-machine dialogue according to an exemplary embodiment;
图3是根据图2对应实施例示出的一实施例的步骤220之前步骤、步骤230之后步骤及步骤250的细节的流程图;FIG. 3 is a flowchart of the steps before step 220, the steps after step 230, and the details of step 250 according to an embodiment corresponding to FIG. 2;
图4是根据另一示例性实施例示出的一种人机对话方法的流程图;Fig. 4 is a flow chart showing a method for man-machine dialogue according to another exemplary embodiment;
图5是根据一示例性实施例示出的一种人机对话装置的框图;Fig. 5 is a block diagram showing a device for man-machine dialogue according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种实现上述人机对话方法的计算机设备的示例框图;Fig. 6 is an exemplary block diagram showing a computer device implementing the above-mentioned human-machine dialogue method according to an exemplary embodiment;
图7是根据一示例性实施例示出的一种实现上述人机对话方法的计算机可读存储介质。Fig. 7 shows a computer-readable storage medium for implementing the above-mentioned human-machine dialogue method according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。The exemplary embodiments will be described in detail here, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the application as detailed in the appended claims.
此外,附图仅为本申请的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。In addition, the drawings are only schematic illustrations of the application and are not necessarily drawn to scale. The same reference numerals in the figures denote the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities.
本申请首先提供了一种人机对话方法。在本申请的技术方案中,人机对话的主要形式是对话平台与人类进行对话,对话平台接收人类反馈的对话数据并根据该对话数据向人类发送相应的对话数据从而进行与人类的对话。对话平台可以包括多种用于实现与人类进行对话的模块、模型或者算法,比如可以包括语音合成模块、语言模型、声学模型等,对话平台可以与人类进行文本、语音或者视频语音对话。本申请提供的人机对话方法可以由具有可配置参数提取功能的框架执行,该框架可以与对话平台之间建立数据传输通道,通过预先对框架配置所需的参数提取功能,便可以对对话平台发来的对话文本信息进行相应的参数提取,提取到的参数会被反馈给对话平台,从而使对话平台在与人类进行人机对话时表现得更好。本申请的人机对话方法可以应用于各种场景,比如可以是金融场景,应用于金融场景的一个具体例子可以是通过对话平台对是否允许为用户发放贷款进行审核,或者通过与用户交流,获取历史行为数据以进行金融风险或个人金融财务方面的评估。This application first provides a method for man-machine dialogue. In the technical solution of the present application, the main form of human-machine dialogue is that the dialogue platform conducts dialogue with humans, and the dialogue platform receives dialogue data fed back by humans and sends corresponding dialogue data to humans based on the dialogue data to conduct dialogues with humans. The dialogue platform may include a variety of modules, models, or algorithms for realizing dialogue with humans, for example, it may include a speech synthesis module, language model, acoustic model, etc. The dialogue platform may conduct text, voice or video voice dialogue with humans. The human-machine dialogue method provided in this application can be executed by a framework with a configurable parameter extraction function. The framework can establish a data transmission channel with the dialogue platform. By configuring the required parameter extraction function for the framework in advance, the dialogue platform can be Corresponding parameter extraction is performed on the sent dialogue text information, and the extracted parameters will be fed back to the dialogue platform, so that the dialogue platform performs better when conducting man-machine conversations with humans. The human-machine dialogue method of this application can be applied to various scenarios, such as financial scenarios. A specific example of application to financial scenarios can be to review whether loans are allowed to users through a dialogue platform, or to obtain information through communication with users. Historical behavior data for financial risk or personal financial evaluation.
本申请的实施终端可以是任何具有运算、处理以及通信功能的设备,该设备可以与外部设备相连,用于接收或者发送数据,具体可以是便携移动设备,例如智能手机、平板电脑、笔记本电脑、PDA(Personal Digital Assistant)等,也可以是固定式设备,例如,计算机设备、现场终端、台式电脑、服务器、工作站等,还可以是多个设备的集合,比如云计算的物理基础设施或者服务器集群。可选地,本申请的实施终端可以为服务器或者云计算的物理基础设施。The implementation terminal of this application can be any device with computing, processing, and communication functions. The device can be connected to an external device to receive or send data. Specifically, it can be a portable mobile device, such as a smart phone, a tablet computer, a notebook computer, PDA (Personal Digital Assistant), etc., can also be fixed devices, such as computer equipment, field terminals, desktop computers, servers, workstations, etc., or a collection of multiple devices, such as cloud computing physical infrastructure or server clusters . Optionally, the implementation terminal of this application may be a server or a physical infrastructure of cloud computing.
图1是根据一示例性实施例示出的一种人机对话方法的系统架构示意图。如图1所示,该系统架构包括服务器110、台式计算机120以及用户终端130,台式计算机120与服务器110之间、用户终端130与台式计算机120之间均通过通信链路相连,从而可以进行数据的接收和发送。台式计算机120上固设有对话平台,服务器110上固设有具有可配置参数提取功能的框架,因此,在本实施例中,服务器110可以为本申请的实施终端。当本申请提供的人机对话方法应用于图1所示的系统架构中时,一个具体过程可以是这样的:首先,用户使用用户终端130向台式计算机120上固设的对话平台发起会话,台式计算机120上的对话平台会接收到用户终端130发来的语音形式的对话数据,将该语音形式的对话数据转换为对话文本信息,并将对话文本信息发送至服务器110上;由于服务器110 上固设的框架已经预先配置好参数提取功能,使用该框架即可快速提取出对话文本信息中的参数,服务器110会将提取到的参数发送至台式计算机120上的对话平台,对话平台利用该参数即可确定如何进一步与用户进行对话,也就是说,对话平台可以真正了解到用户在上次反馈的对话数据的含义,从而可以继续与用户之间的人机对话。Fig. 1 is a schematic diagram showing a system architecture of a human-machine dialogue method according to an exemplary embodiment. As shown in Figure 1, the system architecture includes a server 110, a desktop computer 120, and a user terminal 130. The desktop computer 120 and the server 110, and the user terminal 130 and the desktop computer 120 are all connected by communication links, so that data can be performed. Receiving and sending. The desktop computer 120 is fixedly provided with a dialogue platform, and the server 110 is fixedly provided with a framework with a configurable parameter extraction function. Therefore, in this embodiment, the server 110 may be the implementation terminal of the application. When the man-machine dialogue method provided by this application is applied to the system architecture shown in FIG. 1, a specific process can be as follows: First, the user uses the user terminal 130 to initiate a conversation with the dialogue platform fixed on the desktop computer 120. The dialogue platform on the computer 120 will receive the voice dialogue data from the user terminal 130, convert the voice dialogue data into dialogue text information, and send the dialogue text information to the server 110; The set frame has been pre-configured with the parameter extraction function, and the parameters in the dialog text information can be quickly extracted using this frame. The server 110 will send the extracted parameters to the dialog platform on the desktop computer 120, and the dialog platform uses the parameters to It can determine how to further dialogue with the user, that is, the dialogue platform can truly understand the meaning of the dialogue data that the user feedbacks last time, so that the man-machine dialogue with the user can be continued.
值得一提的是,图1仅为本申请的一个实施例。虽然在本实施例中的实施终端为服务器,但在其他实施例中,实施终端可以为如前所述的各种终端或设备;虽然在本实施例中,具有可配置参数提取功能的框架以及对话平台分别固设在不同的终端上,但在其他实施例或者具体应用中,具有可配置参数提取功能的框架以及对话平台可以设置于同一终端上,本申请对此不作任何限定,本申请的保护范围也不应因此而受到任何限制。It is worth mentioning that Fig. 1 is only an embodiment of the present application. Although the implementing terminal in this embodiment is a server, in other embodiments, the implementing terminal may be various terminals or devices as described above; although in this embodiment, a framework with a configurable parameter extraction function and The dialogue platforms are respectively fixed on different terminals, but in other embodiments or specific applications, the framework with the configurable parameter extraction function and the dialogue platform can be set on the same terminal. This application does not make any limitation on this. The scope of protection should not be restricted as a result.
图2是根据一示例性实施例示出的一种人机对话方法的流程图。在物理层面,本实施例提供的人机对话方法可以由服务器执行;而在逻辑层面,本实施例提供的人机对话方法由具有可配置参数提取功能的框架执行,如图2所示,包括以下步骤:Fig. 2 is a flow chart showing a method for man-machine dialogue according to an exemplary embodiment. At the physical level, the man-machine dialogue method provided by this embodiment can be executed by the server; and at the logical level, the man-machine dialogue method provided by this embodiment is executed by a framework with a configurable parameter extraction function, as shown in Figure 2, including The following steps:
步骤220,在对话平台与目标用户开始对话后,执行获取文本信息步骤,所述获取文本信息步骤包括,获取由所述对话平台提供的所述目标用户的对话文本信息。Step 220: After the dialogue platform starts a dialogue with the target user, perform a step of obtaining text information. The step of obtaining text information includes obtaining the dialogue text information of the target user provided by the dialogue platform.
所述对话文本信息由所述对话平台根据所述目标用户的对话数据生成并提供至所述具有可配置参数提取功能的框架。The dialogue text information is generated by the dialogue platform according to the dialogue data of the target user and provided to the framework with a configurable parameter extraction function.
所述对话平台会先获得所述目标用户的对话数据,然后根据这些对话数据生成对话文本信息。参数是记录在对话文本信息中的一种要素或者信息项,比如,参数可以是一段对话文本信息中的关键词。目标用户的对话数据可以是语音数据,也可以是文本数据,还可以是音视频数据。The dialogue platform first obtains the dialogue data of the target user, and then generates dialogue text information based on the dialogue data. A parameter is an element or information item recorded in the dialog text information. For example, the parameter can be a keyword in a piece of dialog text information. The dialog data of the target user can be voice data, text data, or audio and video data.
当目标用户的对话数据为文本数据时,可以直接将该文本数据作为对话文本信息。当目标用户的对话数据为语音数据时,所述对话平台根据所述对话数据生成对话文本信息的过程可以包括:将所述对话数据转换为文本信息,作为生成的对话文本信息。此转换过程可以利用语音识别等模型或算法来实现。When the dialogue data of the target user is text data, the text data can be directly used as dialogue text information. When the dialogue data of the target user is voice data, the process of generating dialogue text information by the dialogue platform according to the dialogue data may include: converting the dialogue data into text information as the generated dialogue text information. This conversion process can be implemented using models or algorithms such as speech recognition.
步骤230,基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取。Step 230: Extract the parameters of the dialog text information based on the pre-configured parameter extraction function.
在一个实施例中,所述框架的可配置参数提取功能包括以下中的一种或多种:与预置的多个提取函数分别对应的不同参数项的参数提取功能;与至少一个参数项对应的基于正则表达式的参数提取功能,所述正则表达式基于预设配置格式实现;基于外部链接的参数提取功能,用于引入外部参数提取功能,所述外部参数提取功能对应至少一个参数项的参数提取功能;附加词汇功能,用于提取与至少一个提取函数对应的基本提取结果的语义相似的其他参数,所述基本提取结果为利用对应提取函数提取得到的参数中相同的表现形式最多的参数。In one embodiment, the configurable parameter extraction function of the framework includes one or more of the following: a parameter extraction function of different parameter items corresponding to a plurality of preset extraction functions respectively; corresponding to at least one parameter item The parameter extraction function based on regular expressions is implemented based on a preset configuration format; the parameter extraction function based on external links is used to introduce an external parameter extraction function that corresponds to at least one parameter item Parameter extraction function; additional vocabulary function for extracting other parameters that are semantically similar to the basic extraction result corresponding to at least one extraction function, and the basic extraction result is the parameter with the most identical manifestations among the parameters extracted by the corresponding extraction function .
参数项是一种特定的参数的名称。对不同的对话文本信息来说,针对同一个参数项,通常可以提取到不同的参数。框架可提取的每一参数的参数项对应一种参数类型,而对应于同一参数类型的参数项可以有一个或者多个。各提取函数对应的提取功能所能够提取的不同参数项的参数可以是属于相同或者不同的参数类型。比如,所述框架可以提取的参数的类型可以包括:日期型、数值型、字符串型、地址型、布尔型,其中,数值型又可以包括:整数型、小数型。比如,对应于属于数值型中的整数型的参数的提取,若数值型的参数项是发薪日期,那么与该提取函数对应的基本提取结果可以是XX月XX日,它们都使用了相同的格式,因此是表现形式相同,并且由于提取的这种表现形式的参数最多,因此,XX月XX日是相同的表现形式最多的参数。而与该语义相似的其他参数可以包括:月初、月中、月末、上旬、中旬、下旬等。The parameter item is the name of a specific parameter. For different dialog text information, different parameters can usually be extracted for the same parameter item. The parameter item of each parameter that can be extracted by the framework corresponds to a parameter type, and there can be one or more parameter items corresponding to the same parameter type. The parameters of different parameter items that can be extracted by the extraction function corresponding to each extraction function may belong to the same or different parameter types. For example, the types of parameters that can be extracted by the framework may include: date type, numeric type, string type, address type, and Boolean type, where the numeric type may include integer type and decimal type. For example, corresponding to the extraction of integer parameters in the numeric type, if the numeric parameter item is the pay date, then the basic extraction result corresponding to the extraction function can be XX month XX day, and they all use the same The format is therefore the same in expression form, and because the extracted parameters of this expression form are the most, therefore, XX month XX day is the parameter with the most expression forms of the same. Other parameters similar to the semantics may include: beginning of the month, middle of the month, end of the month, early, mid, late, etc.
Figure PCTCN2020103847-appb-000001
Figure PCTCN2020103847-appb-000001
Figure PCTCN2020103847-appb-000002
Figure PCTCN2020103847-appb-000002
表1Table 1
比如,参见表1所示,分别示出了两个提取函数所对应参数项的参数提取功能,这两个提取函数分别是{$birthday}和{$day},对应的参数项分别是出生年月日和发薪日期,提取的参数所对应的参数类型分别是日期型和整数型,其中中文参数名为用户自主设置的中文名字,英文参数名为便于系统内部管理的参数的英文名,框架内部集成了两个提取函数的功能,表1中还示出了附加词汇,它们与{$day}这一提取函数对应的基本提取结果的语义相似,表1所示的各项内容均配置在框架中。For example, see Table 1, which respectively show the parameter extraction functions of the parameter items corresponding to the two extraction functions. The two extraction functions are {$birthday} and {$day}, and the corresponding parameter items are the year of birth. Month, day and pay date, the parameter types corresponding to the extracted parameters are date type and integer type respectively. The Chinese parameter name is the Chinese name set by the user, and the English parameter name is the English name of the parameter that is convenient for the internal management of the system. Frame The functions of two extraction functions are integrated internally. Table 1 also shows additional vocabulary. They are similar in semantics to the basic extraction result corresponding to the extraction function {$day}. The contents shown in Table 1 are all configured in Frame.
IDID 参数名parameter name 正则法则Regular rule 输出变量类型Output variable type
11 提取身份证前6位Extract the first 6 digits of the ID card //d{6}//d{6} 字符串型String type
22 提取手机号码Retrieve mobile phone number (13|14|15|18)\\d{9}(13|14|15|18)\\d{9} 字符串型String type
表2Table 2
有关基于正则表达式的参数提取功能请参照表2所示,ID为系统编号,参数名为该正则法则的名称,正则法则为java编程支持的正则表达式,写法参照正则表达式书写规则,输出变量类型为提取数据的数据类型。Regarding the parameter extraction function based on regular expressions, please refer to Table 2. ID is the system number, the parameter name is the name of the regular rule, the regular rule is the regular expression supported by java programming, and the writing method refers to the regular expression writing rules, output The variable type is the data type of the extracted data.
Figure PCTCN2020103847-appb-000003
Figure PCTCN2020103847-appb-000003
表3table 3
请参照表3所示,示出了基于外部链接的参数提取功能,其中,ID为系统编号;参数名为该链接参数提取功能的命名;URL为调用该外部链接的地址;用户话术输入对应Json信息字段为需要提取参数的话术所对应的json字段名;其它输入字段为实现成功调用该链接的其它所需信息,如用户名,密码信息;返回结果对应字段为链接返回的结果对应的字段名。Please refer to Table 3, which shows the parameter extraction function based on external links, where ID is the system number; the parameter name is the name of the link parameter extraction function; URL is the address where the external link is called; the user's verbal input corresponds to The Json information field is the json field name corresponding to the idiom that needs to extract the parameters; the other input fields are other required information for successfully calling the link, such as user name and password information; the field corresponding to the returned result is the field corresponding to the result returned by the link name.
在一个实施例中,所述框架还包括测试验证功能,所述测试验证功能用于对基于正则表达式的参数提取功能和/或基于外部链接的参数提取功能的可靠性进行验证,以确保所述基于正则表达式的参数提取功能和/或基于外部链接的参数提取功能可用。In one embodiment, the framework further includes a test verification function, which is used to verify the reliability of the parameter extraction function based on regular expressions and/or the parameter extraction function based on external links to ensure that all The parameter extraction function based on regular expressions and/or the parameter extraction function based on external links are available.
具体而言,测试验证功能可以通过将预设的标记了正确的提取出的目标参数的对话文本信息输入至所述框架来实现,通过对所述框架预先分别配置好与目标参数对应的基于外部链接的参数提取功能以及与参数项对应的基于正则表达式的参数提取功能,然后将该对话文本信息输入至所述框架,分别利用所述框架的基于外部链接的参数提取功能以及基于正则表达式的参数提取功能提取该对话文本信息的参数,然后将提取出的该参数与正确的提取出的目标参数进行比对,即可验证基于正则表达式的参数提取功能和基于外部链接的参数提取功能是否可用。Specifically, the test verification function can be implemented by inputting preset dialogue text information marked with the correctly extracted target parameters into the framework, and by pre-configuring the framework with externally-based information corresponding to the target parameters. Link parameter extraction function and regular expression-based parameter extraction function corresponding to the parameter item, and then input the dialog text information into the framework, and use the framework's parameter extraction function based on external links and the regular expression-based parameter extraction function respectively The parameter extraction function extracts the parameters of the dialog text information, and then compares the extracted parameters with the correct extracted target parameters to verify the parameter extraction function based on regular expressions and the parameter extraction function based on external links it's usable or not.
在一个实施例中,所述框架可提取的参数的类型包括字符串型或布尔型,所述可配置参数提取功能还包括:对应于至少一个字符串型参数项或布尔型参数项的补充词汇功能,用于提取与该参数项对应且属于补充词汇的参数。In one embodiment, the types of parameters that can be extracted by the framework include string type or Boolean type, and the configurable parameter extraction function further includes: a supplementary vocabulary corresponding to at least one string type parameter item or Boolean type parameter item Function to extract the parameter corresponding to the parameter item and belonging to the supplementary vocabulary.
在一个实施例中,所述基于预先配置的参数提取功能,对所述对话文本信息的参数进 行提取,包括:基于预先配置的对应于字符串型参数项的补充词汇功能,在所述对话文本信息中提取与该参数项对应且属于补充词汇的参数;将所述参数替换为与该参数对应的标准化参数,作为在所述对话文本信息中提取得到的参数。In one embodiment, the extraction of the parameters of the dialog text information based on the pre-configured parameter extraction function includes: based on the pre-configured supplementary vocabulary function corresponding to the string-type parameter item, in the dialog text The parameter corresponding to the parameter item and belonging to the supplementary vocabulary is extracted from the information; the parameter is replaced with a standardized parameter corresponding to the parameter as the parameter extracted from the dialogue text information.
在一个实施例中,所述框架可提取的参数的类型包括布尔型,所述可配置参数提取功能还包括:对应于至少一个布尔型参数项的意图识别功能,用于提取与该参数项的语义相似的参数。In one embodiment, the types of parameters that can be extracted by the framework include a Boolean type, and the configurable parameter extraction function further includes: an intent recognition function corresponding to at least one Boolean parameter item for extracting information related to the parameter item. Parameters with similar semantics.
请参照表4,表4与表1的不同之处在于,它示出了对布尔型和字符串型的参数项的参数提取功能,其中,姓名这一参数项可以通过提取函数进行提取,与表1中对日期型和整数型的参数提取的功能的不同之处在于,对婚姻、有无公积金参数项可以通过补充词汇的方式提取,对身份证前6位这一参数项可以通过正则表达式提取,对单位名称这一参数项可以通过外部链接的方式提取,对婚姻、有无公积金参数项的提取结果还可以进行标准化,比如,无论对婚姻这一参数项提取到的参数是没结婚还是单身,都会将标准化后的“未婚”作为提取到的参数;对有无公积金参数项还可以通过意图识别提取,即对于有无公积金参数项,虽然对话文本信息中不包括这一参数项对应的补充词汇,但可以识别出与有无公积金这一参数项语义相近的词。Please refer to Table 4. The difference between Table 4 and Table 1 is that it shows the parameter extraction function for Boolean and string parameter items. Among them, the parameter item of name can be extracted by the extraction function, and The difference between the function of date type and integer type parameter extraction in Table 1 is that the parameter items of marriage and provident fund can be extracted by means of supplementary vocabulary, and the parameter item of the first 6 digits of the ID card can be expressed through regular expressions. The parameter item of the unit name can be extracted through external links, and the extraction results of the marriage and provident fund parameter items can also be standardized. For example, whether the parameter extracted for the marriage parameter item is not married If you are single, you will use the standardized "unmarried" as the extracted parameter; the parameter item of provident fund can also be extracted by intention recognition, that is, for the parameter item of provident fund, although the dialogue text information does not include the corresponding parameter item The supplementary vocabulary of, but can identify words with similar semantics to the parameter item of provident fund.
Figure PCTCN2020103847-appb-000004
Figure PCTCN2020103847-appb-000004
表4Table 4
步骤250,将提取得到的所述对话文本信息的参数发送至所述对话平台,以供所述对话平台根据所述参数与所述目标用户继续对话。Step 250: Send the extracted parameters of the dialogue text information to the dialogue platform for the dialogue platform to continue the dialogue with the target user according to the parameters.
对话平台在获得了参数之后,就相当于获得了目标用户上次反馈的关键信息,对话平台便可以根据该关键信息选择合适的表达方式继续与目标用户的对话。After the dialogue platform obtains the parameters, it is equivalent to obtaining the key information of the target user's last feedback, and the dialogue platform can choose an appropriate expression according to the key information to continue the dialogue with the target user.
步骤260,执行所述获取文本信息步骤,直至所述对话平台与所述目标用户之间的对话停止。Step 260: Perform the step of obtaining text information until the dialogue between the dialogue platform and the target user stops.
除非所述对话平台与所述目标用户之间的对话停止,否则就执行获取文本信息步骤,即步骤220,从而循环执行步骤220及之后的步骤。Unless the dialogue between the dialogue platform and the target user is stopped, the step of obtaining text information, namely step 220, is executed, so that step 220 and subsequent steps are executed in a loop.
图3是根据图2对应实施例示出的一实施例的步骤220之前步骤、步骤230之后步骤及步骤250的细节的流程图。在图3所示实施例中,前面所述参数为第二参数,所述框架还可配置参数对比功能,参照图3所示,可以包括以下步骤:FIG. 3 is a flowchart of the steps before step 220, the steps after step 230, and the details of step 250 according to an embodiment corresponding to FIG. 2. In the embodiment shown in FIG. 3, the aforementioned parameter is the second parameter, and the framework may also be configured with a parameter comparison function. As shown in FIG. 3, the following steps may be included:
步骤210,获取由对话平台提供的对应于目标用户的第一参数。Step 210: Obtain a first parameter corresponding to the target user provided by the dialogue platform.
所述第一参数由所述对话平台基于所述目标用户提交的个人信息提取得到。The first parameter is extracted by the dialogue platform based on the personal information submitted by the target user.
本申请的具有可配置参数提取功能的框架与对话平台可以位于同一终端上,也可以分别位于不同终端上。当位于同一终端时,对话平台将对应于目标用户的第一参数写入内存或硬盘,然后由框架从内存或硬盘读取即可得到第一参数。当位于不同终端时,框架可通过通信链路从对话平台获取第一参数。The framework with the configurable parameter extraction function and the dialogue platform of the present application may be located on the same terminal, or may be located on different terminals. When located in the same terminal, the dialogue platform writes the first parameter corresponding to the target user into the memory or hard disk, and then the framework reads the first parameter from the memory or hard disk to obtain the first parameter. When located at different terminals, the framework can obtain the first parameter from the dialogue platform through the communication link.
步骤240,基于预先配置的参数对比功能,对相同类型的所述第一参数和所述第二参数进行对比,以对所述目标用户的第二参数的可靠性进行校验,得到与各第二参数对应的校验结果。Step 240: Based on the pre-configured parameter comparison function, compare the first parameter and the second parameter of the same type to verify the reliability of the second parameter of the target user to obtain The verification result corresponding to the two parameters.
比如,对话平台预先存储了目标用户的年龄,目标用户的年龄可以作为第一参数;然后通过与目标用户对话,提取到的第二参数也为目标用户的年龄,将前后两次得到的目标用户的年龄进行比对,就可以判定提取到的第二参数的目标用户的年龄是否可靠。For example, the dialogue platform pre-stores the age of the target user, the age of the target user can be used as the first parameter; then through the dialogue with the target user, the second parameter extracted is also the age of the target user, and the target user obtained twice before and after By comparing the ages of, it can be determined whether the age of the target user extracted from the second parameter is reliable.
步骤250',将提取得到的所述对话文本信息的第二参数连同对应的校验结果发送至所述对话平台,以供所述对话平台根据所述第二参数和所述校验结果与所述目标用户继续对话。Step 250', the extracted second parameter of the dialogue text information is sent to the dialogue platform along with the corresponding verification result, so that the dialogue platform can compare the result with the second parameter and the verification result according to the second parameter and the verification result. The target user continues the conversation.
参数对比功能可以自动判断系统本身输入的用户信息与对话中提取的用户信息之间的差异,无需人工参与判断,减少了人工成本,提升了效率,使多轮对话平台可以应用到更复杂的金融场景中。The parameter comparison function can automatically determine the difference between the user information input by the system itself and the user information extracted in the dialogue, without manual participation in the judgment, reducing labor costs, improving efficiency, and enabling multi-round dialogue platforms to be applied to more complex finances Scene.
在一个实施例中,所述框架可配置的参数对比功能包括:通用对比功能,其中,所述通用对比功能的对比方式包括等于、大于、小于、包含、不包含;预置的多个参数对比函数,各参数对比函数对应不同参数项的参数对比功能。In one embodiment, the configurable parameter comparison function of the framework includes: a general comparison function, wherein the comparison mode of the general comparison function includes equal to, greater than, less than, inclusive, and not included; preset multiple parameter comparisons Function, each parameter comparison function corresponds to the parameter comparison function of different parameter items.
如前所述,所述框架可以提取的参数的类型可以包括:日期型、数值型、字符串型、布尔型,其中,数值型又可以包括:整数型、小数型。As mentioned above, the types of parameters that can be extracted by the framework can include: date, numeric, string, and boolean, where the numeric can also include integer and decimal.
在一个实施例中,所述通用对比功能的对比方式中的等于、大于和小于与日期型和/或数值型的参数类型相对应,所述通用对比功能的对比方式中的等于、包含和不包含与字符串型和/或布尔型的参数类型相对应。In one embodiment, in the comparison mode of the general comparison function, equal to, greater than, and less than correspond to date and/or numeric parameter types, and the comparison mode of the general comparison function in the comparison mode is equal to, contains, and does not correspond to Contains the parameter type corresponding to the string type and/or boolean type.
Figure PCTCN2020103847-appb-000005
Figure PCTCN2020103847-appb-000005
Figure PCTCN2020103847-appb-000006
Figure PCTCN2020103847-appb-000006
表5table 5
比如,参见表5所示,示出了通用对比功能中的“等于”和参数对比函数两项对比功能。ID为系统编码;对比参数名为记录对比结果的参数项的英文名;中文名为参数项的中文名;提参参数为前面实施例中框架所提参数项的英文名,为系统通过参数框架提取的参数项;输入参数为输入系统内部的已知的信息参数项名;预置对比方式为系统提供的一些特殊参数的对比功能,在表5中为{$compareBirthday}函数;对比方式:equal,是指是否相等。还可以选大于,小于等其它对比方式;是否允许误差:true为允许误差,false为不允许误差,即基于设定误差范围的对比功能,有对比允许的误差范围。如图中所示,员工人数的对比允许有10%的误差,在误差范围内,都认为是一致的;对比结果:有3种,满足,即两个数据一致;不满足,即两个数据不一致;无法对比,则是因为两者数据缺乏,导致无法进行对比。标准化结果:可以将对比结果做标准化处理,与前面的值一一对应。For example, see Table 5, which shows two comparison functions of "equal" and parameter comparison function in the general comparison function. ID is the system code; the comparison parameter name is the English name of the parameter item that records the comparison result; the Chinese name is the Chinese name of the parameter item; the parameter mentioning parameter is the English name of the parameter item mentioned in the framework in the previous embodiment, which is the system passing the parameter framework The extracted parameter item; the input parameter is the name of the known information parameter item in the input system; the preset comparison method is the comparison function of some special parameters provided by the system, in Table 5 it is the {$compareBirthday} function; the comparison method: equal , Refers to whether they are equal. You can also choose other comparison methods such as greater than and less than; whether to allow error: true is the allowable error, false is the allowable error, that is, based on the comparison function of the set error range, there is the allowable error range of the comparison. As shown in the figure, the comparison of the number of employees is allowed to have an error of 10%, and within the error range, they are considered to be consistent; the comparison result: there are 3 kinds of satisfaction, that is, two data are consistent; not satisfied, that is two data Inconsistent; the inability to compare is due to the lack of data between the two, which makes it impossible to compare. Standardized results: The comparison results can be standardized, and correspond to the previous values one-to-one.
在一个实施例中,所述框架通过可配置的参数对比功能进行对比的参数的类型包括:数值型,所述框架可配置的参数对比功能还包括:基于设定误差范围的对比功能,其中,所述基于设定误差范围的对比功能用于与等于的对比方式配合使用。表5所示的员工人数的对比允许有10%的误差即为基于设定误差范围的对比功能。In one embodiment, the types of parameters that the framework compares through a configurable parameter comparison function include: numerical type, and the configurable parameter comparison function of the framework further includes a comparison function based on a set error range, wherein, The comparison function based on the set error range is used in conjunction with the equal comparison method. The comparison of the number of employees shown in Table 5 allows an error of 10%, which is the comparison function based on the set error range.
在一个实施例中,所述框架通过可配置的参数对比功能进行对比的参数的类型包括:字符串型,所述框架可配置的参数对比功能还包括:基于拼音的对比功能,其中,所述基于拼音的对比功能用于与等于的对比方式配合使用。In one embodiment, the types of parameters compared by the framework through a configurable parameter comparison function include: string type, and the configurable parameter comparison function of the framework further includes a pinyin-based comparison function, wherein the The pinyin-based comparison function is used in conjunction with the comparison method of equals.
在一个实施例中,所述基于预先配置的参数对比功能,对相同类型的所述第一参数和所述第二参数进行对比,以对所述目标用户的第二参数的可靠性进行校验,得到与各第二参数对应的校验结果,包括:基于预先配置的参数对比功能,对相同类型的所述第一参数和所述第二参数进行对比,得到比对结果;将各比对结果替换为对应的标准化结果,作为与各第二参数对应的校验结果。In one embodiment, based on the pre-configured parameter comparison function, the first parameter and the second parameter of the same type are compared to verify the reliability of the second parameter of the target user To obtain a verification result corresponding to each second parameter, including: comparing the first parameter and the second parameter of the same type based on a pre-configured parameter comparison function to obtain a comparison result; The result is replaced with the corresponding standardized result as the verification result corresponding to each second parameter.
在本实施例中,通过将对比结果替换为标准化结果,保证了校验结果的一致性和规范性,提高了对话的准确性。In this embodiment, by replacing the comparison result with the standardized result, the consistency and standardization of the verification result are ensured, and the accuracy of the dialogue is improved.
Figure PCTCN2020103847-appb-000007
Figure PCTCN2020103847-appb-000007
Figure PCTCN2020103847-appb-000008
Figure PCTCN2020103847-appb-000008
表6Table 6
请参照表6,示出了示出了通用对比功能中的“等于”和参数对比函数两项对比功能。ID为系统编码;对比参数名为记录对比结果的参数项的英文名;中文名为参数项的中文名;提参参数为前面实施例中框架所提参数的参数项的英文名,为系统通过参数框架提取的参数;输入参数为输入系统内部的已知的信息参数项名;预置对比方式为系统提供一些特殊参数的对比功能。如身份证号一致对比,预置的功能函数会有多种对比的结果,在表5中为{$compareID}函数。如图中所示。对比方式:equal,是指是否相等,还可以选contain(包含),contained(包含于)等其它对比方式;是否允许拼音对比,即基于拼音的对比功能:true为允许,false为不允许。例:“李思”为系统输入,“李四”为提参值,若进行字符对比,两者不一致,若允许拼音对比,则是一致的,即比对结果为满足。对比结果:通用的有3种,在表6实施例中仅示出了与CompareName对应的equal(即是否相等)的对比方式。如果是系统预置的,则结果是多种多样的。标准化:可以将对比结果做标准化处理,与前面的比对结果一一对应。Please refer to Table 6, which shows two comparison functions of "equal" and parameter comparison function in the general comparison function. ID is the system code; the comparison parameter name is the English name of the parameter item that records the comparison result; the Chinese name is the Chinese name of the parameter item; the parameter reference is the English name of the parameter item of the parameter mentioned in the framework in the previous embodiment, which is passed by the system The parameters extracted by the parameter framework; the input parameters are the names of the known information parameter items in the input system; the preset comparison mode provides the system with the comparison function of some special parameters. If the ID number is consistent and compared, the preset function function will have multiple comparison results. In Table 5, it is the {$compareID} function. As shown in the picture. Comparison method: equal means whether it is equal or not. Other comparison methods such as contained (contained) and contained (contained) can also be selected; whether to allow pinyin comparison, that is, the comparison function based on pinyin: true is allowed, false is not allowed. Example: "Li Si" is the system input, and "Li Si" is the parameter value. If the characters are compared, the two are inconsistent. If the pinyin comparison is allowed, they are consistent, that is, the comparison result is satisfactory. Comparison result: There are three general types. In the embodiment of Table 6, only the comparison method of equal (that is, whether it is equal) corresponding to CompareName is shown. If it is preset by the system, the results are diverse. Standardization: The comparison results can be standardized, corresponding to the previous comparison results one by one.
综上所述,根据图2实施例提供的人机对话方法,利用了预先建立的具有可配置参数提取功能的框架对来自对话平台的文本信息进行参数提取,而该框架的特定参数提取功能在使用之前根据需求即可配置完成,框架整合了多种参数提取功能并支持多种参数提取功能的配置,使得在对对话数据进行参数提取时基本上无需开发人员重新开发相应类型的参数提取代码,因此,可以提高人机对话平台的使用效率,使对话平台的使用更加方便,可以满足更多场景的需要。To sum up, according to the man-machine dialogue method provided by the embodiment in FIG. 2, a pre-established framework with a configurable parameter extraction function is used to extract parameters from the text information from the dialogue platform, and the specific parameter extraction function of the framework is It can be configured according to requirements before use. The framework integrates a variety of parameter extraction functions and supports the configuration of multiple parameter extraction functions, making it basically unnecessary for developers to re-develop corresponding types of parameter extraction codes when extracting parameters from dialog data. Therefore, the use efficiency of the human-machine dialogue platform can be improved, the use of the dialogue platform is more convenient, and the needs of more scenarios can be met.
参照图4所示,本申请还提供了一种人机对话方法,该方法由对话平台执行,包括:Referring to Figure 4, this application also provides a human-machine dialogue method, which is executed by a dialogue platform and includes:
步骤410,在与目标用户进行对话时,获得所述目标用户的对话数据,并基于所述对话数据生成对话文本信息。Step 410: During a dialogue with a target user, obtain dialogue data of the target user, and generate dialogue text information based on the dialogue data.
步骤420,将所述对话文本信息提供至可配置参数提取功能的框架,以供所述可配置参数提取功能的框架基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取,并接收所述框架提取得到的所述对话文本信息的参数。Step 420: Provide the dialog text information to the framework of the configurable parameter extraction function, so that the framework of the configurable parameter extraction function extracts the parameters of the dialog text information based on the pre-configured parameter extraction function, and Receiving the parameters of the dialog text information extracted by the framework.
步骤430,根据所述参数与所述目标用户继续进行对话,并继续执行所述获得所述目标用户的对话数据并基于所述对话数据生成对话文本信息的步骤,直至与所述目标用户之间的对话停止。Step 430: Continue to have a dialogue with the target user according to the parameters, and continue to perform the steps of obtaining dialogue data of the target user and generating dialogue text information based on the dialogue data, until communication with the target user The conversation stopped.
步骤410-步骤430与图2实施例所示步骤相对应,关于步骤410-步骤430的具体技术细节请参照图2所示实施例,此处不再赘述。 Steps 410 to 430 correspond to the steps shown in the embodiment in FIG. 2. For specific technical details of steps 410 to 430, please refer to the embodiment shown in FIG. 2, which will not be repeated here.
本申请还提供了一种人机对话装置,以下是本申请的装置实施例。This application also provides a human-machine dialogue device. The following are device embodiments of this application.
图5是根据一示例性实施例示出的一种人机对话装置的框图,该人机对话装置包括具有可配置参数提取功能的框架。如图5所示,装置500包括:Fig. 5 is a block diagram showing a human-machine dialogue device according to an exemplary embodiment. The human-machine dialogue device includes a framework with a configurable parameter extraction function. As shown in FIG. 5, the device 500 includes:
获取模块510,被配置为在对话平台与目标用户开始对话后,执行获取文本信息步骤,所述获取文本信息步骤包括,获取由所述对话平台提供的所述目标用户的对话文本信息, 所述对话文本信息由所述对话平台根据所述目标用户的对话数据生成并提供至所述具有可配置参数提取功能的框架;The obtaining module 510 is configured to perform a step of obtaining text information after the dialogue platform starts a dialogue with the target user. The step of obtaining text information includes obtaining the dialogue text information of the target user provided by the dialogue platform, Dialogue text information is generated by the dialogue platform according to the dialogue data of the target user and provided to the framework with configurable parameter extraction function;
参数提取模块520,被配置为基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取;The parameter extraction module 520 is configured to extract the parameters of the dialog text information based on a pre-configured parameter extraction function;
发送模块530,被配置为将提取得到的所述对话文本信息的参数发送至所述对话平台,以供所述对话平台根据所述参数与所述目标用户继续对话;The sending module 530 is configured to send the extracted parameters of the dialogue text information to the dialogue platform, so that the dialogue platform can continue the dialogue with the target user according to the parameters;
执行模块540,被配置为执行所述获取文本信息步骤,直至所述对话平台与所述目标用户之间的对话停止。The execution module 540 is configured to execute the step of obtaining text information until the dialogue between the dialogue platform and the target user is stopped.
在一个实施例中,所述框架可配置的参数提取功能包括以下中的一种或多种:与预置的多个提取函数分别对应的不同参数项的参数提取功能;与至少一个参数项对应的基于正则表达式的参数提取功能,所述正则表达式基于预设配置格式实现;基于外部链接的参数提取功能,用于引入外部参数提取功能,所述外部参数提取功能对应至少一个参数项的参数提取功能;附加词汇功能,用于提取与至少一个提取函数对应的基本提取结果的语义相似的其他参数,所述基本提取结果为利用对应提取函数提取得到的参数中相同的表现形式最多的参数。In one embodiment, the configurable parameter extraction function of the framework includes one or more of the following: a parameter extraction function of different parameter items corresponding to a plurality of preset extraction functions respectively; corresponding to at least one parameter item The parameter extraction function based on regular expressions is implemented based on a preset configuration format; the parameter extraction function based on external links is used to introduce an external parameter extraction function that corresponds to at least one parameter item Parameter extraction function; additional vocabulary function for extracting other parameters that are semantically similar to the basic extraction result corresponding to at least one extraction function, and the basic extraction result is the parameter with the most identical manifestations among the parameters extracted by the corresponding extraction function .
在一个实施例中,所述框架还包括测试验证功能,所述测试验证功能用于对基于正则表达式的参数提取功能和/或基于外部链接的参数提取功能的可靠性进行验证,以确保所述基于正则表达式的参数提取功能和/或基于外部链接的参数提取功能可用。In one embodiment, the framework further includes a test verification function, which is used to verify the reliability of the parameter extraction function based on regular expressions and/or the parameter extraction function based on external links to ensure that all The parameter extraction function based on regular expressions and/or the parameter extraction function based on external links are available.
在一个实施例中,所述框架可提取的参数的类型包括字符串型或布尔型,所述可配置参数提取功能还包括:对应于至少一个字符串型参数项或布尔型参数项的补充词汇功能,用于提取与该参数项对应且属于补充词汇的参数。In one embodiment, the types of parameters that can be extracted by the framework include string type or Boolean type, and the configurable parameter extraction function further includes: a supplementary vocabulary corresponding to at least one string type parameter item or Boolean type parameter item Function to extract the parameter corresponding to the parameter item and belonging to the supplementary vocabulary.
在一个实施例中,所述框架可提取的参数的类型包括布尔型,所述可配置参数提取功能还包括:对应于至少一个布尔型参数项的意图识别功能,用于提取与该参数项的语义相似的参数。In one embodiment, the types of parameters that can be extracted by the framework include a Boolean type, and the configurable parameter extraction function further includes: an intent recognition function corresponding to at least one Boolean parameter item for extracting information related to the parameter item. Parameters with similar semantics.
在一个实施例中,所述参数为第二参数,所述框架还可配置参数对比功能;In one embodiment, the parameter is a second parameter, and the framework may also be configured with a parameter comparison function;
所述获取模块还被配置为在执行获取文本信息步骤之前,获取由对话平台提供的对应于目标用户的第一参数,所述第一参数由所述对话平台基于所述目标用户提交的个人信息提取得到;The obtaining module is further configured to obtain a first parameter corresponding to the target user provided by the dialogue platform before performing the step of obtaining text information, and the first parameter is based on the personal information submitted by the target user by the dialogue platform. Extracted
所述参数提取模块还被配置为在基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取之后,基于预先配置的参数对比功能,对相同类型的所述第一参数和所述第二参数进行对比,以对所述目标用户的第二参数的可靠性进行校验,得到与各第二参数对应的校验结果;The parameter extraction module is further configured to, after extracting the parameters of the dialog text information based on the pre-configured parameter extraction function, and then, based on the pre-configured parameter comparison function, compare the same type of the first parameter and the Comparing the second parameters to verify the reliability of the second parameters of the target user, and obtain a verification result corresponding to each second parameter;
所述发送模块被进一步配置为将提取得到的所述对话文本信息的第二参数连同对应的校验结果发送至所述对话平台,以供所述对话平台根据所述第二参数和所述校验结果与所述目标用户继续对话。The sending module is further configured to send the extracted second parameter of the dialog text information together with the corresponding verification result to the dialog platform, so that the dialog platform can use the second parameter and the calibration result according to the second parameter. The result of the test is to continue the dialogue with the target user.
根据本申请的另一方面,还提供了一种计算机设备,执行上述任一所示的人机对话方法的全部或者部分步骤。该计算机设备包括:According to another aspect of the present application, a computer device is also provided, which executes all or part of the steps of any one of the above-mentioned man-machine dialogue methods. The computer equipment includes:
至少一个处理器;以及At least one processor; and
与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected with the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如上述任一个示例性实施例所示出的人机对话方法。The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute as shown in any of the foregoing exemplary embodiments. Man-machine dialogue method.
所属技术领域的技术人员能够理解,本申请的各个方面可以实现为系统、方法或程序产品。因此,本申请的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可 以统称为“电路”、“模块”或“系统”。Those skilled in the art can understand that various aspects of the present application can be implemented as a system, a method, or a program product. Therefore, each aspect of the present application can be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which can be collectively referred to herein as "Circuit", "Module" or "System".
下面参照图6来描述根据本申请的这种实施方式的计算机设备600。图6显示的计算机设备600仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。The computer device 600 according to this embodiment of the present application will be described below with reference to FIG. 6. The computer device 600 shown in FIG. 6 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present application.
如图6所示,计算机设备600以通用计算设备的形式表现。计算机设备600的组件可以包括但不限于:上述至少一个处理单元610、上述至少一个存储单元620、连接不同系统组件(包括存储单元620和处理单元610)的总线630。其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元610执行,使得所述处理单元610执行本说明书上述“实施例方法”部分中描述的根据本申请各种示例性实施方式的步骤。存储单元620可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)621和/或高速缓存存储单元622,还可以进一步包括只读存储单元(ROM)623。存储单元620还可以包括具有一组(至少一个)程序模块625的程序/实用工具624,这样的程序模块625包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。总线630可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。计算机设备600也可以与一个或多个外部设备800(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该计算机设备600交互的设备通信,和/或与使得该计算机设备600能与一个或多个其它计算机设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口650进行。并且,计算机设备600还可以通过网络适配器660与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器660通过总线630与计算机设备600的其它模块通信。应当明白,尽管图中未示出,可以结合计算机设备600使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本申请实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算机设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本申请实施方式的方法。As shown in FIG. 6, the computer device 600 is represented in the form of a general-purpose computing device. The components of the computer device 600 may include, but are not limited to: the aforementioned at least one processing unit 610, the aforementioned at least one storage unit 620, and a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610). Wherein, the storage unit stores program code, and the program code can be executed by the processing unit 610, so that the processing unit 610 executes the various exemplary methods described in the above-mentioned "Embodiment Method" section of this specification. Steps of implementation. The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 621 and/or a cache storage unit 622, and may further include a read-only storage unit (ROM) 623. The storage unit 620 may also include a program/utility tool 624 having a set of (at least one) program module 625. Such program module 625 includes but is not limited to: an operating system, one or more application programs, other program modules, and program data, Each of these examples or some combination may include the implementation of a network environment. The bus 630 may represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any bus structure among multiple bus structures. bus. The computer device 600 can also communicate with one or more external devices 800 (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable a user to interact with the computer device 600, and/or communicate with Any device (such as a router, a modem, etc.) that enables the computer device 600 to communicate with one or more other computer devices. This communication can be performed through an input/output (I/O) interface 650. In addition, the computer device 600 may also communicate with one or more networks (for example, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 660. As shown in the figure, the network adapter 660 communicates with other modules of the computer device 600 through the bus 630. It should be understood that although not shown in the figure, other hardware and/or software modules can be used in conjunction with the computer device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc. Through the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described here can be implemented by software, or can be implemented by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on the network , Including several instructions to make a computer device (which may be a personal computer, a server, a terminal device, or a network device, etc.) execute the method according to the embodiment of the present application.
根据本申请的另一方面,还提供了一种计算机可读存储介质,其上存储有能够实现本说明书上述方法的程序产品,所述计算机可读存储介质可以是非易失性,也可以是易失性。在一些可能的实施方式中,本申请的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本申请各种示例性实施方式的步骤。According to another aspect of the present application, there is also provided a computer-readable storage medium on which is stored a program product capable of realizing the above-mentioned method of this specification. The computer-readable storage medium may be non-volatile or easily accessible. Loss of sex. In some possible implementation manners, each aspect of the present application can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to make the The terminal device executes the steps according to various exemplary embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.
参考图7所示,描述了根据本申请的实施方式的用于实现上述方法的程序产品700,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本申请的程序产品不限于此,在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Referring to FIG. 7, a program product 700 for implementing the above method according to an embodiment of the present application is described. It can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be stored in a terminal device, For example, running on a personal computer. However, the program product of this application is not limited to this. In this document, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or device.
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product can use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Type programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。可以以一种或多种程序设计语言的任意组合来编写用于执行本申请操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算机设备上部分在远程计算机设备上执行、或者完全在远程计算机设备或服务器上执行。在涉及远程计算机设备的情形中,远程计算机设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算机设备,或者,可以连接到外部计算机设备(例如利用因特网服务提供商来通过因特网连接)。The computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The readable signal medium may also be any readable medium other than a readable storage medium, and the readable medium may send, propagate, or transmit a program for use by or in combination with the instruction execution system, apparatus, or device. The program code contained on the readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing. The program code used to perform the operations of this application can be written in any combination of one or more programming languages. The programming languages include object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming languages. Programming language-such as "C" language or similar programming language. The program code can be executed entirely on the user's computer equipment, partly on the user's equipment, executed as an independent software package, partly on the user's computer equipment and partly executed on the remote computer equipment, or entirely on the remote computer equipment or server. Executed on. In the case of remote computer equipment, the remote computer equipment can be connected to the user’s computer equipment through any kind of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer equipment (for example, using Internet service providers). Business to connect via the Internet).
此外,上述附图仅是根据本申请示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。In addition, the above-mentioned drawings are merely schematic illustrations of the processing included in the method according to the exemplary embodiments of the present application, and are not intended for limitation. It is easy to understand that the processing shown in the above drawings does not indicate or limit the time sequence of these processings. In addition, it is easy to understand that these processes can be executed synchronously or asynchronously in multiple modules, for example.
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围执行各种修改和改变。本申请的范围仅由所附的权利要求来限制。It should be understood that the present application is not limited to the precise structure that has been described above and shown in the drawings, and various modifications and changes can be performed without departing from its scope. The scope of the application is only limited by the appended claims.

Claims (22)

  1. 一种人机对话方法,所述方法由具有可配置参数提取功能的框架执行,所述方法包括:A human-machine dialogue method, the method is executed by a framework with a configurable parameter extraction function, and the method includes:
    在对话平台与目标用户开始对话后,执行获取文本信息步骤,所述获取文本信息步骤包括,获取由所述对话平台提供的所述目标用户的对话文本信息,所述对话文本信息由所述对话平台根据所述目标用户的对话数据生成并提供至所述具有可配置参数提取功能的框架;After the dialogue platform starts a dialogue with the target user, a step of obtaining text information is performed. The step of obtaining text information includes obtaining the dialogue text information of the target user provided by the dialogue platform, and the dialogue text information is determined by the dialogue The platform generates and provides the framework with the configurable parameter extraction function according to the dialogue data of the target user;
    基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取;Extract the parameters of the dialogue text information based on the pre-configured parameter extraction function;
    将提取得到的所述对话文本信息的参数发送至所述对话平台,以供所述对话平台根据所述参数与所述目标用户继续对话;Sending the extracted parameters of the dialogue text information to the dialogue platform for the dialogue platform to continue the dialogue with the target user according to the parameters;
    执行所述获取文本信息步骤,直至所述对话平台与所述目标用户之间的对话停止。The step of obtaining text information is performed until the dialogue between the dialogue platform and the target user is stopped.
  2. 根据权利要求1所述的方法,其中,所述框架可配置的参数提取功能包括以下中的一种或多种:The method according to claim 1, wherein the configurable parameter extraction function of the framework includes one or more of the following:
    与预置的多个提取函数分别对应的不同参数项的参数提取功能;Parameter extraction function of different parameter items corresponding to multiple preset extraction functions respectively;
    与至少一个参数项对应的基于正则表达式的参数提取功能,所述正则表达式基于预设配置格式实现;A parameter extraction function based on a regular expression corresponding to at least one parameter item, the regular expression being implemented based on a preset configuration format;
    基于外部链接的参数提取功能,用于引入外部参数提取功能,所述外部参数提取功能对应至少一个参数项的参数提取功能;The parameter extraction function based on the external link is used to introduce the external parameter extraction function, and the external parameter extraction function corresponds to the parameter extraction function of at least one parameter item;
    附加词汇功能,用于提取与至少一个提取函数对应的基本提取结果的语义相似的其他参数,所述基本提取结果为利用对应提取函数提取得到的参数中相同的表现形式最多的参数。The additional vocabulary function is used to extract other parameters that are semantically similar to the basic extraction result corresponding to at least one extraction function, and the basic extraction result is the parameter with the most identical manifestations among the parameters extracted by the corresponding extraction function.
  3. 根据权利要求1或2所述的方法,其中,所述框架还包括测试验证功能,所述测试验证功能用于对基于正则表达式的参数提取功能和/或基于外部链接的参数提取功能的可靠性进行验证,以确保所述基于正则表达式的参数提取功能和/或基于外部链接的参数提取功能可用。The method according to claim 1 or 2, wherein the framework further comprises a test verification function, the test verification function is used to verify the reliability of the parameter extraction function based on regular expressions and/or the parameter extraction function based on external links The performance is verified to ensure that the parameter extraction function based on regular expressions and/or the parameter extraction function based on external links is available.
  4. 根据权利要求1或2所述的方法,其中,所述框架可提取的参数的类型包括字符串型或布尔型,所述可配置参数提取功能还包括:对应于至少一个字符串型参数项或布尔型参数项的补充词汇功能,用于提取与该参数项对应且属于补充词汇的参数。The method according to claim 1 or 2, wherein the types of parameters that can be extracted by the framework include string type or Boolean type, and the configurable parameter extraction function further includes: corresponding to at least one string type parameter item or The supplementary vocabulary function of the Boolean parameter item is used to extract the parameter corresponding to the parameter item and belonging to the supplementary vocabulary.
  5. 根据权利要求4所述的方法,其中,所述框架可提取的参数的类型包括布尔型,所述可配置参数提取功能还包括:The method according to claim 4, wherein the type of the parameters that can be extracted by the framework includes a Boolean type, and the configurable parameter extraction function further includes:
    对应于至少一个布尔型参数项的意图识别功能,用于提取与该参数项的语义相似的参数。The intent recognition function corresponding to at least one Boolean parameter item is used to extract a parameter that is semantically similar to the parameter item.
  6. 根据权利要求1或2所述的方法,其中,所述参数为第二参数,所述框架还可配置参数对比功能;The method according to claim 1 or 2, wherein the parameter is a second parameter, and the framework can also be configured with a parameter comparison function;
    在执行获取文本信息步骤之前,所述方法还包括,获取由对话平台提供的对应于目标用户的第一参数,所述第一参数由所述对话平台基于所述目标用户提交的个人信息提取得到;Before performing the step of obtaining text information, the method further includes obtaining a first parameter corresponding to the target user provided by the dialogue platform, the first parameter being extracted by the dialogue platform based on the personal information submitted by the target user ;
    在基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取之后,所述方法还包括,基于预先配置的参数对比功能,对相同类型的所述第一参数和所述第二参数进行对比,以对所述目标用户的第二参数的可靠性进行校验,得到与各第二参数对应的校验结果;After the parameters of the dialog text information are extracted based on the pre-configured parameter extraction function, the method further includes, based on the pre-configured parameter comparison function, comparing the first parameter and the second parameter of the same type. Making a comparison to verify the reliability of the second parameter of the target user to obtain a verification result corresponding to each second parameter;
    所述将提取得到的所述对话文本信息的参数发送至所述对话平台,以供所述对话平台根据所述参数与所述目标用户继续对话包括,将提取得到的所述对话文本信息的第二参数连同对应的校验结果发送至所述对话平台,以供所述对话平台根据所述第二参数和所述校验结果与所述目标用户继续对话。The sending the extracted parameters of the dialog text information to the dialog platform for the dialog platform to continue the dialog with the target user according to the parameters includes: The two parameters are sent to the dialogue platform together with the corresponding verification result, so that the dialogue platform can continue the dialogue with the target user according to the second parameter and the verification result.
  7. 一种人机对话方法,所述方法由对话平台执行,所述方法包括:A human-machine dialogue method, the method is executed by a dialogue platform, and the method includes:
    在与目标用户进行对话时,获得所述目标用户的对话数据,并基于所述对话数据生成对话文本信息;During a dialogue with a target user, obtain dialogue data of the target user, and generate dialogue text information based on the dialogue data;
    将所述对话文本信息提供至可配置参数提取功能的框架,以供所述可配置参数提取功能 的框架基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取,并接收所述框架提取得到的所述对话文本信息的参数;The dialog text information is provided to the framework of the configurable parameter extraction function, so that the framework of the configurable parameter extraction function extracts the parameters of the dialog text information based on the pre-configured parameter extraction function, and receives the The parameters of the dialogue text information obtained by frame extraction;
    根据所述参数与所述目标用户继续进行对话,并继续执行所述获得所述目标用户的对话数据并基于所述对话数据生成对话文本信息的步骤,直至与所述目标用户之间的对话停止。Continue the dialogue with the target user according to the parameters, and continue to execute the step of obtaining dialogue data of the target user and generating dialogue text information based on the dialogue data, until the dialogue with the target user stops .
  8. 一种人机对话装置,所述装置包括具有可配置参数提取功能的框架,所述装置包括:A human-machine dialogue device, the device includes a framework with a configurable parameter extraction function, and the device includes:
    获取模块,被配置为在对话平台与目标用户开始对话后,执行获取文本信息步骤,所述获取文本信息步骤包括,获取由所述对话平台提供的所述目标用户的对话文本信息,所述对话文本信息由所述对话平台根据所述目标用户的对话数据生成并提供至所述具有可配置参数提取功能的框架;The obtaining module is configured to execute the step of obtaining text information after the dialogue platform starts a dialogue with the target user. The step of obtaining text information includes obtaining the dialogue text information of the target user provided by the dialogue platform. The text information is generated by the dialogue platform according to the dialogue data of the target user and provided to the framework with configurable parameter extraction function;
    参数提取模块,被配置为基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取;The parameter extraction module is configured to extract the parameters of the dialog text information based on a pre-configured parameter extraction function;
    发送模块,被配置为将提取得到的所述对话文本信息的参数发送至所述对话平台,以供所述对话平台根据所述参数与所述目标用户继续对话;A sending module, configured to send the extracted parameters of the dialogue text information to the dialogue platform, so that the dialogue platform can continue the dialogue with the target user according to the parameters;
    执行模块,被配置为执行所述获取文本信息步骤,直至所述对话平台与所述目标用户之间的对话停止。The execution module is configured to execute the step of obtaining text information until the dialogue between the dialogue platform and the target user stops.
  9. 一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行:A computer device includes a memory and a processor, and computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, the processor executes:
    在对话平台与目标用户开始对话后,执行获取文本信息步骤,所述获取文本信息步骤包括,获取由所述对话平台提供的所述目标用户的对话文本信息,所述对话文本信息由所述对话平台根据所述目标用户的对话数据生成并提供至具有可配置参数提取功能的框架;After the dialogue platform starts a dialogue with the target user, a step of obtaining text information is performed. The step of obtaining text information includes obtaining the dialogue text information of the target user provided by the dialogue platform, and the dialogue text information is determined by the dialogue The platform generates and provides to the framework with configurable parameter extraction function according to the dialogue data of the target user;
    基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取;Extract the parameters of the dialogue text information based on the pre-configured parameter extraction function;
    将提取得到的所述对话文本信息的参数发送至所述对话平台,以供所述对话平台根据所述参数与所述目标用户继续对话;Sending the extracted parameters of the dialogue text information to the dialogue platform for the dialogue platform to continue the dialogue with the target user according to the parameters;
    执行所述获取文本信息步骤,直至所述对话平台与所述目标用户之间的对话停止。The step of obtaining text information is performed until the dialogue between the dialogue platform and the target user is stopped.
  10. 根据权利要求9所述的计算机设备,其中,所述框架可配置的参数提取功能包括以下中的一种或多种:9. The computer device according to claim 9, wherein the frame-configurable parameter extraction function includes one or more of the following:
    与预置的多个提取函数分别对应的不同参数项的参数提取功能;Parameter extraction function of different parameter items corresponding to multiple preset extraction functions respectively;
    与至少一个参数项对应的基于正则表达式的参数提取功能,所述正则表达式基于预设配置格式实现;A parameter extraction function based on a regular expression corresponding to at least one parameter item, the regular expression being implemented based on a preset configuration format;
    基于外部链接的参数提取功能,用于引入外部参数提取功能,所述外部参数提取功能对应至少一个参数项的参数提取功能;The parameter extraction function based on the external link is used to introduce the external parameter extraction function, and the external parameter extraction function corresponds to the parameter extraction function of at least one parameter item;
    附加词汇功能,用于提取与至少一个提取函数对应的基本提取结果的语义相似的其他参数,所述基本提取结果为利用对应提取函数提取得到的参数中相同的表现形式最多的参数。The additional vocabulary function is used to extract other parameters that are semantically similar to the basic extraction result corresponding to at least one extraction function, and the basic extraction result is the parameter with the most identical manifestations among the parameters extracted by the corresponding extraction function.
  11. 根据权利要求9或10所述的计算机设备,其中,所述框架还包括测试验证功能,所述测试验证功能用于对基于正则表达式的参数提取功能和/或基于外部链接的参数提取功能的可靠性进行验证,以确保所述基于正则表达式的参数提取功能和/或基于外部链接的参数提取功能可用。The computer device according to claim 9 or 10, wherein the framework further comprises a test verification function, the test verification function is used to perform the function of parameter extraction based on regular expressions and/or parameter extraction based on external links The reliability is verified to ensure that the parameter extraction function based on regular expressions and/or the parameter extraction function based on external links is available.
  12. 根据权利要求9或10所述的计算机设备,其中,所述框架可提取的参数的类型包括字符串型或布尔型,所述可配置参数提取功能还包括:对应于至少一个字符串型参数项或布尔型参数项的补充词汇功能,用于提取与该参数项对应且属于补充词汇的参数。The computer device according to claim 9 or 10, wherein the types of parameters that can be extracted by the framework include string type or Boolean type, and the configurable parameter extraction function further includes: corresponding to at least one string type parameter item Or the supplementary vocabulary function of the Boolean parameter item, used to extract the parameter corresponding to the parameter item and belonging to the supplementary vocabulary.
  13. 根据权利要求12所述的计算机设备,其中,所述框架可提取的参数的类型包括布尔型,所述可配置参数提取功能还包括:The computer device according to claim 12, wherein the type of the parameters that can be extracted by the framework includes a Boolean type, and the configurable parameter extraction function further includes:
    对应于至少一个布尔型参数项的意图识别功能,用于提取与该参数项的语义相似的参数。The intent recognition function corresponding to at least one Boolean parameter item is used to extract a parameter that is semantically similar to the parameter item.
  14. 根据权利要求9或10所述的计算机设备,其中,所述参数为第二参数,所述框架还可配置参数对比功能;The computer device according to claim 9 or 10, wherein the parameter is a second parameter, and the framework can also be configured with a parameter comparison function;
    在执行获取文本信息步骤之前,所述计算机可读指令被所述处理器执行时,使得所述处理器还执行:获取由对话平台提供的对应于目标用户的第一参数,所述第一参数由所述对话平台基于所述目标用户提交的个人信息提取得到;Before performing the step of obtaining text information, when the computer-readable instructions are executed by the processor, the processor also executes: obtaining the first parameter corresponding to the target user provided by the dialogue platform, the first parameter Extracted by the dialogue platform based on the personal information submitted by the target user;
    在基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取之后,所述计算机可读指令被所述处理器执行时,使得所述处理器还执行:基于预先配置的参数对比功能,对相同类型的所述第一参数和所述第二参数进行对比,以对所述目标用户的第二参数的可靠性进行校验,得到与各第二参数对应的校验结果;After the parameters of the dialog text information are extracted based on the pre-configured parameter extraction function, when the computer-readable instructions are executed by the processor, the processor also executes: a comparison function based on the pre-configured parameters , Comparing the first parameter and the second parameter of the same type to verify the reliability of the second parameter of the target user to obtain a verification result corresponding to each second parameter;
    所述将提取得到的所述对话文本信息的参数发送至所述对话平台,以供所述对话平台根据所述参数与所述目标用户继续对话包括,将提取得到的所述对话文本信息的第二参数连同对应的校验结果发送至所述对话平台,以供所述对话平台根据所述第二参数和所述校验结果与所述目标用户继续对话。The sending the extracted parameters of the dialog text information to the dialog platform for the dialog platform to continue the dialog with the target user according to the parameters includes: The two parameters and the corresponding verification result are sent to the dialogue platform, so that the dialogue platform can continue the dialogue with the target user according to the second parameter and the verification result.
  15. 一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行:A computer device includes a memory and a processor, and computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, the processor executes:
    在与目标用户进行对话时,获得所述目标用户的对话数据,并基于所述对话数据生成对话文本信息;During a dialogue with a target user, obtain dialogue data of the target user, and generate dialogue text information based on the dialogue data;
    将所述对话文本信息提供至可配置参数提取功能的框架,以供所述可配置参数提取功能的框架基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取,并接收所述框架提取得到的所述对话文本信息的参数;The dialog text information is provided to the framework of the configurable parameter extraction function, so that the framework of the configurable parameter extraction function extracts the parameters of the dialog text information based on the pre-configured parameter extraction function, and receives the The parameters of the dialogue text information obtained by frame extraction;
    根据所述参数与所述目标用户继续进行对话,并继续执行所述获得所述目标用户的对话数据并基于所述对话数据生成对话文本信息的步骤,直至与所述目标用户之间的对话停止。Continue the dialogue with the target user according to the parameters, and continue to execute the step of obtaining dialogue data of the target user and generating dialogue text information based on the dialogue data, until the dialogue with the target user stops .
  16. 一种存储有计算机可读指令的计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行:A computer-readable storage medium storing computer-readable instructions, which when executed by one or more processors, cause one or more processors to execute:
    在对话平台与目标用户开始对话后,执行获取文本信息步骤,所述获取文本信息步骤包括,获取由所述对话平台提供的所述目标用户的对话文本信息,所述对话文本信息由所述对话平台根据所述目标用户的对话数据生成并提供至具有可配置参数提取功能的框架;After the dialogue platform starts a dialogue with the target user, a step of obtaining text information is performed. The step of obtaining text information includes obtaining the dialogue text information of the target user provided by the dialogue platform, and the dialogue text information is determined by the dialogue The platform generates and provides to the framework with configurable parameter extraction function according to the dialogue data of the target user;
    基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取;Extract the parameters of the dialogue text information based on the pre-configured parameter extraction function;
    将提取得到的所述对话文本信息的参数发送至所述对话平台,以供所述对话平台根据所述参数与所述目标用户继续对话;Sending the extracted parameters of the dialogue text information to the dialogue platform for the dialogue platform to continue the dialogue with the target user according to the parameters;
    执行所述获取文本信息步骤,直至所述对话平台与所述目标用户之间的对话停止。The step of obtaining text information is performed until the dialogue between the dialogue platform and the target user is stopped.
  17. 根据权利要求16所述的计算机可读存储介质,其中,所述框架可配置的参数提取功能包括以下中的一种或多种:The computer-readable storage medium according to claim 16, wherein the framework configurable parameter extraction function includes one or more of the following:
    与预置的多个提取函数分别对应的不同参数项的参数提取功能;Parameter extraction function of different parameter items corresponding to multiple preset extraction functions respectively;
    与至少一个参数项对应的基于正则表达式的参数提取功能,所述正则表达式基于预设配置格式实现;A parameter extraction function based on a regular expression corresponding to at least one parameter item, the regular expression being implemented based on a preset configuration format;
    基于外部链接的参数提取功能,用于引入外部参数提取功能,所述外部参数提取功能对应至少一个参数项的参数提取功能;The parameter extraction function based on the external link is used to introduce the external parameter extraction function, and the external parameter extraction function corresponds to the parameter extraction function of at least one parameter item;
    附加词汇功能,用于提取与至少一个提取函数对应的基本提取结果的语义相似的其他参数,所述基本提取结果为利用对应提取函数提取得到的参数中相同的表现形式最多的参数。The additional vocabulary function is used to extract other parameters whose semantics are similar to the basic extraction result corresponding to at least one extraction function, and the basic extraction result is the parameter with the most identical manifestations among the parameters extracted by the corresponding extraction function.
  18. 根据权利要求16或17所述的计算机可读存储介质,其中,所述框架还包括测试验证功能,所述测试验证功能用于对基于正则表达式的参数提取功能和/或基于外部链接的参数提取功能的可靠性进行验证,以确保所述基于正则表达式的参数提取功能和/或基于外部链接的参数提取功能可用。The computer-readable storage medium according to claim 16 or 17, wherein the framework further includes a test verification function, which is used to extract parameters based on regular expressions and/or parameters based on external links. The reliability of the extraction function is verified to ensure that the parameter extraction function based on regular expressions and/or the parameter extraction function based on external links is available.
  19. 根据权利要求16或17所述的计算机可读存储介质,其中,所述框架可提取的参数的类型包括字符串型或布尔型,所述可配置参数提取功能还包括:对应于至少一个字符串型参数项或布尔型参数项的补充词汇功能,用于提取与该参数项对应且属于补充词汇的参数。The computer-readable storage medium according to claim 16 or 17, wherein the type of the parameters that can be extracted by the framework includes a string type or a Boolean type, and the configurable parameter extraction function further includes: corresponding to at least one string The supplementary vocabulary function of the type parameter item or the Boolean parameter item is used to extract the parameter corresponding to the parameter item and belonging to the supplementary vocabulary.
  20. 根据权利要求19所述的计算机可读存储介质,其中,所述框架可提取的参数的类型包括布尔型,所述可配置参数提取功能还包括:The computer-readable storage medium according to claim 19, wherein the type of the parameters that can be extracted by the framework includes a Boolean type, and the configurable parameter extraction function further includes:
    对应于至少一个布尔型参数项的意图识别功能,用于提取与该参数项的语义相似的参数。The intent recognition function corresponding to at least one Boolean parameter item is used to extract a parameter that is semantically similar to the parameter item.
  21. 根据权利要求16或17所述的计算机可读存储介质,其中,所述参数为第二参数,所述框架还可配置参数对比功能;The computer-readable storage medium according to claim 16 or 17, wherein the parameter is a second parameter, and the framework can also be configured with a parameter comparison function;
    在执行获取文本信息步骤之前,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器还执行:获取由对话平台提供的对应于目标用户的第一参数,所述第一参数由所述对话平台基于所述目标用户提交的个人信息提取得到;Before performing the step of obtaining text information, when the computer-readable instructions are executed by one or more processors, the one or more processors also execute: obtain the first parameter corresponding to the target user provided by the dialogue platform, so The first parameter is extracted by the dialogue platform based on the personal information submitted by the target user;
    在基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取之后,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器还执行:基于预先配置的参数对比功能,对相同类型的所述第一参数和所述第二参数进行对比,以对所述目标用户的第二参数的可靠性进行校验,得到与各第二参数对应的校验结果;After the parameters of the dialog text information are extracted based on the pre-configured parameter extraction function, when the computer-readable instructions are executed by one or more processors, the one or more processors also execute: The parameter comparison function of, compares the first parameter and the second parameter of the same type to verify the reliability of the second parameter of the target user, and obtain the verification corresponding to each second parameter result;
    所述将提取得到的所述对话文本信息的参数发送至所述对话平台,以供所述对话平台根据所述参数与所述目标用户继续对话包括,将提取得到的所述对话文本信息的第二参数连同对应的校验结果发送至所述对话平台,以供所述对话平台根据所述第二参数和所述校验结果与所述目标用户继续对话。The sending the extracted parameters of the dialog text information to the dialog platform for the dialog platform to continue the dialog with the target user according to the parameters includes: The two parameters are sent to the dialogue platform together with the corresponding verification result, so that the dialogue platform can continue the dialogue with the target user according to the second parameter and the verification result.
  22. 一种存储有计算机可读指令的计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行:A computer-readable storage medium storing computer-readable instructions, which when executed by one or more processors, cause one or more processors to execute:
    在与目标用户进行对话时,获得所述目标用户的对话数据,并基于所述对话数据生成对话文本信息;During a dialogue with a target user, obtain dialogue data of the target user, and generate dialogue text information based on the dialogue data;
    将所述对话文本信息提供至可配置参数提取功能的框架,以供所述可配置参数提取功能的框架基于预先配置的参数提取功能,对所述对话文本信息的参数进行提取,并接收所述框架提取得到的所述对话文本信息的参数;The dialog text information is provided to the framework of the configurable parameter extraction function, so that the framework of the configurable parameter extraction function extracts the parameters of the dialog text information based on the pre-configured parameter extraction function, and receives the The parameters of the dialogue text information obtained by frame extraction;
    根据所述参数与所述目标用户继续进行对话,并继续执行所述获得所述目标用户的对话数据并基于所述对话数据生成对话文本信息的步骤,直至与所述目标用户之间的对话停止。Continue the dialogue with the target user according to the parameters, and continue to execute the step of obtaining dialogue data of the target user and generating dialogue text information based on the dialogue data, until the dialogue with the target user stops .
PCT/CN2020/103847 2020-04-28 2020-07-23 Human-machine dialog method and apparatus, and computer device and storage medium WO2021217915A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010350529.1A CN111552779A (en) 2020-04-28 2020-04-28 Man-machine conversation method, device, medium and electronic equipment
CN202010350529.1 2020-04-28

Publications (1)

Publication Number Publication Date
WO2021217915A1 true WO2021217915A1 (en) 2021-11-04

Family

ID=71998254

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/103847 WO2021217915A1 (en) 2020-04-28 2020-07-23 Human-machine dialog method and apparatus, and computer device and storage medium

Country Status (2)

Country Link
CN (1) CN111552779A (en)
WO (1) WO2021217915A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064987A (en) * 2021-04-30 2021-07-02 中国工商银行股份有限公司 Data processing method, apparatus, electronic device, medium, and program product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1357850A (en) * 2000-11-03 2002-07-10 奥森图雷公司 Secret and safe financial trade system and method
CN103617159A (en) * 2012-12-07 2014-03-05 万继华 Method for translating natural languages into computer language, semantic analyzer and human-machine conversation system
CN105068661A (en) * 2015-09-07 2015-11-18 百度在线网络技术(北京)有限公司 Man-machine interaction method and system based on artificial intelligence
US20190089656A1 (en) * 2017-09-18 2019-03-21 Microsoft Technology Licensing, Llc Conversational log replay with voice and debugging information
CN109726239A (en) * 2018-12-25 2019-05-07 厦门市美亚柏科信息股份有限公司 The method, apparatus and readable storage medium storing program for executing that a kind of pair of forensic data is analyzed
CN110555095A (en) * 2018-05-31 2019-12-10 北京京东尚科信息技术有限公司 Man-machine conversation method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463301A (en) * 2017-06-28 2017-12-12 北京百度网讯科技有限公司 Conversational system construction method, device, equipment and computer-readable recording medium based on artificial intelligence
EP3732676A4 (en) * 2017-12-29 2021-09-22 DMAI, Inc. System and method for intelligent initiation of a man-machine dialogue based on multi-modal sensory inputs
CN109002510B (en) * 2018-06-29 2021-08-13 北京百度网讯科技有限公司 Dialogue processing method, device, equipment and medium
CN110347817B (en) * 2019-07-15 2022-03-18 网易(杭州)网络有限公司 Intelligent response method and device, storage medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1357850A (en) * 2000-11-03 2002-07-10 奥森图雷公司 Secret and safe financial trade system and method
CN103617159A (en) * 2012-12-07 2014-03-05 万继华 Method for translating natural languages into computer language, semantic analyzer and human-machine conversation system
CN105068661A (en) * 2015-09-07 2015-11-18 百度在线网络技术(北京)有限公司 Man-machine interaction method and system based on artificial intelligence
US20190089656A1 (en) * 2017-09-18 2019-03-21 Microsoft Technology Licensing, Llc Conversational log replay with voice and debugging information
CN110555095A (en) * 2018-05-31 2019-12-10 北京京东尚科信息技术有限公司 Man-machine conversation method and device
CN109726239A (en) * 2018-12-25 2019-05-07 厦门市美亚柏科信息股份有限公司 The method, apparatus and readable storage medium storing program for executing that a kind of pair of forensic data is analyzed

Also Published As

Publication number Publication date
CN111552779A (en) 2020-08-18

Similar Documents

Publication Publication Date Title
WO2021088400A1 (en) Document review method, apparatus and system, device, and storage medium
US9805717B2 (en) Voice-based input using natural language processing for interfacing with one or more devices
US11442939B2 (en) Configurable and incremental database migration framework for heterogeneous databases
US20180277097A1 (en) Method and device for extracting acoustic feature based on convolution neural network and terminal device
WO2020233034A1 (en) Page function testing method and related device
US10108698B2 (en) Common data repository for improving transactional efficiencies of user interactions with a computing device
WO2020147409A1 (en) Text classification method and apparatus, computer device, and storage medium
WO2022007438A1 (en) Emotional voice data conversion method, apparatus, computer device, and storage medium
WO2021218069A1 (en) Dynamic scenario configuration-based interactive processing method and apparatus, and computer device
EP4006909A1 (en) Method, apparatus and device for quality control and storage medium
WO2021072863A1 (en) Method and apparatus for calculating text similarity, electronic device, and computer-readable storage medium
WO2021196935A1 (en) Data checking method and apparatus, electronic device, and storage medium
US20230140997A1 (en) Method and Apparatus for Selecting Sample Corpus Used to Optimize Translation Model
WO2021051564A1 (en) Speech recognition method, apparatus, computing device and storage medium
WO2021217915A1 (en) Human-machine dialog method and apparatus, and computer device and storage medium
JP2022101478A (en) Transaction processing method of ethereum virtual machine, device, apparatus, program, and medium
CN105574031B (en) method and system for database index
WO2021184547A1 (en) Conversation robot intention corpus generation method and apparatus, medium, and electronic device
WO2021072864A1 (en) Text similarity acquisition method and apparatus, and electronic device and computer-readable storage medium
US10664663B2 (en) Natural language processing system
CA3203549A1 (en) Unified verification method, device, equipment and storage medium
CN111143461A (en) Mapping relation processing system and method and electronic equipment
US20210151046A1 (en) Function performance based on input intonation
CN107992457B (en) Information conversion method, device, terminal equipment and storage medium
CN111694931B (en) Element acquisition method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20933495

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 160223)

122 Ep: pct application non-entry in european phase

Ref document number: 20933495

Country of ref document: EP

Kind code of ref document: A1