Mail theme generation method and device, equipment and storage medium
By automatically obtaining email text information and using classification models and topic templates to generate email topics, it solves the time-consuming and laborious problem of users filling in email topics manually, realizes automatic generation and format standardization of email topics, and improves the email viewing experience.
Patent Information
- Application Number
- CN202411709350.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-03-04
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
It is time-consuming and laborious for users to fill in the email topic manually, and the same type of email topic formats filled in by different users are of various types, which is not convenient for recipients to quickly understand the basic information of emails and reduce the email viewing experience.
By responding to the topic generation trigger operation of the target email, obtain the text information of the target email, and use pre-trained classification models and topic templates to automatically generate and display the email topics to achieve format standardization.
No need to fill in the email topic manually, which improves the efficiency and consistency of email topic generation and enhances the email viewing experience.
Smart Images

Figure CN119558295A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to computer technology, and in particular to a method, device, equipment and storage medium for generating a mail subject. Background Art
[0002] With the rapid development of computer technology, users usually communicate and interact via email. For example, employees need to send various business approval emails and work report emails to their leaders. Currently, the email subject in the email is manually filled in by the user to briefly describe the basic information of the email. However, in the process of implementing the present invention, the inventor found that there are at least the following problems in the prior art:
[0003] The method of users manually filling in the email subject is time-consuming and laborious, and the formats of the same type of email subject filled in by different users are various, which makes it inconvenient for the recipient to quickly understand the basic information of the email and reduces the email viewing experience. Summary of the invention
[0004] The embodiments of the present invention provide a method, apparatus, device and storage medium for generating email subject information, so as to realize automatic generation and display of email subject information without manual filling, and standardize the format of email subject information of the same email type, thereby improving the email viewing experience.
[0005] In a first aspect, an embodiment of the present invention provides a method for generating an email subject, comprising:
[0006] In response to a trigger operation generated by a subject of a target email, obtaining target body information of the target email;
[0007] Classify the emails according to the pre-trained target classification model and the target text information, and determine the target email type corresponding to the target email;
[0008] Obtain a target subject template corresponding to the target email type;
[0009] Determine the target subject item information corresponding to the target subject item to be filled in the target subject template according to the target text information;
[0010] The target subject item information is filled into the target subject template to obtain the target subject information corresponding to the target email, and the target subject information is displayed in the subject content box of the target email.
[0011] In a second aspect, an embodiment of the present invention further provides a device for generating a subject of an email, comprising:
[0012] A target body information acquisition module, configured to acquire target body information of the target email in response to a trigger operation generated by the subject of the target email;
[0013] A target mail type determination module is used to classify mails according to a pre-trained target classification model and the target text information, and determine a target mail type corresponding to the target mail;
[0014] A target subject template acquisition module is used to acquire a target subject template corresponding to the target email type;
[0015] A target subject item information determination module, used to determine the target subject item information corresponding to the target subject item to be filled in the target subject template according to the target text information;
[0016] The target subject information display module is used to fill the target subject item information into the target subject template, obtain the target subject information corresponding to the target email, and display the target subject information in the subject content box of the target email.
[0017] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0018] at least one processor; and
[0019] a memory communicatively connected to the at least one processor; wherein,
[0020] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the email subject generation method provided by any embodiment of the present invention.
[0021] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the email subject generation method provided by any embodiment of the present invention when executed.
[0022] One embodiment of the above invention has the following advantages or beneficial effects:
[0023] By generating a trigger operation in response to the subject of the target email, the target body information of the target email is obtained; the email is classified according to the pre-trained target classification model and the target body information, and the target email type corresponding to the target email is determined; the target subject template corresponding to the target email type is obtained; according to the target body information, the target subject item information corresponding to the target subject item to be filled in the target subject template is automatically determined, and the target subject item information is filled into the target subject template to obtain complete target subject information, and the target subject information is displayed in the subject content box of the target email, thereby realizing the automatic generation and display of email subject information by using the target classification model and the subject template, without manual filling, and the format of email subject information of the same email type is standardized, thereby improving the email viewing experience.
[0024] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 It is a flow chart of a method for generating a mail subject provided by an embodiment of the present invention;
[0027] Figure 2 is a flow chart of another method for generating a subject of an email provided by an embodiment of the present invention;
[0028] Figure 3 It is a structural schematic diagram of an email subject generating device provided by an embodiment of the present invention;
[0029] Figure 4 The present invention is a schematic diagram of the structure of an electronic device for implementing the method for generating a mail subject according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] Figure 1 This is a flowchart of a method for generating a subject of an email provided by an embodiment of the present invention. This embodiment is applicable to the case of automatically generating subject information of an email. The method can be executed by an email subject generating device, which can be implemented by software and / or hardware. The email subject generating device can be configured in an electronic device. Figure 1 As shown, the method specifically comprises the following steps:
[0033] S110 . In response to a trigger operation generated by the subject of a target email, obtain target body information of the target email.
[0034] The target email may refer to the email to be sent, that is, the email currently edited by the user. The subject generation trigger operation may be an operation in which the user triggers the automatic generation of the email subject. For example, a button for automatically generating the email subject may be displayed on the email interface, and the user completes the subject generation trigger operation by clicking the button for automatically generating the email subject. The target body information may refer to the detailed content information of the target email to be sent. The target body information is the main content of the email manually written by the user.
[0035] Specifically, if a user wants to send an email (i.e., the email is regarded as a target email), the target body information to be sent is entered in the email editing page, and after the target body information is edited, the process of automatically generating the email subject can be triggered by clicking the button for automatically generating the email subject in the email editing page. When the client detects a trigger operation for generating a subject, such as clicking the button for automatically generating the email subject, the client obtains the target body information of the target email entered by the user, so as to automatically generate the email subject based on the target body information.
[0036] S120: Classify the emails according to the pre-trained target classification model and the target text information, and determine the target email type corresponding to the target email.
[0037] Among them, the email type can be obtained by classifying emails based on different business types in advance. Different business types have different business information, so different subject formats are required to briefly describe different business information. Each business type can correspond to an email type. For example, the approval business corresponds to the approval email, the notification business corresponds to the notification email, the work report business corresponds to the work report email, etc. The target classification model can be a deep learning network model for determining the business type to which the email belongs. For example, the target classification model can be a multi-classification network model of any network architecture. The target email type corresponding to the target email can refer to the target business type to which the target email belongs.
[0038] Specifically, a classification model can be trained in advance based on sample data to obtain a trained target classification model, thereby ensuring the classification accuracy of the target classification model. The sample data may include the body information of the sample email and the actual email type of the sample email. The actual email type may refer to the actual business type to which the sample email belongs. In actual application, the target body information of the target email is input into the pre-trained target classification model for email classification. The target classification model can output the probability value that the target email belongs to each email type, and determine the email type with the highest probability value as the target email type corresponding to the target email, thereby using the target classification model to achieve automatic classification of the target email.
[0039] Exemplarily, step S120 may include: acquiring target attachment information of the target email; classifying the email according to a pre-trained target classification model, target body information, and target attachment information, and determining a target email type corresponding to the target email.
[0040] Among them, the target attachment information is the file information attached to the target email, which is sent together with the email body information. The target attachment information can be a document, a picture, or a video, etc. Specifically, if the target attachment information uploaded by the user exists in the target email, the email is classified based on the target body information and the target attachment information of the target email. For example, the target body information and the target attachment information are input into a pre-trained target classification model. The target classification model can more accurately classify emails based on the target body information and the target attachment information at the same time, and determine the target email type corresponding to the target email, thereby further improving the accuracy of email classification, and then improving the accuracy of email subject generation.
[0041] S130: Obtain a target subject template corresponding to the target email type.
[0042] Among them, the subject template can be used to characterize the subject format information corresponding to the email type. The subject template corresponds to the email type one by one. Different email types correspond to different subject templates. The target subject template refers to the subject template required to be used by the target email. The target subject template can be used to characterize the common subject format of different emails under the target email type, thereby realizing the standardization of the subject format under the same email type. The subject template corresponding to each email type is pre-configured based on business needs. The subject template corresponding to each email type can include multiple subject items, and all subject items can be separated and connected by symbols such as underscores. Subject items can be divided into static subject items and dynamic subject items. Among them, static subject items refer to subject items whose content is fixed and does not need to be filled in dynamically. Dynamic subject items refer to subject items whose content changes dynamically with different business information, so they need to be determined and filled in in real time. For example, static subject items can be business type information, etc. Dynamic subject items can be business handlers and business project names, etc. Exemplarily, the subject template corresponding to the email type of approval email is: [Approval]_"Approval Project Name"_"Approver"_"Approval Required Time". This theme template includes 4 theme items, among which [Approval] is a static theme item, and "Approval Project Name", "Approver" and "Approval Required Time" are three dynamic theme items.
[0043] Specifically, based on the pre-configured subject template corresponding to each mail type, the target subject template corresponding to the target mail type can be obtained. When only one subject template is configured under each mail type, the subject template under the target mail type can be directly determined as the target subject template corresponding to the target mail type.
[0044] Exemplarily, step S130 may include: if there are multiple subject templates under the target email type, obtaining the target recipient information of the target email; determining the target subject template corresponding to the target email type according to the correspondence between the subject template and the recipient information under the target email type and the target recipient information.
[0045] It should be noted that, since different recipients of the same email type have different personal preferences or personal requirements, multiple subject templates can be configured under the same email type to meet the personalized requirements of different recipients and further improve the recipient's experience of checking emails. For example, based on the subject requirements of recipient 1, the general subject template a under email type A is adjusted, for example, a new subject item is added on the basis of the general subject template a, and the subject template a1 corresponding to recipient 1 is obtained; based on the subject requirements of recipient 2, the general subject template a under email type A is adjusted to obtain the subject template a2 corresponding to recipient 1. If other recipients do not have personalized subject requirements, the subject templates corresponding to other recipients are determined to be the general subject template a. It can be obtained that: there are 3 subject templates under email type A, namely, subject template a, subject template a1 and subject template a2, and subject template a1 corresponds to recipient 1, subject template a1 corresponds to recipient 2, and subject template a corresponds to other recipients except recipient 1 and recipient 2.
[0046] Specifically, when there are multiple subject templates under the target email type, based on the correspondence between the subject templates under the target email type and the recipient information, the subject template corresponding to the target recipient information of the target email is determined as the target subject template corresponding to the target email type, thereby meeting the recipient's personalized requirements on the basis of standardized subject formats and further improving the email viewing experience.
[0047] S140. Determine target subject item information corresponding to the target subject item to be filled in the target subject template according to the target text information.
[0048] The target subject item to be filled in may refer to a dynamic subject item to be filled in the target subject template. The target subject item information refers to the specific content of the template subject item. For example, the target subject item may be regarded as an attribute, and the target subject item information may be regarded as a specific attribute value. The number of the target subject items to be filled in may be one or more.
[0049] Specifically, the target body information of the target email is analyzed, and the target subject item information corresponding to each target subject item is automatically extracted from the target body information.
[0050] Exemplarily, step S140 may include: determining target subject item information corresponding to the target subject item to be filled in the target subject template according to the target text information and the target attachment information.
[0051] Specifically, when there is target attachment information uploaded by the user in the target email, the target body information and the target attachment information of the target email can be analyzed at the same time, and the target subject item information corresponding to each target subject item can be automatically extracted from the target body information and the target attachment information. By adding the target attachment information, the success and accuracy of the target subject item information extraction can be improved.
[0052] S150: Fill the target subject item information into the target subject template, obtain the target subject information corresponding to the target email, and display the target subject information in the subject content box of the target email.
[0053] The target subject information refers to the specific subject content that the target email needs to fill in. The subject content box of the target email refers to a control for filling in and displaying the email subject content.
[0054] Specifically, the target subject item information corresponding to each target subject item is automatically filled into the corresponding position in the target subject template, that is, the target subject item in the target subject template is replaced with the corresponding target subject item information, thereby obtaining complete target subject information, realizing automatic generation of the email subject, without the need for the user to manually fill in, and improving the user experience. By automatically displaying the target subject information in the subject content box of the target email, the user can view the generated email subject content.
[0055] The technical solution of this embodiment obtains the target body information of the target email by generating a trigger operation in response to the subject of the target email; classifies the email according to the pre-trained target classification model and the target body information, and determines the target email type corresponding to the target email; obtains the target subject template corresponding to the target email type; automatically determines the target subject item information corresponding to the target subject item to be filled in the target subject template according to the target body information, and fills the target subject item information into the target subject template to obtain complete target subject information, and displays the target subject information in the subject content box of the target email, thereby realizing the automatic generation and display of email subject information by using the target classification model and the subject template, without manual filling, and standardizing the format of email subject information of the same email type, thereby improving the email viewing experience.
[0056] Based on the above technical solutions, the method also includes: if the target subject item information corresponding to the target subject item cannot be determined, the target subject item is set to blank; or, input prompt information of the target subject item is displayed to obtain the target subject item information corresponding to the target subject item input by the user.
[0057] Specifically, if there is a situation where the target subject item of the target subject item information cannot be determined, that is, the target body information and the target attachment information do not contain the target subject item information corresponding to the target subject item, then the target subject item can be left blank, such as determining that the target subject item information corresponding to the target subject item is empty information, and then fill in the target subject item information that does not contain the target subject item in the obtained target subject information. Alternatively, the input prompt information of the target subject item can also be displayed on the email interface to prompt the user to manually input the target subject item information corresponding to the target subject item, thereby obtaining the target subject item information manually input by the user, so that the complete target subject information can be generated to improve the user viewing experience.
[0058] Based on the above technical solutions, after step S150, it can also include: in response to the subject item information change operation in the target subject information, displaying the synchronous update prompt information corresponding to the target subject template; in response to the consent update operation triggered by the synchronous update prompt information, synchronously updating the target subject template based on the changed subject item.
[0059] Specifically, if the user finds problems when viewing the displayed target theme information, such as some theme items do not need to be added, some theme items are added incorrectly, and / or some theme items are not added, the user can change the theme item information in the displayed target theme information, such as deleting existing theme items, adding new theme items, or modifying existing theme items. After the user completes changing the theme item information, the synchronous update prompt information corresponding to the target theme template can be automatically displayed, thereby prompting the user whether to synchronously update the target theme template, so as to automatically modify the format of the target theme template, and then the theme information with the latest theme format can be directly generated next time. If the user wants to synchronously update the target theme template, the consent update operation can be triggered for the synchronous update prompt information, such as clicking a button to agree to the update. At this time, based on the changed theme items, the theme items in the target theme template are automatically updated synchronously, so that the updated target theme template meets the changed theme format requirements, and then the theme content that meets the latest format requirements is automatically generated subsequently, which improves the efficiency and experience of theme format changes. If the change in the subject item information is only a special one-time change and the user does not want to synchronously update the target subject template, the user can trigger a rejection update operation in response to the synchronous update prompt information, such as clicking a rejection update button, thereby avoiding synchronously updating the target subject template. The subject will still be generated in the format required by the target subject template subsequently, further meeting the user's personalized needs.
[0060] Figure 2A flowchart of another method for generating a subject of an email provided by an embodiment of the present invention. Based on the above embodiments, this embodiment optimizes the step of "determining the target subject item information corresponding to the target subject item to be filled in the target subject template according to the target text information and the target attachment information". The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here.
[0061] See also Figure 2 Another method for generating a mail subject provided in this embodiment specifically includes the following steps:
[0062] S210: In response to a trigger operation generated by the subject of a target email, obtain target body information of the target email.
[0063] S220: Classify the emails according to the pre-trained target classification model and the target text information, and determine the target email type corresponding to the target email.
[0064] S230: Obtain a target subject template corresponding to the target email type.
[0065] S240: Generate a target document according to the target text information.
[0066] The target document may be a text document containing target text information, and the document format of the target document may be a word document format or a PDF (Powder Diffraction File) document format.
[0067] Specifically, the target body information of the target email is combined to generate a target document in a document form. If the target email contains target attachment information uploaded by the user, the target document can be generated based on the target body information and the target attachment information. For example, the target body information and the target attachment information are processed by text concatenation to generate a target document in a document form. In this case, the target document is a text document containing the target body information and the target attachment information.
[0068] Exemplarily, based on a target document format that can be recognized by a document interpretation model, a target document in the target document format is generated so that the document interpretation model can recognize and interpret it normally.
[0069] S250: Retrieve target subject item information corresponding to the target subject item from the target document according to the document interpretation model and the target subject item to be filled in the target subject template.
[0070] Among them, the document interpretation model can be a network model that parses and responds to the document content. The document interpretation model can be any pre-trained model that can respond to documents. For example, the document interpretation model can be but is not limited to the ChatPDF model. The ChatPDF model is an intelligent tool that can communicate with PDF documents. The ChatPDF model can support users to enter questions and obtain corresponding answers from PDF documents. It also supports users to quickly search for keywords or words in PDF documents. It also has the function of automatically identifying the chapter structure and icons of PDF documents, so as to better help users understand the content of PDF documents.
[0071] Specifically, based on each target subject item to be filled in the target subject template, text retrieval is performed within the scope of the target document using the document interpretation model, and the target subject item information corresponding to each retrieved target subject item can be obtained more quickly and accurately, thereby improving the accuracy and efficiency of determining the target subject item information.
[0072] Exemplarily, step S250 may include: generating a retrieval question for retrieving target subject item information according to the target subject item to be filled in the target subject template; inputting the retrieval question and the target document into the document interpretation model for question answering, determining the target answer corresponding to the retrieval question, and determining the target answer as the target subject item information corresponding to the target subject item.
[0073] Specifically, for each target subject item to be filled in the target subject template, a retrieval question is generated to retrieve the target subject item information corresponding to each target subject item. For example, if the target subject item is: business project name, the corresponding retrieval question is: "What is the specific name of the business project name?" The retrieval question and target document corresponding to each target subject item are input into the document interpretation model. The document interpretation model performs document analysis on the input target document, and retrieves and outputs the target answer that matches the input retrieval question from the target document, thereby realizing document-based automatic response. The target answer output by the document interpretation model is determined as the corresponding target subject item information. By using the method of answering questions in the document interpretation model, the target subject item information corresponding to the target subject item can be obtained more quickly and accurately.
[0074] It should be noted that if there is a retrieval question that the document interpretation model fails to answer, it means that the target answer corresponding to the retrieval question does not exist in the target document, that is, there is no target subject item information corresponding to the target subject item.
[0075] S260: Fill the target subject item information into the target subject template, obtain the target subject information corresponding to the target email, and display the target subject information in the subject content box of the target email.
[0076] The technical solution of this embodiment, by generating a target document based on the target text information and using a document interpretation model to perform text retrieval within the scope of the target document, can more quickly and accurately obtain the target subject item information corresponding to each retrieved target subject item, thereby improving the accuracy and efficiency of determining the target subject item information.
[0077] The following is an embodiment of an email subject generation device provided by an embodiment of the present invention. The device and the email subject generation method of the above embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the email subject generation device, please refer to the embodiment of the above email subject generation method.
[0078] Figure 3 The structure diagram of a device for generating a mail subject provided by an embodiment of the present invention is shown in FIG. Figure 3 As shown, the device specifically includes: a target text information acquisition module 310, a target email type determination module 320, a target subject template acquisition module 330, a target subject item information determination module 340 and a target subject information display module 350.
[0079] Among them, the target body information acquisition module 310 is used to respond to the subject generation trigger operation of the target email and obtain the target body information of the target email; the target email type determination module 320 is used to classify the email according to the pre-trained target classification model and the target body information, and determine the target email type corresponding to the target email; the target subject template acquisition module 330 is used to obtain the target subject template corresponding to the target email type; the target subject item information determination module 340 is used to determine the target subject item information corresponding to the target subject item to be filled in the target subject template according to the target body information; the target subject information display module 350 is used to fill the target subject item information into the target subject template, obtain the target subject information corresponding to the target email, and display the target subject information in the subject content box of the target email.
[0080] The technical solution of this embodiment obtains the target body information of the target email by generating a trigger operation in response to the subject of the target email; classifies the email according to the pre-trained target classification model and the target body information, and determines the target email type corresponding to the target email; obtains the target subject template corresponding to the target email type; automatically determines the target subject item information corresponding to the target subject item to be filled in the target subject template according to the target body information, and fills the target subject item information into the target subject template to obtain complete target subject information, and displays the target subject information in the subject content box of the target email, thereby realizing the automatic generation and display of email subject information by using the target classification model and the subject template, without manual filling, and standardizing the format of email subject information of the same email type, thereby improving the email viewing experience.
[0081] Optionally, the target email type determination module 320 is specifically used to: obtain target attachment information of the target email; classify the email according to the pre-trained target classification model, the target body information and the target attachment information, and determine the target email type corresponding to the target email;
[0082] The target subject item information determination module 340 is specifically used to determine the target subject item information corresponding to the target subject item to be filled in the target subject template according to the target text information and the target attachment information.
[0083] Optionally, the target subject item information determination module 340 includes:
[0084] A target document generating unit, used for generating a target document according to the target text information;
[0085] The target subject item information determining unit is used to retrieve the target subject item information corresponding to the target subject item from the target document according to the document interpretation model and the target subject item to be filled in the target subject template.
[0086] Optionally, the target subject item information determination unit is specifically configured to:
[0087] According to the target subject items to be filled in the target subject template, a retrieval question for retrieving target subject item information is generated; the retrieval question and the target document are input into a document interpretation model for question answering, the target answer corresponding to the retrieval question is determined, and the target answer is determined as the target subject item information corresponding to the target subject item.
[0088] Optionally, the target theme template acquisition module 330 is specifically used to:
[0089] If there are multiple subject templates under the target email type, the target recipient information of the target email is obtained; based on the correspondence between the subject template under the target email type and the recipient information and the target recipient information, the target subject template corresponding to the target email type is determined.
[0090] Optionally, the device further comprises:
[0091] a blank processing module, used for blanking the target subject item if the target subject item information corresponding to the target subject item cannot be determined; or,
[0092] The input prompt information display module is used to display the input prompt information of the target subject item to obtain the target subject item information corresponding to the target subject item input by the user.
[0093] Optionally, the device further comprises:
[0094] A synchronous update prompt information display module, configured to display synchronous update prompt information corresponding to the target subject template in response to a subject item information change operation in the target subject information after displaying the target subject information in the subject content box of the target email;
[0095] The target theme template updating module is used to synchronously update the target theme template based on the modified theme item in response to the consent update operation triggered by the synchronous update prompt information.
[0096] The email subject generation device provided in the embodiment of the present invention can execute the email subject generation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the email subject generation method.
[0097] It is worth noting that in the embodiment of the above-mentioned email subject generation device, the various units and modules included 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 scope of protection of the present invention.
[0098] Figure 4A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0099] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0100] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0101] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various email subject generation methods and processes described above.
[0102] In some embodiments, the email subject generation method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the email subject generation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the email subject generation method in any other appropriate manner (e.g., by means of firmware).
[0103] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0104] The computer program for implementing the email subject generation method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or the block diagram are implemented. The computer program can be executed completely on the machine, partially on the machine, as an independent software package, partially on the machine and partially on a remote machine, or completely on a remote machine or server.
[0105] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.
[0106] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0107] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0108] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0109] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0110] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for generating an email subject, characterized in that: include: In response to a trigger operation generated by a subject of a target email, obtaining target body information of the target email; Classify the emails according to the pre-trained target classification model and the target text information, and determine the target email type corresponding to the target email; Obtain a target subject template corresponding to the target email type; Determine the target subject item information corresponding to the target subject item to be filled in the target subject template according to the target text information; The target subject item information is filled into the target subject template to obtain the target subject information corresponding to the target email, and the target subject information is displayed in the subject content box of the target email.
2. The method according to claim 1, characterized in that The performing of email classification according to the pre-trained target classification model and the target text information to determine the target email type corresponding to the target email includes: Obtain target attachment information of the target email; Classify the email according to the pre-trained target classification model, the target body information and the target attachment information, and determine the target email type corresponding to the target email; The step of determining target subject item information corresponding to the target subject item to be filled in the target subject template according to the target text information includes: According to the target text information and the target attachment information, target subject item information corresponding to the target subject item to be filled in the target subject template is determined.
3. The method according to claim 1, characterized in that The step of determining target subject item information corresponding to the target subject item to be filled in the target subject template according to the target text information includes: Generate a target document according to the target text information; According to the document interpretation model and the target subject item to be filled in the target subject template, the target subject item information corresponding to the target subject item is retrieved from the target document.
4. The method according to claim 3, characterized in that The step of retrieving target subject item information corresponding to the target subject item from the target document according to the target subject item to be filled in the target subject template includes: Generating a search question for retrieving target subject item information according to the target subject item to be filled in the target subject template; The retrieval question and the target document are input into a document interpretation model for question answering, a target answer corresponding to the retrieval question is determined, and the target answer is determined as the target subject item information corresponding to the target subject item.
5. The method according to claim 1, characterized in that The step of obtaining a target subject template corresponding to the target email type includes: If there are multiple subject templates under the target email type, obtaining the target recipient information of the target email; According to the corresponding relationship between the subject template under the target mail type and the recipient information and the target recipient information, a target subject template corresponding to the target mail type is determined.
6. The method according to claim 1, characterized in that The method further comprises: If the target subject item information corresponding to the target subject item cannot be determined, the target subject item is left blank; or, The input prompt information of the target subject item is displayed to obtain the target subject item information corresponding to the target subject item input by the user.
7. The method according to any one of claims 1 to 6, characterized in that: After displaying the target subject information in the subject content box of the target email, the method further includes: In response to the subject item information modification operation in the target subject information, displaying the synchronization update prompt information corresponding to the target subject template; In response to the update operation agreed upon triggered by the synchronous update prompt information, the target theme template is synchronously updated based on the modified theme item.
8. A device for generating a subject of an email, characterized in that: include: A target body information acquisition module, configured to acquire target body information of the target email in response to a trigger operation generated by the subject of the target email; A target mail type determination module is used to classify mails according to a pre-trained target classification model and the target text information, and determine a target mail type corresponding to the target mail; A target subject template acquisition module is used to acquire a target subject template corresponding to the target email type; A target subject item information determination module, used to determine the target subject item information corresponding to the target subject item to be filled in the target subject template according to the target text information; The target subject information display module is used to fill the target subject item information into the target subject template, obtain the target subject information corresponding to the target email, and display the target subject information in the subject content box of the target email.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for generating a mail subject according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for generating a mail subject according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Mail matter topics automatically generating method, device and system
CN101097618A
Mail sending method and device in workflow system, and computer device
CN107730210A
Mail sending method and device, storage medium and computer equipment
CN107800613A
Abnormal mail detection method and device, equipment and storage medium
CN115470353A
Information pushing method, terminal equipment and readable storage medium
CN117453903A