CN117291164A - Method, device, equipment and storage medium for creating prompt component in page - Google Patents

Method, device, equipment and storage medium for creating prompt component in page Download PDF

Info

Publication number
CN117291164A
CN117291164A CN202311268755.5A CN202311268755A CN117291164A CN 117291164 A CN117291164 A CN 117291164A CN 202311268755 A CN202311268755 A CN 202311268755A CN 117291164 A CN117291164 A CN 117291164A
Authority
CN
China
Prior art keywords
prompt
text
component
target
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311268755.5A
Other languages
Chinese (zh)
Inventor
姚梦玥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202311268755.5A priority Critical patent/CN117291164A/en
Publication of CN117291164A publication Critical patent/CN117291164A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/453Help systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3322Query formulation using system suggestions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Development Economics (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Accounting & Taxation (AREA)
  • General Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a method, a device, equipment and a storage medium for creating a prompt component in a page. Relates to the technical field of computers. The method comprises the following steps: receiving first description information which is input by a user and is used for representing an application scene of a prompt component, respectively determining the similarity of the first description information and second description information of each history record, determining a target prompt mode corresponding to the history record with the maximum similarity, wherein the target prompt mode comprises a fixed mode text and an editable area, acquiring a custom mode text which is input by the user in the editable area, generating the target prompt mode based on the fixed mode text and the custom mode text, and displaying the target prompt mode in a text area of a component box in a page to be designed so as to create the prompt component, and flexibly creating a composite prompt component in the page based on the prompt mode template and the component box, thereby meeting the requirement of a complex service scene and ensuring the expression normative of the prompt mode in different pages.

Description

Method, device, equipment and storage medium for creating prompt component in page
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for creating a prompt component in a page.
Background
In the use process of the product, the correctness, the guidance, the conciseness and the consistency of the prompt information play an important role in user experience, and particularly for the financial industry, the text prompt in the operation process is a necessary means for guiding customers due to the wide service range and the complex type.
In the prior art, the prompt component is usually a basic component and consists of default text and graphics, and is mainly focused on the design field and lacks of business characteristics. Because the businesses are complex and various, simple basic components cannot effectively meet the requirements of financial business scene product design; in addition, in the product design stage, when a certain flow is interrupted and the text of the prompt message is required, the text expression is edited by a product manager or a designer, so that the prompt message cannot be ensured to meet the standardization and correctness of the expression, and the text content cannot be quickly multiplexed. Therefore, the existing prompt message component generation mode needs to be optimized.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for creating a prompt component in a page, which aim to solve one of the technical problems in the related technology at least to a certain extent.
In a first aspect, the present application provides a method for creating a hint component in a page, including: receiving first description information which is input by a user and is used for representing an application scene of a prompt component; respectively determining the similarity of the first descriptive information and the second descriptive information of each history record, and determining a target prompt voice template corresponding to the history record with the maximum similarity, wherein the target prompt voice template comprises a fixed voice text and an editable area; acquiring a custom speaking text input by a user in an editable area, and generating a target prompt speaking based on the fixed speaking text and the custom speaking text; and displaying the target prompt dialog in a text area of the component box in the page to be designed to create a prompt component.
In a second aspect, the present application provides an apparatus for creating a prompt component in a page, including: the receiving module is used for receiving first description information which is input by a user and is used for representing the application scene of the prompt component; the determining module is used for determining the similarity between the first descriptive information and the second descriptive information of each history record respectively and determining a target prompt voice template corresponding to the history record with the maximum similarity, wherein the target prompt voice template comprises a fixed voice text and an editable area; the generation module is used for acquiring a custom-made voice text input by a user in the editable area and generating a target prompt voice based on the fixed voice text and the custom-made voice text; and the creation module is used for displaying the target prompt voice in the text area of the component box in the page to be designed so as to create the prompt component.
In a third aspect, the present application provides an electronic device, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement the in-page hint component creation method.
In a fourth aspect, the present application provides a computer-readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform an in-page hint component creation method.
In a fifth aspect, the present application provides a computer program product comprising a computer program for execution by a processor of a method of in-page hint component creation.
According to the method, the device, the equipment and the storage medium for creating the prompt component in the page, through receiving the first description information which is input by a user and is used for representing an application scene of the prompt component, the similarity of the first description information and the second description information of each history record is respectively determined, the target prompt mode corresponding to the history record with the maximum similarity is determined, the custom mode text which is input by the user in an editable area is obtained, the target prompt mode is generated based on the fixed mode text and the custom mode text, the target prompt mode is displayed in a text area of a component frame in the page to be designed, so that the prompt component is created, the composite prompt component can be flexibly created in the page based on the prompt mode template and the component frame, and therefore the requirement of a complex service scene can be met.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flow diagram illustrating a method of creating a hint component in a page according to a first embodiment of the present application;
FIG. 2 is a schematic diagram of a prompt-to-talk template, shown in accordance with an embodiment of the present application;
FIG. 3 is a schematic diagram of a page to be designed and a hint component according to embodiments of the present application;
FIG. 4 is a flow diagram illustrating a method of creating a hint component in a page according to a second embodiment of the present application;
FIG. 5 is a block diagram of an in-page hint component creation apparatus according to the present application;
fig. 6 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application. On the contrary, the embodiments of the present application include all alternatives, modifications, and equivalents as may be included within the spirit and scope of the appended claims.
It should be noted that, information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, presented data, etc.), and signals referred to in this application are all authorized by the user or are fully authorized by the parties, and the collection, use, and processing of relevant data is required to comply with relevant laws and regulations and standards of relevant countries and regions.
It should be noted that, the execution body of the method for creating an in-page prompt component in this embodiment may create a device for an in-page prompt component, where the device may be implemented in software and/or hardware, and the device may be configured in an electronic device, and the electronic device may include, but is not limited to, a terminal, a server, and so on.
Fig. 1 is a flow chart of a method for creating a hint component in a page according to a first embodiment of the present application, as shown in fig. 1, where the method includes:
s101: and receiving first descriptive information which is input by a user and is used for representing the application scene of the prompt component.
Wherein a user refers to a user who designs a reminder component in a page of a terminal device, such as a product manager, designer, developer, and other personnel having design requirements, and the method of creating a reminder component in a page of an embodiment of the present disclosure may be performed by the terminal device, for example.
While the page requiring the design prompting component is referred to as a page to be designed, which may be a page in any possible business system, such as a payment page, a shopping page, a security authentication page, and any other possible page in a financial business system, without limitation.
In the process of designing the prompt component, the user of this embodiment may first input a piece of description information, which is called first description information, for characterizing an application scenario of the prompt component to be designed, which may be in the form of text.
For example, if the prompting component designed by the user is used for prompting the consumer that the amount of the commodity purchased cannot exceed the maximum limit, the first description information (text) is input, for example, "limit the maximum transaction amount on the commodity transaction page". In this case, the terminal device may receive the first description information.
S102: and respectively determining the similarity between the first descriptive information and the second descriptive information of each history record, and determining a target prompt voice template corresponding to the history record with the maximum similarity.
The terminal device stores the history record of each time the user creates the prompt component, each history record corresponds to a piece of description information, the description information is called second description information, and the specific form of the second description information is the same as that of the first description information, and is not repeated here.
While the term "means a term displayed in a term" means a term "for prompting the user, for example, a term" for prompting the user "such as" your payment amount exceeds a maximum limit, and "please decrease the payment amount" is provided in the payment page. The specific content of the prompt voice can be flexibly set according to the actual application scene, and the method is not limited.
In the embodiment of the disclosure, multiple standard voice prompting templates can be created in advance for different service systems, and each voice prompting template is composed of a standard voice region and a customized editable region, wherein the standard voice region is configured with standard fixed voice text, the fixed voice text does not support user modification, and the editable region supports user editing of the customized voice text.
Fig. 2 is a schematic diagram of a prompt ticket template according to an embodiment of the present application, as shown in fig. 2, where each row represents one prompt ticket template, multiple prompt ticket templates may be preset in this embodiment, for example, the prompt ticket template is "you [ purchase amount/purchase number/participation number/payment amount ] exceeds a maximum limit, please [ decrease purchase amount/decrease payment amount/click view details ]," you "," exceed a maximum limit, please you "is a fixed ticket text, and [ is an editable area, and a user may input a customized ticket text according to an application scenario.
The embodiment supports the addition, modification and deletion of the voice prompting template, supports the single new addition or local document batch import, and divides the fixed standard voice region and the editable region when the voice prompting template is added.
In some embodiments, the prompt-to-talk templates may also be classified, where classification may be from different dimensions.
In a specific example, the financial field may relate to a business scenario such as a query business, a transaction business, an investment financial business, a general business, etc., in which case, the embodiment may use the business scenario as a classification standard, and divide the prompt ticket operation template into business scenario categories such as a query category, a transaction category, an investment financial category, a general category, etc. As shown in fig. 2, the prompt ticket operation template "you cannot submit an application at non-purchase transaction time," "please transact at transaction time" belongs to the investment financial class template in the business scenario class dimension; the prompt ticket template "fail to handle you temporarily [ please try again later" belongs to generic class templates in the traffic scenario class dimension ".
For another example, the present embodiment may also use the prompting property class as a classification standard, and divide the prompting speech template into a password and authentication class, a quantity and quota class, a rights control class, an information abuse class, a content illegality class, a repeated transaction class, a time and deadline class, a risk control class, a business logic class, and any other possible prompting property class, which is not limited. As shown in fig. 2, the prompt ticket template "you cannot submit an application at non-purchase transaction time," "please transact at transaction time" belongs to the time and deadline class in the prompt property class dimension. It will be appreciated that there may be one or more prompt-to-talk templates for each classification category, without limitation.
In other embodiments, in order to avoid that the text input by the user in the editable area exceeds the range of the prompt component to cause the prompt component to generate messy codes, the embodiment may further limit the maximum character amount of the text input by the user in the editable area, namely: a preset character quantity is configured for the editable area, wherein the character quantity is, for example, the number of characters, and if the character quantity of the input text exceeds the preset character quantity, the input is prompted to be unable to continue. As shown in fig. 2, for example, the prompt ticket template "you cannot submit an application at non-purchase transaction time," please transact at transaction time ", the preset number of characters configured in the editable area is 20 characters, that is, if the user inputs 21 characters, how prompts cannot be continuously input.
In other embodiments, each prompt-to-talk template may also generate a unique number (ID), name, etc. for identifying the distinction.
It will be appreciated that each history record corresponds to a prompt-to-talk template.
In the embodiment of the disclosure, the terminal equipment can recommend the required prompting voice template to the user, wherein the prompting voice template is called a target prompting voice template.
Specifically, the present embodiment may calculate the similarity between the first description information and the second description information corresponding to each history record, where the similarity may be determined by any possible algorithm, for example, calculate the text similarity (for example, cosine distance) between the first description information and the second description information, which is not limited.
In some embodiments, in determining the similarity between the first description information and the second description information, the first description information may be subjected to a word segmentation operation, and a keyword is determined according to the word segmentation result, where the keyword is called a first keyword, and the first keyword may be one or more, which is not limited.
For example, the first description information "limit the maximum transaction amount on the commodity transaction page" includes a first keyword such as "commodity transaction", "maximum transaction amount".
Similarly, the embodiment may determine a keyword included in the second description information of each history record, where the keyword is referred to as a second keyword, for example, the second description information of the first history record is "limit amount for goods transaction", and the second keyword included in the second description information of the first history record is "limit amount for goods transaction", for example, "goods transaction", "limit amount"; the second descriptive information of the second history record is "password authentication is needed in the commodity buying and selling process", and the second keyword is included in the second descriptive information, for example, "commodity buying and selling", "password authentication".
Further, a category label to which each first keyword belongs is determined, and the category label comprises a prompt property category and/or a service scene category.
For example, the category label to which the first keyword "commodity transaction" belongs is a transaction category in the business scenario category, and the category label to which the first keyword "maximum transaction amount" belongs is a quantity and limit category in the prompt property category.
Similarly, the embodiment may determine the category label to which each second keyword in each second description information belongs, for example, "commodity purchase and sale", "commodity transaction" belongs to a transaction class, and "password authentication" is a permission control class.
Further, the present embodiment classifies the first keyword and the second keyword of the same category label into one group.
For example, in the first description information and the second description information of the first history record, the first keyword "commodity transaction" and the second keyword "commodity transaction" belong to the transaction class, and then can be regarded as a group, and the first keyword "maximum transaction amount" and the second keyword "limit amount" belong to the quantity and limit class, and then can be regarded as a group; in the first description information and the second description information of the second historical record, only the first keyword commodity transaction and the second keyword commodity transaction belong to the same class of transaction, and are divided into a group.
Also, the present embodiment may calculate the similarity scores of the first keyword and the second keyword in each group. For example, for a first history, a text similarity of a first keyword "maximum transaction amount" to a second keyword "limit amount" is calculated to obtain a similarity score (e.g., 50%), and a similarity score (e.g., 30%) between the first keyword "merchandise transaction" and the second keyword "merchandise transaction" is calculated; for the second history, only the similarity scores (e.g., 30%) of the first keyword "commodity transaction" and the second keyword "commodity purchase" are calculated.
Further, the similarity scores of the first descriptive information and each group of the second descriptive information of each history record are accumulated to obtain the similarity between the first descriptive information and the second descriptive information, for example, the similarity between the first descriptive information and the second descriptive information of the first history record is 50% +30% and the similarity between the first descriptive information and the second descriptive information of the second history record is 30%.
Further, in this embodiment, each history record may be ranked based on the similarity, and the prompting speech template corresponding to the history record with the greatest similarity is determined as the target prompting speech template, that is, when the similarity between the second description information of the history record and the first description information input at this time is the greatest, it indicates that the prompting speech template of the search is related, and then the prompting speech template corresponding to the history record may be directly used as the target prompting speech template of the search.
In order to ensure accuracy of the recommended candidate prompt voice template, the embodiment may further compare the maximum similarity with a set threshold (for example, 80%), and when the maximum similarity is greater than the set threshold, use the prompt voice template corresponding to the history of the maximum similarity as the target prompt voice template.
In practical application, the terminal device may also receive the search condition input by the user, and determine the prompting voice template based on the search condition, where the prompting voice template is called a candidate prompting voice template, and the number of the candidate prompting voice templates may be one or more, which is not limited.
In some embodiments, the retrieval condition input by the user is, for example, the number of the prompting voice template, and the terminal device may determine the prompting voice template corresponding to the number as the candidate prompting voice template.
In other embodiments, the user-entered search criteria are, for example, category criteria, such as the prompt property category (e.g., quantity and quota category) described above, or the business scenario category (e.g., investment financing category), or include the prompt property category and business scenario category, without limitation. In this case, the terminal device may determine one or more candidate alert session templates corresponding to the category condition.
Other embodiments also support sorting the search target prompt-to-talk templates according to the prompt message creation time and the name first word pinyin.
Further, the user may perform a selection operation on the retrieved target alert session template, as shown in fig. 2, the selection operation may be, for example, triggering a "use" key, in which case the terminal device may determine the target alert session template in response to the selection operation.
S103: and acquiring a custom phone text input by a user in the editable area, and generating a target prompt phone based on the fixed phone text and the custom phone text.
After the target prompting voice template is determined, the user can move the cursor to the editable area to edit and input the customized voice text, and the customized voice text can be flexibly determined according to the actual application scene, so that the method is not limited. In this case, the terminal device may obtain the custom text.
For example, on a property non-transaction time purchase page, a target prompt ticket template such as, for example, "you cannot submit a purchase request at non-purchase transaction time, [ please transact during purchase transaction time", a custom ticket text entered by the user in the editable area [ e.g. "purchase transaction time is 9:00-15:00").
In some embodiments, after the user enters the custom text in the editable area, the terminal device may verify the custom text entered by the user.
In some embodiments, normalization of text content of the custom text may be checked, for example, checking content such as wrongly written characters, forbidden words, etc., and when the input text contains wrongly written characters, after clicking "use", the terminal device automatically checks the text content and provides an alert for content that does not meet the specification.
In other embodiments, the text formats such as numbers, characters, punctuation marks and the like of the custom-made speech text can be checked, for example, when Chinese characters are arranged before and after the quantity information, space is not added, full-angle marks are used for brackets instead of half-angle marks and the like, and after 'use' is clicked, warning and reminding are carried out on the content which does not meet the specification.
The terminal device may use an existing verification method to verify the normalization of the text content and the text format, for example, which is not limited.
In other embodiments, the terminal device may further calculate a character amount of the custom text that is accumulatively input by the user in the editable area, and prompt that the user cannot continue to input if the character amount is greater than a preset character amount (i.e., a maximum character amount).
In the case that the custom speech text entered by the user passes the verification, a target prompt speech is generated based on the fixed speech text and the custom speech text. Thus, the embodiment of the disclosure can ensure the normalization of the custom talk text input by the user.
Further, the terminal device generates a target prompt ticket based on the fixed ticket text and the custom ticket text, that is, the fixed ticket text and the custom ticket text constitute the target prompt ticket, for example, "you cannot submit a request for purchase at a non-purchase-application transaction time, the purchase-application transaction time is 9:00-15:00, and please transact at the purchase-application transaction time".
S104: and displaying the target prompt ticket in a text area of the component box in the page to be designed to create a prompt component.
As described in the background section, the alert component is typically composed of default text plus graphics, and the component box of this embodiment represents the graphics of the alert component. Fig. 3 is a schematic diagram of a page to be designed and a prompt component according to an embodiment of the present application, and as shown in fig. 3, a component box in this embodiment may be, for example, a rectangular box, and is configured with a "cancel", "determine" trigger control, and a prompt text area is used to display a target prompt.
In some embodiments, after the user enters the custom call text and determines the target prompt call, the user may select a page to be designed and a component box to be designed, in which case the terminal device may display the target prompt call directly in the text area in response to the selection operation to create the prompt component.
According to the method, the first description information used for representing the application scene of the prompt component is input by a user, the similarity of the first description information and the second description information of each history record is respectively determined, the target prompt template corresponding to the history record with the maximum similarity is determined, the target prompt template comprises a fixed prompt text and an editable area, the custom text input by the user in the editable area is obtained, the target prompt is generated based on the fixed prompt text and the custom text, the target prompt is displayed in the text area of the component frame in the page to be designed, so that the prompt component is created, the composite prompt component can be flexibly created in the page based on the prompt template and the component frame, the requirement of a complex service scene can be met, the standard unified prompt template is provided by the scheme, the normal, the consistency and the accuracy of the prompt can be expressed on different pages can be guaranteed to the maximum extent, and the technical effect of quick composite voice is realized.
FIG. 4 is a flow diagram of a method for creating a hint component in a page according to a second embodiment of the present application, as shown in FIG. 4, the method includes:
s401: and responding to the drag operation of the user on the component frame, and displaying the component frame on the page to be designed.
In the embodiment of the disclosure, in the process of creating the prompt component on the page to be designed, the user first drags the component frame to the page to be designed, and in this case, the terminal device may respond to the drag operation to display the component frame on the page to be designed.
S402: and responding to the triggering operation of the user on the text area in the component frame, and displaying a plurality of prompt voice operation templates.
Further, the user may select a text region of the component box, and the terminal device may provide an option of using the prompt facility template in response to the triggering operation, and if the user triggers the option, the terminal device may display a plurality of preset prompt facility templates.
Therefore, in the process of designing the prompting component, the user can more conveniently select the prompting speech operation template.
S403: and receiving first descriptive information which is input by a user and is used for representing the application scene of the prompt component.
S404: and respectively determining the similarity between the first descriptive information and the second descriptive information of each history record, and determining a target prompt voice template corresponding to the history record with the maximum similarity.
S405: and acquiring a custom phone text input by a user in the editable area, and generating a target prompt phone based on the fixed phone text and the custom phone text.
S406: and displaying the target prompt ticket in a text area of the component box in the page to be designed to create a prompt component.
The specific description of S402 to S406 is referred to the above embodiments, and will not be repeated here.
S407: and acquiring a plurality of target prompt dialogs generated in a preset time period.
In practical application, each time the target prompt ticket template is used for creating a prompt component, a target prompt ticket is generated, and in order to meet the practical requirements of users, the embodiment can also perform self-adaptive update on the prompt ticket template regularly.
Specifically, the embodiment may obtain a plurality of target prompt dialects generated in a preset time period, where the preset time period may be flexibly set according to actual needs, and may be one month, half year, one year, or the like, which is not limited.
For example, if the target prompt ticket template is "you [ please ] exceeds the maximum limit" and the preset period of time is, for example, half a year, the embodiment may obtain the target prompt ticket generated by using the template in half a year.
S408: and determining the text fragments with the largest word quantity in the target prompt voice operation and the occurrence frequency larger than the threshold value.
The text segment refers to continuous text of the target prompt, and the number of the text is more than or equal to two.
For example, the target prompt saying "you purchase amount exceeds the maximum limit, you decrease the purchase amount", the text clip includes "you", "you purchase", "the term" you purchase amount exceeds the maximum limit, you decrease the purchase amount ".
In this embodiment, the number of occurrences of the text segments in the multiple target prompt dialects may be counted, that is, the number of occurrences of each text segment in the multiple target prompt dialects may be counted, and further, a text segment with the largest number of characters and a frequency of occurrence greater than a threshold may be selected. The threshold may be determined according to the number of target speech texts in the preset time period, for example, the threshold is 20%, that is, the selected text segment needs to satisfy the maximum number of words and appear in more than 20% of target speech templates.
For example, "your", "your purchase", "you purchase amount exceeds the most" appears in the target prompt ticket template above 20%, where the text segment that "you purchase amount exceeds the most" is the largest number of words, as an option.
S409: and updating the fixed-phone text of the target prompt-phone template into a text fragment.
Further, the fixed phone text of the target phone template is updated to a text segment, that is, the target phone template is updated by using the text segment, and the updated target phone template is "you purchase amount exceeds the most [ please ] and you please [ please ].
Therefore, the embodiment can update the prompt voice operation template regularly so as to meet the real-time requirement of the user.
Other embodiments, the user may also modify the prompting component, for example, modify the speaking of the prompting component, or modify the component box of the prompting component. In practical applications, multiple pages may be created with the same hint component, for example, different login pages may have the same password authentication hint component, and in the case that the user needs to modify, the hint component for each page needs to be modified separately, so a lot of time is required.
In view of this, in the process of modifying the hint component, the present embodiment first determines that there are multiple pages of the same hint component, which are referred to as target pages; further, in response to the user modifying operation of the prompting component in any target page, the prompting components in other target pages are associated and modified. Thus, modification time for the hint components in the plurality of pages can be saved.
According to the method, the first description information used for representing the application scene of the prompt component is input by a user, the similarity of the first description information and the second description information of each history record is respectively determined, the target prompt template corresponding to the history record with the maximum similarity is determined, the target prompt template comprises a fixed prompt text and an editable area, the custom text input by the user in the editable area is obtained, the target prompt is generated based on the fixed prompt text and the custom text, the target prompt is displayed in the text area of the component frame in the page to be designed, so that the prompt component is created, the composite prompt component can be flexibly created in the page based on the prompt template and the component frame, the requirement of a complex service scene can be met, the standard unified prompt template is provided by the scheme, the normal, the consistency and the accuracy of the prompt can be expressed on different pages can be guaranteed to the maximum extent, and the technical effect of quick composite voice is realized. In addition, the user can conveniently select the prompting voice operation template in the process of designing the prompting component, and the standardization of the custom voice operation text input by the user can be ensured. In addition, the embodiment can update the prompt voice operation template regularly so as to meet the real-time requirement of the user.
Fig. 5 is a block diagram of an in-page hint component creation apparatus according to the present application, and as shown in fig. 5, the in-page hint component creation apparatus 50 includes:
the receiving module 501 is configured to receive first description information, which is input by a user and is used for characterizing an application scenario of a prompt component;
the determining module 502 is configured to determine a similarity between the first description information and the second description information of each history record, and determine a target prompt voice template corresponding to the history record with the maximum similarity, where the target prompt voice template includes a fixed voice text and an editable area;
a generating module 503, configured to obtain a custom speech text input by a user in an editable area, and generate a target prompt speech based on the fixed speech text and the custom speech text; and
a creation module 504, configured to display the target prompt dialog in a text area of the component box in the page to be designed, so as to create a prompt component.
In some embodiments, the determining module 502 is specifically configured to: determining first keywords contained in the first descriptive information and second keywords contained in each piece of second descriptive information; respectively determining class labels to which the first keywords and the second keywords belong, wherein the class labels comprise prompt property classes and/or service scene classes; dividing the first keywords and the second keywords of the same category labels into a group, and respectively calculating the similarity scores of the first keywords and the second keywords in each group; and accumulating the similarity scores of each group to obtain the similarity.
In some embodiments, the determining module 502 is specifically configured to: comparing the maximum similarity with a preset similarity threshold; and responding to the maximum similarity being greater than or equal to a similarity threshold, and taking the prompting speech template corresponding to the history record of the maximum similarity as a target prompting speech template.
Some embodiments, the apparatus further comprises an updating module, specifically configured to: acquiring a plurality of target prompt dialogs generated in a preset time period; determining text fragments with the largest word quantity and occurrence frequency greater than a threshold value in a plurality of target prompt dialects; updating the fixed-phone text of the target-phone template into a text segment.
Some embodiments, the apparatus further comprises a modification module, specifically configured to: determining that a plurality of target pages of the same prompt component exist; and responding to the modification operation of the prompt component in any target page by the user, and carrying out association modification on the prompt components in other target pages.
Some embodiments, the generating module 503 is specifically configured to: verifying the normalization of the text content of the customized voice text and/or verifying the text format of the customized voice text; and generating a target prompt phone based on the fixed phone text and the custom phone text if the verification passes.
Some embodiments, the generating module 503 is specifically configured to: and prompting that the input cannot be continued in response to the character quantity of the custom-made speaking text which is input in a cumulative way being larger than the preset character quantity.
In some embodiments, the receiving module 501 is specifically configured to: responding to the drag operation of a user on the component frame, and displaying the component frame on the page to be designed; and responding to the triggering operation of the user on the text area in the component frame, and displaying a plurality of prompt voice templates.
Some embodiments create module 504, specifically for: and in response to the selection operation of the page to be designed and the component box by the user, displaying the target prompt speech in the text area.
Some embodiments, wherein the prompting property class at least includes a password and authentication class, a quantity and quota class, a rights control class, an information abuse class, a content illegality class, a repeat transaction class, a time and deadline class, a risk control class, and a business logic class; the business scenario categories include at least inquiry categories, transfer categories, credit card categories, investment financing categories, and general categories.
According to the method, the first description information used for representing the application scene of the prompt component is input by a user, the similarity of the first description information and the second description information of each history record is respectively determined, the target prompt template corresponding to the history record with the maximum similarity is determined, the target prompt template comprises a fixed prompt text and an editable area, the custom text input by the user in the editable area is obtained, the target prompt is generated based on the fixed prompt text and the custom text, the target prompt is displayed in the text area of the component frame in the page to be designed, so that the prompt component is created, the composite prompt component can be flexibly created in the page based on the prompt template and the component frame, the requirement of a complex service scene can be met, the standard unified prompt template is provided by the scheme, the normal, the consistency and the accuracy of the prompt can be expressed on different pages can be guaranteed to the maximum extent, and the technical effect of quick composite voice is realized.
According to embodiments of the present application, there is also provided an electronic device, a readable storage medium and a computer program product.
Fig. 6 is a block diagram of an electronic device according to the present application. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, an electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the electronic device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 606 provides power to the various components of the electronic device 600. The power supply components 606 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600.
The multimedia component 608 includes a touch-sensitive display screen that provides an output interface between the electronic device 600 and a user. In some embodiments, the touch display screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 608 includes a front camera and/or a rear camera. When the electronic device 600 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 604 or transmitted via the communication component 616.
In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of the electronic device 600. For example, the sensor assembly 614 may detect an on/off state of the electronic device 600, a relative positioning of the components, such as a display and keypad of the electronic device 600, the sensor assembly 614 may also detect a change in position of the electronic device 600 or a component of the electronic device 600, the presence or absence of a user's contact with the electronic device 600, an orientation or acceleration/deceleration of the electronic device 600, and a change in temperature of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communication between the electronic device 600 and other devices, either wired or wireless. The electronic device 600 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the above-described in-page hint component creation methods.
In an exemplary embodiment, a computer-readable storage medium is also provided, such as memory 604, including instructions executable by processor 920 of electronic device 600 to perform the above-described method. Alternatively, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (12)

