Method, device, electronic device and storage medium for determining target corpus
By receiving the text information input by the user and associating the corresponding corpus information from the corpus of the target business platform, the problem of low matching of corpus of different business platforms in the existing technology is solved, and the efficiency of user input and experience improvement are achieved.
Patent Information
- Application Number
- CN202011401239.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-02
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-12-02
AI Technical Summary
Existing auxiliary input tools cannot provide corpus that matches the business on different business platforms, resulting in long user input time and low user experience.
By receiving the text information input by the user, the target business platform to which it belongs is determined, and the target corpus information corresponding to the text information is associated from the corresponding corpus, and is sent to the user terminal for the user to select.
It improves the matching between the target corpus and the user, saves user input time, and improves the user experience.
Smart Images

Figure CN113761844B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a method, device, electronic device, and storage medium for determining a target corpus. Background Art
[0002] Usually when a user interacts with a computer, the computer converts the text input by the user into corresponding instructions so that the computer can understand, execute and feedback the user's needs corresponding to the text.
[0003] At present, there are more and more fields on the Internet that require text input, such as customer service consultation in e-commerce customer service systems, forum replies, etc. When performing customer service consultation or forum replies, users need to spend a long time to input the corresponding text, so there is an urgent need for an input auxiliary tool to achieve efficient text input. In order to solve the above problems, corresponding auxiliary input tools have been developed to provide corresponding corpus according to the information input by the user.
[0004] In the process of implementing the present invention, the inventors found that the prior art has the following problems:
[0005] For different businesses, the corpus fed back based on the information input by the user is the same, that is, it is impossible to provide corpus corresponding to different businesses, resulting in a low match between the corpus fed back by the auxiliary input tool and the user, which in turn affects the user experience. Summary of the invention
[0006] The present invention provides a method, device, electronic device and storage medium for determining a target corpus, so as to achieve the technical effect that when inputting text on different business platforms, the target corpus corresponding to the current business platform and text can be associated, thereby improving the matching degree between the target corpus and the user.
[0007] In a first aspect, an embodiment of the present invention provides a method for determining a target corpus, the method comprising:
[0008] receiving text information currently input by a target user, and determining a target service platform to which the text information belongs;
[0009] Determining a target corpus corresponding to the target business platform, and determining target corpus information corresponding to the text information from the target corpus;
[0010] The target expected information is sent to a target terminal corresponding to the target user.
[0011] In a second aspect, an embodiment of the present invention further provides a device for determining a target corpus, the device comprising:
[0012] A target service platform determination module, used to receive text information currently input by a target user and determine the target service platform to which the text information belongs;
[0013] A target corpus information determination module, used to determine a target corpus corresponding to the target business platform, and determine target corpus information corresponding to the text information from the target corpus;
[0014] The target corpus information sending module is used to send the target expected information to the target terminal corresponding to the target user.
[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0016] one or more processors;
[0017] a storage device for storing one or more programs,
[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining the target corpus as described in any one of the embodiments of the present invention.
[0019] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute the method for determining a target corpus as described in any one of the embodiments of the present invention.
[0020] The technical solution of the embodiment of the present invention can determine the target business platform to which the text information belongs when receiving text information input by the target user, and associate the target corpus information corresponding to the text information from the corpus corresponding to the target business platform, so that the determined target corpus information matches the target user and the target business platform, and further feed back the determined target corpus to the terminal corresponding to the target user, and the user can select the text information to be input from the fed back target corpus information, which saves the user's time in inputting text, thereby improving the technical effect of user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required to describe the embodiments. Obviously, the drawings introduced are only drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 A schematic diagram of a method for determining a target corpus provided in the first embodiment of the present invention;
[0023] Figure 2 A schematic flow chart of a method for determining a target corpus provided in the second embodiment of the present invention;
[0024] Figure 3 A schematic diagram of a system architecture corresponding to a method for determining a target corpus provided in an embodiment of the present invention;
[0025] Figure 4 A schematic diagram of the structure corresponding to the access layer in the system structure provided in an embodiment of the present invention;
[0026] Figure 5 A schematic diagram of the structure corresponding to the data layer in the system structure provided in an embodiment of the present invention;
[0027] Figure 6 A schematic diagram of the structure corresponding to the data construction layer in the system structure provided in an embodiment of the present invention;
[0028] Figure 7 A schematic diagram of features included in the e-commerce consultation provided by an embodiment of the present invention;
[0029] Figure 8 A schematic diagram of the association of data feature layers in the system structure provided by an embodiment of the present invention;
[0030] Fig. 9 A schematic diagram of the structure of a device for determining a target corpus provided in Embodiment 3 of the present invention;
[0031] Fig.10 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0032] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0033] Embodiment 1
[0034] Figure 1 A flow chart of a method for determining a target corpus provided in the first embodiment of the present invention is provided. This embodiment is applicable to situations where, when inputting text on different business platforms, the text information to be input next, i.e., corpus information, can be associated with the currently input text, and the information can be fed back to the target terminal to which the currently input text belongs for user selection. The method can be executed by a device for determining the target corpus, which can be implemented in the form of software and / or hardware.
[0035] Before introducing the technical solution of this embodiment, the application scenario is briefly introduced. Users can edit corresponding text information in various business platforms. Optionally, they can edit text in the content editing control of business platform A. The business platform can obtain the edited text in real time and send the currently edited text to the system for determining the target corpus, that is, the association system, so that the system for determining the target corpus can associate the sentence that the user is about to enter based on the currently edited text, and feed back the associated sentence (corpus) to business platform A, thereby feeding back the determined corpus to the target terminal to which the target user belongs.
[0036] like Figure 1 The method of this embodiment includes:
[0037] S110: Receive text information currently input by a target user, and determine a target service platform to which the text information belongs.
[0038] Among them, if the target user edits text in the content editing control of business platform A, the user who edits the text can be used as the target user. Alternatively, if you need to register to enter a certain business platform, there may be a corresponding account and password after the registration is completed. The user needs to log in first before editing the corresponding text information in the content editing control of the business platform, and the user corresponding to the account can be used as the target user. In other words, the target user is the user corresponding to a certain login account. Since there are multiple users using one account in the actual application process, the number of target users can be multiple, but they all correspond to the account. The target user can edit the corresponding text in the content editing space of each business platform, and optionally edit the comment information in the comment editing control, edit the search content in the search content editing control, etc. In the process of the user editing the text, the business platform can obtain the text edited by the target user in the content editing control in real time, and send the obtained text to the association system, that is, the association system that determines the target corpus information. The target business platform refers to the platform to which the currently input text information belongs. For example, the user edits the corresponding text information in business platform A, and business platform A is the target business platform.
[0039] Specifically, when the target user enters text in the content editing control of a certain business platform, the business platform can obtain the text information entered by the user in real time and send the input text information to the system for determining corpus information. The system for determining corpus information receives the text information currently entered by the user sent by each business platform, and when receiving the text information, it can determine the target business platform to which the text information belongs, so as to determine the corpus corresponding to the text information from the corpus corresponding to the target business platform, that is, determine the sentence that the user is about to enter based on the text currently entered by the user.
[0040] In this embodiment, determining the target service platform to which the text information belongs includes: receiving the text information sent by the target service platform to which the target user belongs, and determining the target interface identifier for receiving the text information, and determining the target service platform to which the text information belongs based on the target interface identifier.
[0041] Specifically, after receiving the text message, the target interface for sending the text message can be determined, and the target interface identifier corresponding to the interface can be determined. Based on the target interface identifier, the target service platform to which the text message belongs can be determined.
[0042] It should be noted that each business platform can be connected to the system for determining corpus information through a corresponding interface. After the system for determining corpus information receives text information, the business platform corresponding to the text information can be determined based on the interface that receives the text information. The advantage of determining the business platform to which the text information belongs is that the corresponding target corpus can be determined from the corpus corresponding to the business platform, which improves the determination of the target corpus not only corresponding to the current business platform, but also matching the text input by the user, so as to achieve a technical effect that the determined corpus is highly consistent with the text to be input by the target user.
[0043] S120: Determine a target corpus corresponding to the target business platform, and determine target corpus information corresponding to the text information from the target corpus.
[0044] Among them, the target corpus is the corpus corresponding to the target business platform. The corpus stores multiple corpora corresponding to the current business platform. Among them, the corpus can be generated based on the behavioral data of each user. For example, the behavioral data includes: corpora generated by input behavior or trigger behavior, etc. Optionally, the input behavior generates corpus by: when inputting text on the current business platform, the text information can be processed, and the processed text information can be stored in the corpus as a corpus; the trigger behavior generates corpus by: monitoring the operations triggered by the user, and generating corresponding corpus based on the operation information. The target corpus information refers to the sentence information that is associated with the user to enter based on the text information. The number of target corpus information can be one or more.
[0045] Specifically, after the target business platform is determined, the target corpus information corresponding to the text information can be determined from the corpus corresponding to the target business platform.
[0046] In this embodiment, a target corpus corresponding to the target business platform is determined, and target corpus information corresponding to the text information is determined from the target corpus, including: determining the target corpus corresponding to the identification information based on the identification information of the target business platform; retrieving a predetermined weight value of at least one feature corresponding to the target business platform, and determining the target corpus information corresponding to the text information from the corpus corresponding to the target business platform based on the weight value and the target feature corresponding to the text information.
[0047] It should be noted that different business platforms establish data transmission with the device for determining the target corpus provided in this embodiment based on different interfaces.
[0048] Among them, the identification information can be interface identification information, and the target business platform corresponding to the interface can be determined according to the interface identification information. After determining the target business platform, the corpus corresponding to the target business platform, that is, the target corpus, can be determined from the corpus corresponding to each business platform stored in the target storage location. For each business platform, the features corresponding to different business platforms can be pre-set, and optionally, product attribute features, etc., and the weight value corresponding to each feature can also be determined. The target feature is a feature determined based on text information, and optionally, it is based on which trigger entry to enter the content editing control, such as based on triggering the pre-sale product consultation control to the content editing control. At this time, the target feature can be features such as the consultation entrance and the item category to which the product belongs.
[0049] Specifically, after determining the target corpus corresponding to the target business platform, the pre-configured features corresponding to the target business platform and the weight value corresponding to each feature can be obtained. At the same time, the target features corresponding to the text information, that is, the features associated with the text information, can be determined. According to the target features and the weight value of each feature, the target corpus information can be determined from the corpus corresponding to the target business platform.
[0050] In this embodiment, the benefit of determining the target corpus information from the corpus based on the target features and the weight values is that the adaptability between the determined target corpus and the user is improved, thereby saving the user's time in inputting text.
[0051] On the basis of the above technical solution, the target corpus information corresponding to the text information is determined from the corpus corresponding to the target business platform based on the weight value and the target feature corresponding to the text information, including: determining at least one corpus information to be selected corresponding to the text information from the corpus according to the weight value and the target feature; determining a preset number of target corpus information from the at least one corpus information to be selected according to the popularity value of each corpus information to be selected; the popularity value is used to characterize the frequency of use of corpus information.
[0052] Among them, the corpus information to be selected is the corpus information initially determined from the target corpus based on the target features and the weight values corresponding to the target features. The heat value can be understood as the frequency of use of the corpus information, or the frequency of feedback of the corpus information to the terminal. According to the heat value of each corpus information to be selected, the target corpus information can be determined from the corpus information to be selected. The preset number is pre-set, and optionally, the preset number is three. Three target corpus information can be determined from the corpus information to be selected based on the heat value.
[0053] On the basis of the above technical solution, determining at least one corpus information to be selected from the corpus includes: determining at least one corpus information to be selected corresponding to the text information according to the target feature, the weight value corresponding to each feature, and the features corresponding to each corpus information in the corpus corresponding to the target platform.
[0054] It should be noted that the corpus information stored in the corpus includes not only the corpus but also the features bound to the corpus.
[0055] Specifically, according to the target feature, the weight value corresponding to each feature, and the features bound to each corpus in the corpus, multiple corpus information to be selected corresponding to the target feature of the text information can be determined from the corpus. The advantage of such a setting is that the determined corpus information to be selected matches the target feature corresponding to the text information, thereby improving the technical effect of determining the accuracy of the target corpus information.
[0056] In this embodiment, determining at least one corpus information to be selected according to the target feature and the weight value corresponding to each feature can be: determining at least one corpus information to be determined including the target feature according to the features included in each corpus information in the corpus; determining the degree of match between each corpus information to be determined and the target user according to the features included in each corpus information to be determined and the weight value corresponding to each feature; and determining at least one corpus information to be selected corresponding to the text information from the at least one corpus information to be determined based on the degree of match.
[0057] Among them, the corpus information including the target feature can be determined from the corpus corresponding to the target business platform, and the corpus information determined at this time is used as the corpus information to be determined. According to the weight value corresponding to each feature and the feature corresponding to the corpus information to be determined, the matching degree between each corpus information to be determined and the user can be determined. The matching degree is used to characterize the matching value between the corpus information to be determined and the target feature. According to the matching degree, at least one corpus information to be selected corresponding to the text information can be determined from multiple corpus information to be determined. Optionally, a certain number of corpus information to be selected can be determined from high to low according to the matching value.
[0058] In this embodiment, the advantage of using this method to determine the corpus information to be selected is that the matching degree between the determined target corpus and the user can be improved, thereby improving the technical effect of user experience.
[0059] On the basis of the above technical solution, the method of determining a preset number of target corpus information from at least one corpus information to be selected according to the popularity value of each corpus information to be selected includes: determining the degree of fit between each corpus to be selected and the text information according to the popularity value and matching degree of each corpus information to be selected; and determining a preset number of target corpus information from the at least one corpus information to be selected based on the popularity value and matching degree of each corpus information to be selected.
[0060] The heat value is used to represent the frequency of each corpus being fed back to the terminal, and the fit is used to represent the matching degree between the selected corpus information and the target user.
[0061] Specifically, for each corpus information to be selected, the degree of fit between the corpus information to be selected and the user can be determined based on the heat value and the matching value, and a certain number of corpus information can be selected from high to low based on the degree of fit as the target corpus information. At this time, the determined corpus information matches the target user.
[0062] S130: Send the target corpus information to a target terminal corresponding to the target user.
[0063] The target terminal refers to a terminal corresponding to a target user. For example, if a user inputs text information on an application installed on terminal A, then terminal A is the target terminal corresponding to the target user.
[0064] Specifically, after the target corpus information is determined, the target corpus information can be fed back to the target terminal, and the determined target corpus information can be displayed on the target terminal. The user can select the corpus that matches it from the displayed target corpus information, thereby avoiding the user from manually entering text and achieving the technical effect of saving time.
[0065] For example, the text currently input by the user is "I want", and the system for determining the target corpus information can determine the target corpus as "I want to know how many days it will take to arrive" based on the "I want" input by the user and the target features corresponding to "I want", such as: consultation entry features, product attribute features, etc., and feed back the determined corpus information to the target terminal to which the target user belongs for the user to select. The user can trigger the corpus information to achieve the technical problem of saving input time.
[0066] The technical solution of the embodiment of the present invention can determine the target business platform to which the text information belongs when receiving text information input by the target user, and associate the target corpus information corresponding to the text information from the corpus corresponding to the target business platform, so that the determined target corpus information matches the target user and the target business platform, and further feed back the determined target corpus to the terminal corresponding to the target user, and the user can select the text information to be input from the fed back target corpus information, which saves the user's time in inputting text, thereby improving the technical effect of user experience.
[0067] On the basis of the above technical solution, a predetermined weight value of at least one feature corresponding to each target business platform is retrieved, including: determining the weight values of each feature corresponding to the target business platform based on a pre-trained weight evaluation model.
[0068] It should be noted that the weight value provided in this embodiment can be preset by the user, or can be determined based on a trained weight evaluation model.
[0069] The weight evaluation model is pre-trained and is used to determine the weight values of various features of the target business platform.
[0070] In other words, the weight values corresponding to each business platform can be determined based on deep learning and machine learning models, and the trained models can be associated. The weight of each feature cannot be configured and is not business-aware. Another way is for the user to pre-configure the weight of each feature and the distribution of the weight, so that the determined target corpus has a tendency to favor certain features.
[0071] It should be noted that the user can determine the weight corresponding to each feature according to the actual situation, and no specific limitation is made here.
[0072] In this embodiment, the benefit of determining the weight corresponding to each feature is that it can improve the technical effect of highly matching the determined target corpus with the text to be input by the user.
[0073] Embodiment 2
[0074] Figure 2A flow chart of a method for determining a target corpus provided in the second embodiment of the present invention. Based on the above embodiment, corpora corresponding to different business platforms can be created in advance, and then after receiving text information, the target corpus can be determined from the corresponding corpus. Among them, the technical terms that are the same as or corresponding to the above embodiment are not repeated here.
[0075] Before introducing the technical solution of this embodiment, it should be noted that this solution is based on a general input association system architecture, and through the componentization of system modules such as corpus construction, business rule configuration, and data management, it realizes the access of various business platforms and establishes a corpus corresponding to each business platform. When receiving text information sent by each business platform, the corresponding target corpus information can be determined from the corpus corresponding to the business platform.
[0076] Therefore, before introducing the construction of target corpora corresponding to different business platforms in this embodiment, a brief introduction is first given to the association system architecture used, that is, the system architecture for determining target corpus information. Figure 3 As shown in the figure, the system architecture includes: access layer, data layer, storage layer, construction layer, feature layer and business layer. Among them, the access layer includes data access module and business access module, each module is mainly responsible for the access of each business platform and the access of data interface; the data layer includes basic data collection and application data embedding, basic data collection is used to collect basic data, that is, user input behavior data, application data embedding is the collection of embedding data, that is, the collection of trigger behavior data; the storage layer includes analysis data storage, general query storage and high-frequency query storage. The construction layer includes text processing, risk avoidance, text screening and update rules, which are mainly used to process data into qualified text. The feature layer includes corpus feature processing module and corpus feature association module, which are used to process the customized features in the business field and bind them with specific corpus. The business layer includes association rule construction, that is, the rules for determining the target corpus, and query rule construction, which mainly configures the weight of each feature to the association result by the business itself, and determines various rules of the target corpus after inputting text.
[0077] The construction of the corpus corresponding to each business platform and the specific role of each layer in the system architecture can be seen in the following embodiments: Figure 2 As shown, the method includes:
[0078] S210: For each service platform, receive service data reported by the current service platform.
[0079] It should be noted that each business platform can establish communication with the association system. After the communication is established, each business platform can send the detected data to the association system, that is, the system that determines the target corpus, so that the association system can process the received corpus information based on the constructed layers, thereby obtaining the corpus information in the corpus corresponding to the business system, and feeding back the corresponding corpus information to the user.
[0080] The business data can be understood as data monitored by the business platform. The monitored business data can be sent to a system that determines the target corpus.
[0081] In this embodiment, receiving the service data reported by the current service platform can be implemented based on the access layer, that is, the current service platform can access the system for determining the target corpus information based on the access layer.
[0082] See also Figure 4 , the access layer includes business access, data access and access management system. Among them, business access includes business system front-end, input / output / display, business system back-end and request / processing. The business system front-end is responsible for text access, text sending, and displaying the target corpus information after determining the target corpus information, so that the information can be connected to the business system back-end. The business back-end system is responsible for the processing and transmission of business requests, and the back-end system is connected to the access management system through an interface. Data access is mainly for the collection and reporting of business data. The business system requires the access management system to include its own data interface in order to obtain the corresponding data. Data isolation means that although the data of different business systems are reported in the form of a unified interface, different business codes are required to isolate them. The accounting management system provides a front-end page for users to configure access information. The configured access information includes business interface information, data information, and rule information. Users can set the configured access information according to actual needs. The data monitoring system provides business data management functions, such as click, update, display, etc.
[0083] Among them, after the business platform is connected to the system for determining the corpus information, the corresponding application data can be received or collected based on the data layer, especially the text data of the business platform, see Figure 5 . The business platform is responsible for reporting usage data, such as the exposure of the corpus on the front end, the keywords entered by the user, the clicks on the feedback corpus, etc. The usage reporting data is mainly dynamic data related to the user's real-time interactive operations. The server corresponding to the business platform is responsible for collecting application data, such as the scenarios where the corpus has appeared, and the feature data related to the scenario. At this time, the collected data is mostly offline static data. In other words, the client is mainly responsible for the collection of basic data, and the server is mainly responsible for the collection of embedded data. Based on the data layer, the collected data can be stored in the storage layer.
[0084] S220: Based on pre-configured configuration information, process the service data into target format data.
[0085] When the business platform accesses the system for determining the corpus information, the configuration information of each business platform can be predetermined. The target format data is the data obtained after the business data is processed based on the configuration information. In order to process the business data into the target format data, the configuration information may include: the storage format of the data.
[0086] In this embodiment, the business data may be processed into target format data based on the storage layer. The storage layer may process the acquired business data, optionally, basic data and / or application embedding data into data in a preset format.
[0087] S230: Based on the data construction rules corresponding to the current business platform, the target format data is processed to obtain corpus information corresponding to the current business platform.
[0088] Among them, the data is processed based on the data construction rules corresponding to the current business platform, and can be processed based on the construction layer in the corpus information system. Since the internal logic of different business platforms is different, the content that needs to be presented on the client is also different. Therefore, the business data can be processed based on each component in the construction layer to obtain the corpus information corresponding to the current business platform.
[0089] Optionally, the construction rules include text filtering rules, and the rules are constructed based on data corresponding to the current business platform to process the target format data to obtain corpus information corresponding to the current business platform, including: filtering the text content of the target format data according to the text filtering rules to obtain corpus information corresponding to the current business platform information.
[0090] Among them, text filtering can be implemented based on text filtering components. Text filtering components are mainly for text processing requirements under business rules. Text filtering components include length filtering components. For example, when the length of business data is too long, you can use the length filtering component to filter long sentences. Sentence frequency filtering components, such as in social networks, the number of corpora is calculated in billions, and sentences with a large number of occurrences can be extracted based on the sentence frequency component. Quality filtering components, such as grammar verification of target format data to determine the quality of sentences, etc.
[0091] Specifically, the data construction rules include text screening rules, based on which business data with a sentence length less than a preset length and / or a frequency greater than a preset frequency is extracted from the received current business data, and the extracted business data is used as the corpus information corresponding to the current business platform. The advantage of this setting is that common sentences, that is, valid sentences, can be screened out from all business data, and the valid sentences can be used as sentences in the corpus.
[0092] On the basis of the above technical solution, the data construction rules also include risk avoidance rules. Based on the letter blocking avoidance rules, the corpus information corresponding to the current business platform is obtained, including: based on the risk avoidance rules, the sensitive information included in the target format data is removed to obtain the corpus information corresponding to the current business platform.
[0093] Among them, sensitive information is pre-set information, and the pre-set sensitive information can be stored in the risk avoidance component. The sensitive information stored in the risk avoidance component corresponds to different business platforms. In other words, the user can set the sensitive information in the risk avoidance component according to actual needs, so that when receiving business data, the corresponding sensitive information can be determined according to the business platform to which the business data belongs, and then the corpus information can be filtered out based on the sensitive information. Sensitive information may include at least one of the following information, such as transfer, remittance, ID number, bank card number, address and other information. The risk avoidance component also includes a negative emotion recognition model, based on which it can be determined whether the target format business data is a sentence with negative emotions, and if it is a sentence with negative emotions, it can be deleted.
[0094] Specifically, based on the sensitive information set stored in the risk avoidance component, the target format data can be processed, that is, if the target format data includes sensitive information, the target format data can be deleted, and the target format data that does not include sensitive information can be used as the corpus information of the current business platform.
[0095] The advantage of using the above data construction rules to determine the corpus information of the current business platform is that the target format data that meets the preset conditions can be screened out from all business data, thereby improving the accuracy and convenience of determining the target corpus information.
[0096] It should also be noted that the data construction rules also include an update rule type component, in which the update frequency corresponding to each business platform can be set, optionally, once a week, etc. The corpus in the corpus corresponding to each business platform can be updated based on the update frequency.
[0097] In order to clearly understand the data construction rules, you can combine Figure 6to understand. The data construction rules include text processing components, risk avoidance components, text filtering components and update rule components. Text processing is mainly used for symbol processing, special text conversion and text cutting of target format data. The risk avoidance component is used to perform business compliance detection, sensitive information removal and negative emotion recognition on the target format data according to preset sensitive information. Based on the risk avoidance component, some target format data can be filtered out. The text filtering component is used to perform length filtering, sentence frequency filtering and quality filtering on the target format data. The update rule component includes update rules, based on which the corpus information in the corpus corresponding to the business platform can be updated.
[0098] S240: Obtain pre-set features corresponding to the current business platform, determine the features corresponding to each piece of corpus information, and bind the corpus information and the features and store them in a target storage location.
[0099] Among them, the user can pre-set the features corresponding to each business platform. After determining the target format data, the features corresponding to the target format data can be determined. Each corpus information is bound to the corresponding feature, and after the binding is completed, the corpus and the feature can be stored in the target storage location.
[0100] It should be noted that the corresponding features are different for different business platforms. For example, in an e-commerce platform, the features corresponding to the target format data may include product type, merchant features, consultation entry features, after-sales consultation entry features, etc. Figure 7 Therefore, the features corresponding to different corpora can be determined, and the corpora and features can be bound so as to quickly filter out corpus information including corresponding features from the corpus, which can improve the convenience and efficiency of determining corpus information.
[0101] In this embodiment, the feature corresponding to each piece of corpus information is determined mainly based on the feature layer. Based on the feature layer, the target format data can be bound to the feature. Figure 8 , the feature layer can determine the features of the target format data and associate the features with the target format data, that is, the business data is processed to form a compliant corpus, which is bound to each feature one by one to generate an associative corpus with search features. Optionally, after the text usage data and text attribute data are processed by text features, the associative features corresponding to the text are determined, and the associative corpus is obtained based on the binding of the corpus corresponding to the text data and the associative features.
[0102] In this embodiment, binding and storing the corpus information and features to a target location may include: determining keywords of the corpus information, binding the keywords, the corpus information and corresponding features, and storing them to a target storage location.
[0103] Specifically, in order to improve the search efficiency, keywords of the corpus information can be extracted, and the feature words, corpus information and corresponding features can be bound so as to quickly determine the corresponding target corpus information according to the features, thereby improving the efficiency of determining the target corpus.
[0104] S250: Receive text information currently input by the target user, and determine the target service platform to which the text information belongs.
[0105] Specifically, when a user inputs text on a business platform, the text information may be sent to a system for determining corpus information. The system may receive the text information and determine a target business platform corresponding to the text information.
[0106] S260: Determine a target corpus corresponding to the target business platform, and determine target corpus information corresponding to the text information from the target corpus.
[0107] Specifically, after determining the target business platform, the target corpus corresponding to the target business platform may be determined, and the target corpus information corresponding to the text information may be determined from the target corpus according to the target features corresponding to the text information.
[0108] S270: Send the target corpus information to a target terminal corresponding to the target user.
[0109] Specifically, after the target corpus information is determined, the target corpus information may be sent to a terminal corresponding to a target user for selection by the user.
[0110] Exemplarily, three target corpus information matching the text information may be determined, and the target corpus information may be sent to a target terminal corresponding to a target user, and the user may trigger the corpus displayed on the target terminal.
[0111] The technical solution of the embodiment of the present invention is based on the construction of an associative system for determining corpora, can access various business platforms, and receive business data of various business platforms. By processing the business data, the corpus information in the corpus corresponding to each business platform can be determined. Therefore, when determining the target corpus based on the text currently input by the user, the target corpus can be determined from the corresponding corpus, which improves the matching degree between the determined target corpus and the target user and the target business platform, thereby improving the technical effect of user experience.
[0112] In the technical solution of this application, a general componentized system framework for input association function is proposed, which can be used in various business systems with efficient text input requirements. The framework implements a fast and easy input association access method, and can implement full-process, configurable association services for different business applications. By abstracting a six-layer system framework structure and implementing multiple components at each layer, the business can customize the combination to ultimately meet business needs. By binding business features to text content and coordinating multiple query methods, accurate and efficient association functions are achieved.
[0113] Embodiment 3
[0114] Fig. 9 This is a schematic diagram of the structure of a device for determining a target corpus provided in Embodiment 3 of the present invention. The device includes: a target business platform determining module 910 , a target corpus information determining module 920 , and a target corpus information sending module 930 .
[0115] Among them, the target business platform determination module 910 is used to receive the text information currently input by the target user and determine the target business platform to which the text information belongs; the target corpus information determination module 920 is used to determine the target corpus corresponding to the target business platform, and determine the target corpus information corresponding to the text information from the target corpus; the target corpus information sending module 930 is used to send the target expected information to the target terminal corresponding to the target user.
[0116] On the basis of the above technical solutions, the target corpus information determination module is further used to: determine the target corpus corresponding to the identification information according to the identification information of the target business platform;
[0117] Retrieve a predetermined weight value of at least one feature corresponding to the target business platform, and determine target corpus information corresponding to the text information from a corpus corresponding to the target business platform based on the weight value and the target feature corresponding to the text information.
[0118] On the basis of the above technical solutions, the target corpus information determination module further includes:
[0119] a corpus information to be selected determining unit, configured to determine at least one corpus information to be selected corresponding to the text information from the corpus according to the weight value and the target feature;
[0120] The target corpus information determining unit determines a preset number of target corpus information from the at least one corpus information to be selected according to the heat value of each corpus information to be selected; the heat value is used to represent the usage frequency of the corpus information.
[0121] Based on the above technical solutions, the target business platform determination module is also used to: receive text information sent by the target business platform to which the target user belongs, and determine the target interface identifier for receiving the text information, and determine the target business platform to which the text information belongs based on the target interface identifier.
[0122] On the basis of the above-mentioned technical solutions, the unit for determining the corpus information to be selected is also used to: determine at least one corpus information to be selected corresponding to the text information according to the target feature, the weight value corresponding to each feature, and the features corresponding to each corpus information in the corpus corresponding to the target platform.
[0123] On the basis of the above-mentioned technical solutions, the unit for determining the corpus information to be selected is further used to determine at least one corpus information to be determined including the target feature according to the features included in each corpus information in the corpus; determine the matching degree between each corpus information to be determined and the target user according to the features included in each corpus information to be determined and the weight value corresponding to each feature; and determine at least one corpus information to be selected corresponding to the text information from the at least one corpus information to be determined based on the matching degree.
[0124] On the basis of the above-mentioned technical solutions, the unit for determining the corpus information to be selected is also used to determine the degree of fit between each corpus to be selected and the text information according to the popularity value and matching degree of each corpus information to be selected; based on the degree of fit, determine a preset number of target corpus information from the at least one corpus information to be selected.
[0125] On the basis of the above-mentioned technical solutions, the unit for determining the corpus information to be selected is further used to determine the weight value of each feature corresponding to the target business platform based on a pre-trained weight evaluation model.
[0126] On the basis of the above-mentioned technical solutions, the device also includes: a corpus information library establishment module, which is used to establish corpus information in the corpus corresponding to each business platform, so as to determine the target business platform to which the text information belongs when receiving text information, and determine the target corpus information corresponding to the text information from the corpus corresponding to the target business platform.
[0127] On the basis of the above-mentioned technical solutions, the corpus information database establishment module is also used to receive the business data reported by the current business platform for each business platform; the business data includes basic data and embedded point data; based on pre-configured configuration information, the business data is processed into target format data; based on the data construction rules corresponding to the current business platform, the target format data is processed to obtain the corpus information corresponding to the current business platform; the pre-set features corresponding to the current business platform are obtained, the features corresponding to each piece of corpus information are determined, and the corpus information and features are bound and stored in the target storage location, so as to obtain the target corpus information from the target storage location when the text information is received.
[0128] Based on the above technical solutions, the data construction rules include text screening rules, and the corpus information library establishment module is also used to screen the text content of the target format data according to the text screening rules to obtain the corpus information corresponding to the current business platform information.
[0129] On the basis of the above technical solutions, the text screening rule includes a symbol screening rule and a text length / frequency screening rule, and the corpus information base establishment module is further used to remove the preset symbols included in the target format data according to the symbol screening rule to obtain the first corpus information;
[0130] According to the text length / frequency screening rule, the content that does not meet the text length / frequency in the first corpus information is removed to obtain the corpus information corresponding to the current business platform.
[0131] On the basis of the above-mentioned technical solutions, the data construction rules include risk avoidance rules, and the corpus information database establishment module is also used to remove the sensitive information included in the target format data based on the risk avoidance rules to obtain the corpus information corresponding to the current business platform.
[0132] Based on the above technical solutions, the corpus information database establishment module is also used to determine the features included in each corpus information according to the pre-configured features corresponding to the current business platform, and store the corpus information and the corresponding features in the target storage location.
[0133] On the basis of the above technical solutions, the corpus information database establishment module is also used to determine the keywords of the corpus information, bind the keywords, the corpus information and the corresponding features, and store them in the target storage location.
[0134] The device for determining the target corpus provided in the embodiment of the present invention can execute the method for determining the target corpus provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0135] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.
[0136] Embodiment 4
[0137] Fig.10 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Fig.10 A block diagram of an exemplary device 100 suitable for implementing exemplary embodiments of the present invention is shown. Fig.10 The device 100 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0138] like Fig.10 As shown, the device 100 is in the form of a general-purpose computing device. The components of the device 100 may include, but are not limited to: one or more processors or processing units 1001, a system memory 1002, and a bus 1003 connecting different system components (including the system memory 1002 and the processing unit 1001).
[0139] Bus 1003 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0140] The device 100 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the device 100, including volatile and non-volatile media, removable and non-removable media.
[0141] System memory 1002 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 1004 and / or cache memory 1005. Device 100 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 1006 may be used to read and write non-removable, non-volatile magnetic media ( Fig.10 not shown, usually called a "hard drive"). Although Fig.10Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 1003 via one or more data medium interfaces. The memory 1002 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the embodiments of the present invention.
[0142] A program / utility 1008 having a set (at least one) of program modules 1007 may be stored, for example, in the memory 1002, such program modules 1007 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 1007 generally perform the functions and / or methods of the embodiments described herein.
[0143] The device 100 may also communicate with one or more external devices 1009 (e.g., keyboards, pointing devices, displays 1010, etc.), may communicate with one or more devices that enable a user to interact with the device 100, and / or may communicate with any device that enables the device 100 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1011. Furthermore, the device 100 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 1012. As shown, the network adapter 1012 communicates with the other modules of the device 100 via the bus 1003. It should be understood that although Fig.10 Not shown, other hardware and / or software modules may be used in conjunction with device 100, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0144] The processing unit 1001 executes various functional applications and data processing by running the programs stored in the system memory 1002, for example, implementing the method for determining the target corpus provided in the embodiment of the present invention.
[0145] Embodiment 5
[0146] Embodiment 5 of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute a method for determining a target corpus when executed by a computer processor.
[0147] The method includes:
[0148] receiving text information currently input by a target user, and determining a target service platform to which the text information belongs;
[0149] Determining a target corpus corresponding to the target business platform, and determining target corpus information corresponding to the text information from the target corpus;
[0150] The target corpus information is sent to a target terminal corresponding to the target user.
[0151] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0152] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0153] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0154] Computer program code for performing the operation of embodiments of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0155] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for determining a target corpus, characterized in that: include: receiving text information currently input by a target user, and determining a target service platform to which the text information belongs; Determining a target corpus corresponding to the target business platform, and determining target corpus information corresponding to the text information from the target corpus, including: determining the target corpus corresponding to the identification information according to the identification information of the target business platform; retrieving a weight value of at least one feature corresponding to the target business platform, and determining the target corpus information corresponding to the text information from the corpus corresponding to the target business platform based on the weight value and the target feature corresponding to the text information; The target corpus information is sent to a target terminal corresponding to the target user.
2. The method according to claim 1, characterized in that The determining, based on the weight value and the target feature corresponding to the text information, from a corpus corresponding to the target business platform, target corpus information corresponding to the text information includes: Determining at least one corpus information to be selected corresponding to the text information from the corpus according to the weight value and the target feature; According to the popularity value of each corpus information to be selected, a preset number of target corpus information is determined from the at least one corpus information to be selected; the popularity value is used to represent the usage frequency of the corpus information.
3. The method according to claim 1, characterized in that The receiving of the text information currently input by the target user and determining the target service platform to which the text information belongs includes: A text message sent by a target service platform to which a target user belongs is received, and a target interface identifier for receiving the text message is determined, and a target service platform to which the text message belongs is determined based on the target interface identifier.
4. The method according to claim 2, characterized in that: The step of determining at least one corpus information to be selected corresponding to the text information from the corpus according to the weight value and the target feature comprises: At least one corpus information to be selected corresponding to the text information is determined according to the target feature, the weight value corresponding to each feature, and the features corresponding to each corpus information in the corpus corresponding to the target business platform.
5. The method according to claim 4, characterized in that The determining, according to the target feature, the weight value corresponding to each feature, and the feature corresponding to each corpus information in the corpus corresponding to the target business platform, at least one corpus information to be selected corresponding to the text information includes: Determine, according to the features included in each corpus information in the corpus, at least one corpus information to be determined including the target feature; Determine the matching degree between each piece of corpus information to be determined and the target user according to the features included in each piece of corpus information to be determined and the weight value corresponding to each feature; Based on the matching degree, at least one corpus information to be selected corresponding to the text information is determined from the at least one corpus information to be determined.
6. The method according to claim 5, characterized in that The step of determining a preset number of target corpus information from at least one corpus information to be selected according to the heat value of each corpus information to be selected includes: Determine the degree of fit between each corpus to be selected and the text information according to the heat value and the matching degree of each corpus to be selected; Based on the degree of fit, a preset number of target corpus information is determined from the at least one corpus information to be selected.
7. The method according to claim 1, characterized in that The retrieving a predetermined weight value of at least one feature corresponding to the target service platform includes: Based on a pre-trained weight evaluation model, the weight values of various features corresponding to the target business platform are determined.
8. The method according to claim 1, characterized in that: Also includes: The corpus information in the corpus corresponding to each business platform is established to determine the target business platform to which the text information belongs when the text information is received, and to determine the target corpus information corresponding to the text information from the corpus corresponding to the target business platform.
9. The method according to claim 8, characterized in that The establishing of corpus information in the corpus corresponding to each business platform includes: For each business platform, receive the business data reported by the current business platform; the business data includes basic data and embedded point data; Based on pre-configured configuration information, processing the service data into target format data; Based on the data construction rules corresponding to the current business platform, the target format data is processed to obtain corpus information corresponding to the current business platform; Obtain the pre-set features corresponding to the current business platform, determine the features corresponding to each piece of corpus information, and bind the corpus information and the features and store them in a target storage location, so as to obtain the target corpus information from the target storage location when receiving text information.
10. The method according to claim 9, characterized in that The data construction rule includes a text screening rule, and the target format data is processed based on the data construction rule corresponding to the current business platform to obtain corpus information corresponding to the current business platform, including: The target format data is subjected to text content screening according to the text screening rule to obtain corpus information corresponding to the current business platform.
11. The method according to claim 10, characterized in that The text screening rules include symbol screening rules and text length / frequency screening rules, and the target format data is screened for text content according to the text screening rules to obtain corpus information corresponding to the current business platform information, including: According to the symbol screening rule, the preset symbols included in the target format data are removed to obtain the first corpus information; According to the text length / frequency screening rule, the content that does not meet the text length / frequency in the first corpus information is removed to obtain the corpus information corresponding to the current business platform.
12. The method according to claim 9, characterized in that The data construction rules include risk avoidance rules. The target format data is processed based on the data construction rules corresponding to the current business platform to obtain corpus information corresponding to the current business platform, including: Based on the risk avoidance rules, target format data that does not include sensitive information is determined, and corpus information corresponding to the current business platform is obtained.
13. The method according to claim 9, characterized in that The obtaining of the preset features corresponding to the current business platform, determining the features corresponding to each piece of corpus information, and binding the corpus information and the features to store in a target storage location includes: According to the pre-configured features corresponding to the current business platform, the features included in each piece of corpus information are determined, and the corpus information and the corresponding features are stored in a target storage location in correspondence.
14. The method according to claim 9, characterized in that The binding and storing the corpus information and features to the target storage location includes: Determine the keywords of the corpus information, bind the keywords, the corpus information and corresponding features, and store them in a target storage location.
15. A device for determining a target corpus, characterized in that: include: A target service platform determination module, used to receive text information currently input by a target user and determine the target service platform to which the text information belongs; A target corpus information determination module, used to determine a target corpus corresponding to the target business platform, and determine target corpus information corresponding to the text information from the target corpus; A target corpus information sending module, used to send the target corpus information to a target terminal corresponding to the target user; The target corpus information determination module is further used to determine the target corpus corresponding to the identification information according to the identification information of the target business platform; Retrieve a predetermined weight value of at least one feature corresponding to the target business platform, and determine target corpus information corresponding to the text information from a corpus corresponding to the target business platform based on the weight value and the target feature corresponding to the text information.
16. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining the target corpus as described in any one of claims 1-14.
17. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to perform the method for determining a target corpus according to any one of claims 1 to 14 when executed by a computer processor.
Citation Information
Patent Citations
Phrase input method and device
CN105912138A
Quick-term input method and system suitable for multi-application switching
CN109116999A