1. A method for creating a prompt component in a page, comprising:
receiving first description information which is input by a user and is used for representing an application scene of a prompt component;
respectively determining the similarity of the first descriptive information and the second descriptive information of each history record, and determining a target prompt voice template corresponding to the history record with the maximum similarity, wherein the target prompt voice template comprises a fixed voice text and an editable area;
Obtaining a custom speaking text input by the user in the editable area, and generating a target prompt speaking based on the fixed speaking text and the custom speaking text; and
and displaying the target prompt ticket in a text area of the component box in the page to be designed so as to create a prompt component.
2. The method of claim 1, wherein determining the similarity of the first descriptive information to the second descriptive information for each history record, respectively, comprises:
determining a first keyword contained in the first descriptive information and a second keyword contained in each second descriptive information;
determining class labels to which the first keywords and the second keywords belong respectively, wherein the class labels comprise prompt property classes and/or business scene classes;
dividing the first keywords and the second keywords of the same category labels into a group, and respectively calculating the similarity scores of the first keywords and the second keywords in each group; and
and accumulating the similarity scores of each group to obtain the similarity.
3. The method of claim 1, wherein determining the target-alert-speech template corresponding to the history of maximum similarity comprises:
Comparing the maximum similarity with a preset similarity threshold; and
and responding to the maximum similarity being greater than or equal to the similarity threshold, and taking the prompting speech template corresponding to the history record of the maximum similarity as the target prompting speech template.
4. The method of claim 1, wherein after the displaying the target prompt ticket in the text area of the component box in the page to be designed to create the prompt component, further comprising:
acquiring a plurality of target prompt dialogs generated in a preset time period;
determining text fragments with the largest word quantity in the target prompt voice operation and the occurrence frequency larger than a threshold value; and
and updating the fixed-phone text of the target prompt-phone template into the text segment.
5. The method of claim 1, wherein after the displaying the target prompt ticket in the text area of the component box in the page to be designed to create the prompt component, further comprising:
determining that a plurality of target pages of the same prompt component exist; and
and responding to the modification operation of the user on the prompt components in any target page, and carrying out association modification on the prompt components in other target pages.
6. The method of claim 1, wherein the generating a target prompt phone based on the fixed phone text and the custom phone text comprises:
verifying the normalization of the text content of the customized speaking text and/or verifying the text format of the customized speaking text; and
and generating a target prompt phone based on the fixed phone text and the custom phone text under the condition that verification is passed.
7. The method of claim 1, wherein prior to receiving the first description information for characterizing the alert component application scenario entered by the user, further comprising:
responding to the drag operation of a user on the component frame, and displaying the component frame on the page to be designed; and
and responding to the triggering operation of the user on the text area in the component frame, and displaying a plurality of prompt voice templates.
8. The method of claim 1, wherein the displaying the target prompt dialog in the text area of the component box in the page to be designed comprises:
and responding to the selection operation of the user on the page to be designed and the component box, and displaying the target prompt voice in the text area.
9. An in-page hint component creation apparatus, comprising:
the receiving module is used for receiving first description information which is input by a user and is used for representing the application scene of the prompt component;
the determining module is used for respectively determining the similarity between the first descriptive information and the second descriptive information of each history record and determining a target prompt voice template corresponding to the history record with the maximum similarity, wherein the target prompt voice template comprises a fixed voice text and an editable area;
the generation module is used for acquiring a custom speaking text input by the user in the editable area and generating a target prompt speaking based on the fixed speaking text and the custom speaking text; and
and the creating module is used for displaying the target prompt dialog in a text area of the component box in the page to be designed so as to create a prompt component.
10. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1-8.
11. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-8.
12. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1-8.
CN202311268755.5A 2023-09-27 2023-09-27 Method, device, equipment and storage medium for creating prompt component in page Pending CN117291164A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311268755.5A CN117291164A (en) 2023-09-27 2023-09-27 Method, device, equipment and storage medium for creating prompt component in page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311268755.5A CN117291164A (en) 2023-09-27 2023-09-27 Method, device, equipment and storage medium for creating prompt component in page

Publications (1)

Publication Number Publication Date
CN117291164A true CN117291164A (en) 2023-12-26

Family

ID=89247663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311268755.5A Pending CN117291164A (en) 2023-09-27 2023-09-27 Method, device, equipment and storage medium for creating prompt component in page

Country Status (1)

Country Link
CN (1) CN117291164A (en)

Similar Documents

Publication Publication Date Title
US20170337209A1 (en) Providing suggestions for interaction with an automated assistant in a multi-user message exchange thread
CN105144040A (en) Communication context based predictive-text suggestion
CN105068976B (en) Ticket information display method and device
US11501736B2 (en) Systems and methods for context-based optical character recognition
CN112334899A (en) Techniques for generating analytics based on interactions over a digital channel
CN112528326B (en) Information processing method and device and electronic equipment
CN111127053B (en) Page content recommendation method and device and electronic equipment
CN111428032A (en) Content quality evaluation method and device, electronic device, and storage medium
RU2644134C2 (en) Method and device for processing short message
CN111934975A (en) Dialog information display method and device
CN107844494B (en) Entry auditing method and terminal, entry processing method and server
CN112634090A (en) Home decoration information reporting management method, system, computer device and storage medium
CN116029673A (en) Business approval data sampling evaluation method, device, equipment and storage medium
US20170076368A1 (en) Method and Device for Processing Card Application Data
CN111797211A (en) Service information searching method, device, computer equipment and storage medium
CN111428001A (en) Short message information retrieval method, device and storage medium
CN117291164A (en) Method, device, equipment and storage medium for creating prompt component in page
US20230056653A1 (en) Document analysis to identify document characteristics and appending the document characteristics to a record
CN115760404A (en) Stock reduction scheme generation method, system, terminal and storage medium
CN116127062A (en) Training method of pre-training language model, text emotion classification method and device
CN114781368A (en) Business requirement safety processing method and device
KR102329768B1 (en) A mobile device for providing an integrated management of message information, a method for providing an integrated management of message information and a computer readable medium
CN109118205B (en) Data processing method, data processing device and terminal equipment
CN111091019A (en) Information prompting method, device and equipment
KR101632113B1 (en) Mobile communication terminal and method for operating of the mobile communication terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination