CN114186540A - Mail content intelligent filling method and device, electronic equipment and storage medium - Google Patents
Mail content intelligent filling method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114186540A CN114186540A CN202111519154.8A CN202111519154A CN114186540A CN 114186540 A CN114186540 A CN 114186540A CN 202111519154 A CN202111519154 A CN 202111519154A CN 114186540 A CN114186540 A CN 114186540A
- Authority
- CN
- China
- Prior art keywords
- content
- page
- template
- text
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000004590 computer program Methods 0.000 claims description 12
- 238000006467 substitution reaction Methods 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 8
- 238000013473 artificial intelligence Methods 0.000 abstract description 5
- 238000005516 engineering process Methods 0.000 abstract description 3
- 238000004891 communication Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 238000007726 management method Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000012549 training Methods 0.000 description 3
- 238000012800 visualization Methods 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/174—Form filling; Merging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/107—Computer-aided management of electronic mailing [e-mailing]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Human Resources & Organizations (AREA)
- General Physics & Mathematics (AREA)
- Entrepreneurship & Innovation (AREA)
- Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Strategic Management (AREA)
- Artificial Intelligence (AREA)
- Tourism & Hospitality (AREA)
- Computer Hardware Design (AREA)
- Data Mining & Analysis (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Marketing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to the field of artificial intelligence, and discloses an intelligent mail content filling method, which comprises the following steps: identifying a mail text corresponding to a content loading request of a mail sender, and carrying out element splitting on the mail text to obtain at least two element texts; extracting an element object of each element text, and matching each element object with an element template of a front-end element template library; loading element contents corresponding to the successfully matched element objects to an element template to obtain first page element contents; constructing a page template of the element object which fails to be matched, and loading element content corresponding to the element object which fails to be matched to the page template to obtain second page element content; and integrating the content of the first page element and the content of the second page element to obtain the content of the email page. In addition, the invention also relates to a block chain technology, and the element text can store the block chain. The invention can realize the real-time effect viewing of the mail content and meet the intelligent filling of the complex mail content.
Description
Technical Field
The invention relates to the field of artificial intelligence, in particular to an intelligent mail content filling method, an intelligent mail content filling device, electronic equipment and a computer-readable storage medium.
Background
The e-mail is a file processed by a network transmission mode, and can realize the transmission of text contents through the e-mail, for example, the e-mail such as an invitation, a training notice, a training summary and the like needs to be sent in a training process.
At present, a plurality of mail templates are set in the background expectation based on the mail template, and a mail template to be used is selected when interpolation and mail sending are set in the mail template, and one mail content is generated through interpolation replacement.
Disclosure of Invention
The invention provides an intelligent filling method and device for mail content, electronic equipment and a computer readable storage medium, and mainly aims to realize real-time effect viewing of the mail content and meet the requirement of intelligent filling of complex mail content.
In order to achieve the above object, the present invention provides an intelligent mail content filling method, which includes:
receiving a content loading request of a mail sender, identifying a mail text corresponding to the content loading request, and performing element splitting on the mail text according to preset page elements to obtain at least two element texts;
extracting an element object of each element text, and matching each element object with an element template in a preset front-end element template library;
loading the element content corresponding to the successfully matched element object into the element template by adopting an interpolation replacement algorithm to obtain first page element content;
adopting a custom container to construct a page template of the element object which fails to be matched, and loading element content corresponding to the element object which fails to be matched into the page template to obtain second page element content;
and integrating the first page element content and the second page element content to obtain the email page content.
Optionally, the element splitting is performed on the mail text according to preset page elements to obtain at least two element texts, including:
and matching the preset page elements with the mail content in the mail text, dividing the successfully matched mail content into element text contents, and generating at least two element texts according to the element text contents.
Optionally, the extracting an element object of each of the element texts includes:
acquiring a text field of each element text;
determining the element attribute of each element text according to the text field;
and identifying an element object of each element text according to the element attribute.
Optionally, the matching each element object with an element template in a preset front-end element template library includes:
converting each element object into a first element vector, and converting each element template in the preset front-end element template library into a second element vector;
calculating the vector similarity of the first element vector and the second element vector;
if the vector similarity is larger than a preset threshold value, the element object and the element template are successfully matched;
and if the vector similarity is not greater than the preset threshold, the element object and the element template are failed to be matched.
Optionally, the loading, by using an interpolation replacement algorithm, the element content corresponding to the successfully matched element object into the element template to obtain a first page element content includes:
according to the interpolation substitution algorithm, constructing a parameter interpolation thread of the element template;
and transmitting the element coordinates of the element content corresponding to the successfully matched element object to the parameter interpolation thread, so as to execute the loading of the element content on the element template through the parameter interpolation thread, and obtain the first page element content. Optionally, the constructing a page template of the element object with failed matching by using a custom container:
and acquiring a page layout event of the element object which fails to be matched, and transmitting the page layout event to the custom container so as to construct a page template of the element object by using the custom container according to the page layout event.
Optionally, the integrating the content of the first page element and the content of the second page element into an email page to obtain the content of the email page includes:
configuring a layout mode of the first page element content and the second page element content on a front page, and constructing element styles of the first page element content and the second page element content on the front page;
and generating the content of the email page according to the layout mode and the element style.
In order to solve the above problem, the present invention further provides an intelligent filling device for mail content, the device comprising:
the mail text splitting module is used for receiving a content loading request of a mail sender, identifying a mail text corresponding to the content loading request, and performing element splitting on the mail text according to preset page elements to obtain at least two element texts;
the element object matching module is used for extracting an element object of each element text and matching each element object with an element template in a preset front-end element template library;
the element content generating module is used for loading the element content corresponding to the successfully matched element object into the element template by adopting an interpolation substitution algorithm to obtain a first page element content;
the element content generating module is further configured to construct a page template of the element object that fails to be matched by using a custom container, and load the element content corresponding to the element object that fails to be matched into the page template to obtain a second page element content;
and the mail content generating module is used for integrating the first page element content and the second page element content to obtain the mail page content.
In order to solve the above problem, the present invention also provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to implement the intelligent mail content filling method described above.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in an electronic device to implement the above-mentioned mail content intelligent filling method.
It can be seen that, in the embodiment of the present invention, the email text of the email sender is element-split according to the preset page elements to obtain at least two element texts, so that fine-grained splitting of the content of the email text can be realized, so that text elements existing in the email text can be more clearly understood, content refinement of template matching of subsequent email texts is ensured, and element objects of each element text are matched with element templates in a preset front-end element template library, so that a page loading template of each element object can be obtained, one-key operation of page visualization is realized, and thus the email content effect of a front-end page can be viewed in real time; secondly, the element content corresponding to the element object which is successfully matched is loaded into the element template by using an interpolation replacement algorithm to obtain first page element content, so that the display content of the element content which is successfully matched or failed in the mail front-end page is obtained in real time, the user can conveniently check the display content, the experience degree of the user is improved, the page template of the element object which is failed in matching is constructed by adopting a custom container, the element object is not limited by the element content of the mail template, a user requirement template element can be generated in a customized manner, the experience of the user is further improved, the element content corresponding to the element object which is failed in matching is loaded into the page template, a second page element content is obtained, and the display content of the element content which is failed in matching in the mail front-end page can be obtained in real time; further, in the embodiment of the present invention, the content of the email page is obtained by integrating the content of the first page element and the content of the second page element, and a final display style of the email text of the email sender on a front-end page can be displayed. Therefore, the method, the device, the electronic equipment and the computer-readable storage medium for intelligently filling the mail content provided by the embodiment of the invention can realize the real-time effect viewing of the mail content and meet the intelligent filling of complex mail content.
Drawings
Fig. 1 is a schematic flow chart of an intelligent filling method for mail content according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of an intelligent mail content filling apparatus according to an embodiment of the present invention;
fig. 3 is a schematic internal structural diagram of an electronic device implementing an intelligent mail content filling method according to an embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides an intelligent filling method for mail content. The execution subject of the mail content intelligent filling method includes, but is not limited to, at least one of electronic devices such as a server and a terminal, which can be configured to execute the method provided by the embodiment of the present invention. In other words, the mail content intelligent filling method may be executed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
Fig. 1 is a schematic flow chart of an intelligent filling method of mail content according to an embodiment of the present invention. In the embodiment of the invention, the intelligent mail content filling method comprises the following steps:
s1, receiving a content loading request of a mail sender, identifying a mail text corresponding to the content loading request, and performing element splitting on the mail text according to preset page elements to obtain at least two element texts.
In the embodiment of the invention, the mail sender refers to a user who transmits file contents in a network transmission mode, the content loading request refers to the determination based on the requirements of different mail senders, for example, the requirement of the mail sender A is to load mail signature contents, the requirement of the mail sender B is to load mail body contents, and the requirement of the mail sender C is to load mail subject contents.
Further, the embodiment of the present invention obtains the mail data in the content loading request by identifying the mail text corresponding to the content loading request, and ensures the matching premise of the subsequent mail template, wherein the mail text refers to text data formed by the mail content in the content loading request.
As an embodiment of the present invention, the identifying a mail text corresponding to the content loading request includes: and acquiring the mail subject, the mail content and the mail signature of the content loading request, and generating a mail text corresponding to the content loading request according to the mail subject, the mail content and the mail signature. The mail subject refers to body description information used for representing the content loading request, such as a notification mail, the mail content refers to body description information used for representing the content loading request, and the mail signature refers to description information used for representing a mail sender corresponding to the content loading request, such as a name, a contact information, and the like.
Further, the mail text is subjected to element splitting according to preset page elements to realize content fine-grained splitting of the mail text, so that text elements existing in the mail text can be known more clearly, and content refinement of template matching of a subsequent mail text is guaranteed, wherein the page elements are set based on a mail format and comprise buttons, text boxes, drop-down boxes, background boxes and the like.
As an embodiment of the present invention, the element splitting is performed on the mail text according to preset page elements to obtain at least two element texts, including: matching the preset page elements with the mail content in the mail text, dividing the successfully matched mail content into element text contents, and generating at least two element texts according to the element text contents, wherein the matching of the page elements and the mail content in the mail text is realized through a character matching algorithm, such as a naive algorithm, a KMP algorithm and the like.
Further, to ensure privacy and security of the element text, the element text may also be stored in a blockchain node.
And S2, extracting the element object of each element text, and matching each element object with an element template in a preset front-end element template library.
In this embodiment of the present invention, the element object refers to text target data in the element text, and is used to characterize a type feature of the element text, and as an embodiment of the present invention, the extracting the element object of each element text includes: acquiring a text field of each element text, determining an element attribute of each element text according to the text field, and identifying an element object of each element text according to the element attribute. The text field refers to structured form data of element content in the element text, and the element attribute refers to a characteristic dimension of the element content in the element text and is used for representing an element type of the element content in the element text.
Furthermore, in the embodiment of the present invention, each element object is matched with an element template in a preset front-end element template library to obtain a page loading template of each element object, so as to implement a one-key operation of page visualization, thereby enabling to view an email content effect of a front-end page in real time. And constructing the preset front-end element template base based on elements sent by the historical mails.
As an embodiment of the present invention, the matching each element object with an element template in a preset front-end element template library includes: converting each element object into a first element vector, and converting each element template in the preset front-end element template library into a second element vector; and calculating the vector similarity of the first element vector and the second element vector, wherein if the vector similarity is greater than a preset threshold value, the element object and the element template are successfully matched, and if the vector similarity is not greater than the preset threshold value, the element object and the element template are unsuccessfully matched. The vector transformation of the first element feature and the second element is realized by a vector transformation algorithm, such as a one-hot algorithm, a word2vec algorithm, and the like. The preset threshold value can be set to 0.8, and can also be set according to the actual service scene
Further, in an optional embodiment of the present invention, the vector similarity between the first element vector and the second element vector is calculated by using the following formula:
wherein R represents vector similarity, AxRepresenting the x-th first element vector, ByAnd representing the y second element vector in the data code table.
And S3, loading the element content corresponding to the successfully matched element object into the element template by adopting an interpolation replacement algorithm to obtain the first page element content.
It should be understood that when the element object and the element template are successfully matched, the element template can be directly used as a page display carrier of the element content corresponding to the element object, so that the embodiment of the invention loads the element content corresponding to the successfully matched element object into the element template by using an interpolation replacement algorithm, so as to obtain the display content of the element content on the page at the front end of the email in real time, thereby facilitating the viewing of a user and improving the experience of the user.
The element content refers to specific information of the element object in the element text, for example, if the element object is a mailer, the element content is specific data of the mailer in the element text, such as a small page, a small Zhao, and the like.
As an embodiment of the present invention, the loading, by using an interpolation replacement algorithm, the element content corresponding to the element object that is successfully matched into the element template to obtain a first page element content includes: and according to the interpolation replacement algorithm, constructing a parameter interpolation thread of the element template, transmitting element coordinates of element contents corresponding to the element objects which are successfully matched into the parameter interpolation thread, and executing the loading of the element contents on the element template through the parameter interpolation thread to obtain first page element contents.
The parameter interpolation thread refers to a task operation unit specially used for element content interpolation, the interpolation replacement algorithm comprises a nearest neighbor method, a bilinear interpolation method and the like, and the parameter interpolation thread is created through a call () method.
Further, in an optional embodiment of the present invention, the loading of the element content in the element template is performed by using the following formula:
where t (x) represents the element content loaded in the element template, x represents the element coordinates of the element content, x0,y0Respectively representing the abscissa and ordinate, x, of the 0 th pixel in the element template1,y1Respectively representing the abscissa and the ordinate of the 1 st pixel point in the element template.
S4, adopting a custom container to construct a page template of the element object which fails to be matched, and loading the element content corresponding to the element object which fails to be matched into the page template to obtain a second page element content.
It should be understood that, when the matching between the element object and the element template fails, it indicates that the element template cannot be directly used as a page display carrier of the element content corresponding to the element object, therefore, in the embodiment of the present invention, a custom container is used to construct a page template of the element object that fails to be matched, and is also used as a page display carrier of the element content of the element object, where the custom container is a tool for automatically compiling a page template, and is compiled through HTML5+ CSS + JavaScript language, and the page carrier of the element object can be automatically compiled through the custom container, so that the element object does not need to be limited by the element content of the mail template, and a user-required template element can be generated in a customized manner, thereby further improving the experience of a user.
As an embodiment of the present invention, the building of the page template of the element object with failed matching by using the custom container includes: and acquiring a page layout event of the element object which fails to be matched, and transmitting the page layout event to the custom container so as to construct a page template of the element object by using the custom container according to the page layout event, wherein the page layout event comprises an element style, an element size, an element color and the like of the element object.
Furthermore, the element content corresponding to the element object which fails to be matched is loaded into the page template to obtain the element content of the second page, so that the display content of the element content on the page at the front end of the mail is obtained in real time, the user can conveniently check the display content, and the user experience is improved. It should be noted that the loading of the element content corresponding to the element object that fails to be matched is the same as the loading principle of the element content corresponding to the element object that succeeds in matching, and further details are not described here.
S5, integrating the first page element content and the second page element content to obtain the email page content.
In this embodiment of the present invention, the integrating the content of the first page element and the content of the second page element into an email page to obtain the content of the email page includes: configuring a layout mode of the first page element content and the second page element content on a front page, constructing element styles of the first page element content and the second page element content on the front page, and generating the email page content according to the layout mode and the element styles.
The layout mode refers to position information layout of the first page element content and the second page element content on a front page, such as vertical layout, associated layout, half-column layout and the like, and the element style refers to display information of the first page element content and the second page element content on the front page, such as size, font, color, definition and the like.
It can be seen that, in the embodiment of the present invention, the email text of the email sender is element-split according to the preset page elements to obtain at least two element texts, so that fine-grained splitting of the content of the email text can be realized, so that text elements existing in the email text can be more clearly understood, content refinement of template matching of subsequent email texts is ensured, and element objects of each element text are matched with element templates in a preset front-end element template library, so that a page loading template of each element object can be obtained, one-key operation of page visualization is realized, and thus the email content effect of a front-end page can be viewed in real time; secondly, the element content corresponding to the element object which is successfully matched is loaded into the element template by using an interpolation replacement algorithm to obtain first page element content, so that the display content of the element content which is successfully matched or failed in the mail front-end page is obtained in real time, the user can conveniently check the display content, the experience degree of the user is improved, the page template of the element object which is failed in matching is constructed by adopting a custom container, the element object is not limited by the element content of the mail template, a user requirement template element can be generated in a customized manner, the experience of the user is further improved, the element content corresponding to the element object which is failed in matching is loaded into the page template, a second page element content is obtained, and the display content of the element content which is failed in matching in the mail front-end page can be obtained in real time; further, in the embodiment of the present invention, the content of the email page is obtained by integrating the content of the first page element and the content of the second page element, and a final display style of the email text of the email sender on a front-end page can be displayed. Therefore, the intelligent filling method for the mail content provided by the embodiment of the invention can realize the real-time effect viewing of the mail content and meet the intelligent filling of the complex mail content.
Fig. 2 is a functional block diagram of the intelligent mail content filling apparatus according to the present invention.
The mail content intelligent filling device 100 of the invention can be installed in electronic equipment. According to the realized functions, the intelligent mail content filling device can comprise a mail text splitting module 101, an element object matching module 102, an element content generating module 103 and a mail content generating module 104. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and can perform a fixed function, and is stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the mail text splitting module 101 is configured to receive a content loading request of a mail sender, identify a mail text corresponding to the content loading request, and perform element splitting on the mail text according to a preset page element to obtain at least two element texts;
the element object matching module 102 is configured to extract an element object of each element text, and match each element object with an element template in a preset front-end element template library;
the element content generating module 103 is configured to load, by using an interpolation replacement algorithm, the element content corresponding to the successfully matched element object into the element template to obtain a first page element content;
the element content generating module 103 is further configured to construct a page template of the element object that fails to be matched by using a custom container, and load the element content corresponding to the element object that fails to be matched into the page template to obtain a second page element content;
the email content generating module 104 is configured to perform email page integration on the first page element content and the second page element content to obtain email page content.
In detail, when the modules in the intelligent mail content filling apparatus 100 according to the embodiment of the present invention are used, the same technical means as the intelligent mail content filling method described in fig. 1 above are adopted, and the same technical effects can be produced, which is not described herein again.
Fig. 3 is a schematic structural diagram of an electronic device 1 for implementing the intelligent mail content filling method according to the present invention.
The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may further include a computer program, such as a mail content intelligent filling program, stored in the memory 11 and executable on the processor 10.
In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, and includes one or more Central Processing Units (CPUs), a microprocessor, a digital Processing chip, a graphics processor, a combination of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device 1, connects various components of the electronic device 1 by using various interfaces and lines, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules (e.g., executing a mail content intelligent filling program, etc.) stored in the memory 11 and calling data stored in the memory 11.
The memory 11 includes at least one type of readable storage medium including flash memory, removable hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only to store application software installed in the electronic device 1 and various types of data, such as codes of mail content smart filling programs, etc., but also to temporarily store data that has been output or is to be output.
The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
The communication interface 13 is used for communication between the electronic device 1 and other devices, and includes a network interface and an employee interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are generally used for establishing a communication connection between the electronic device 1 and other electronic devices 1. The employee interface may be a Display (Display), an input unit, such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visual staff interface.
Fig. 3 shows only the electronic device 1 with components, and it will be understood by those skilled in the art that the structure shown in fig. 3 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
It is to be understood that the embodiments described are for illustrative purposes only and that the scope of the claimed invention is not limited to this configuration.
The intelligent mail content filling program stored in the memory 11 of the electronic device 1 is a combination of a plurality of computer programs, and when running in the processor 10, can realize:
receiving a content loading request of a mail sender, identifying a mail text corresponding to the content loading request, and performing element splitting on the mail text according to preset page elements to obtain at least two element texts;
extracting an element object of each element text, and matching each element object with an element template in a preset front-end element template library;
loading the element content corresponding to the successfully matched element object into the element template by adopting an interpolation replacement algorithm to obtain first page element content;
adopting a custom container to construct a page template of the element object which fails to be matched, and loading element content corresponding to the element object which fails to be matched into the page template to obtain second page element content;
and integrating the first page element content and the second page element content to obtain the email page content.
Specifically, the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer program, which is not described herein again.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a non-volatile computer-readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
The present invention also provides a computer-readable storage medium, storing a computer program which, when executed by a processor of an electronic device 1, may implement:
receiving a content loading request of a mail sender, identifying a mail text corresponding to the content loading request, and performing element splitting on the mail text according to preset page elements to obtain at least two element texts;
extracting an element object of each element text, and matching each element object with an element template in a preset front-end element template library;
loading the element content corresponding to the successfully matched element object into the element template by adopting an interpolation replacement algorithm to obtain first page element content;
adopting a custom container to construct a page template of the element object which fails to be matched, and loading element content corresponding to the element object which fails to be matched into the page template to obtain second page element content;
and integrating the first page element content and the second page element content to obtain the email page content.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The embodiment of the invention can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims (10)
1. An intelligent mail content filling method is characterized by comprising the following steps:
receiving a content loading request of a mail sender, identifying a mail text corresponding to the content loading request, and performing element splitting on the mail text according to preset page elements to obtain at least two element texts;
extracting an element object of each element text, and matching each element object with an element template in a preset front-end element template library;
loading the element content corresponding to the successfully matched element object into the element template by adopting an interpolation replacement algorithm to obtain first page element content;
adopting a custom container to construct a page template of the element object which fails to be matched, and loading element content corresponding to the element object which fails to be matched into the page template to obtain second page element content;
and integrating the first page element content and the second page element content to obtain the email page content.
2. The intelligent mail content filling method according to claim 1, wherein the element splitting of the mail text according to preset page elements to obtain at least two element texts comprises:
and matching the preset page elements with the mail content in the mail text, dividing the successfully matched mail content into element text contents, and generating at least two element texts according to the element text contents.
3. The method for intelligent population of mail content according to claim 1, wherein said extracting an element object for each of said element texts comprises:
acquiring a text field of each element text;
determining the element attribute of each element text according to the text field;
and identifying an element object of each element text according to the element attribute.
4. The intelligent mail content filling method according to claim 1, wherein the matching of each element object with an element template in a preset front-end element template library comprises:
converting each element object into a first element vector, and converting each element template in the preset front-end element template library into a second element vector;
calculating the vector similarity of the first element vector and the second element vector;
if the vector similarity is larger than a preset threshold value, the element object and the element template are successfully matched;
and if the vector similarity is not greater than the preset threshold, the element object and the element template are failed to be matched.
5. The method for intelligently filling mail contents according to claim 1, wherein the loading element contents corresponding to the successfully matched element objects into the element template by using an interpolation replacement algorithm to obtain first page element contents comprises:
according to the interpolation substitution algorithm, constructing a parameter interpolation thread of the element template;
and transmitting the element coordinates of the element content corresponding to the successfully matched element object to the parameter interpolation thread, so as to execute the loading of the element content on the element template through the parameter interpolation thread, and obtain the first page element content.
6. The intelligent mail content filling method according to claim 1, wherein the building of the page template of the element object that fails to be matched using the custom container:
and acquiring a page layout event of the element object which fails to be matched, and transmitting the page layout event to the custom container so as to construct a page template of the element object by using the custom container according to the page layout event.
7. The method for intelligently filling mail contents according to any one of claims 1 to 6, wherein the integrating the first page element contents and the second page element contents into the mail page to obtain the mail page contents comprises:
configuring a layout mode of the first page element content and the second page element content on a front page, and constructing element styles of the first page element content and the second page element content on the front page;
and generating the content of the email page according to the layout mode and the element style.
8. An intelligent mail content filling device, characterized in that the device comprises:
the mail text splitting module is used for receiving a content loading request of a mail sender, identifying a mail text corresponding to the content loading request, and performing element splitting on the mail text according to preset page elements to obtain at least two element texts;
the element object matching module is used for extracting an element object of each element text and matching each element object with an element template in a preset front-end element template library;
the element content generating module is used for loading the element content corresponding to the successfully matched element object into the element template by adopting an interpolation substitution algorithm to obtain a first page element content;
the element content generating module is further configured to construct a page template of the element object that fails to be matched by using a custom container, and load the element content corresponding to the element object that fails to be matched into the page template to obtain a second page element content;
and the mail content generating module is used for integrating the first page element content and the second page element content to obtain the mail page content.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of intelligent population of mail content as recited in any of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, implements the method for intelligent population of mail content according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111519154.8A CN114186540A (en) | 2021-12-13 | 2021-12-13 | Mail content intelligent filling method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111519154.8A CN114186540A (en) | 2021-12-13 | 2021-12-13 | Mail content intelligent filling method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114186540A true CN114186540A (en) | 2022-03-15 |
Family
ID=80604736
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111519154.8A Pending CN114186540A (en) | 2021-12-13 | 2021-12-13 | Mail content intelligent filling method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114186540A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116308516A (en) * | 2023-05-24 | 2023-06-23 | 广州钛动科技股份有限公司 | E-mail marketing content generation method and system based on public cloud AI technology |
-
2021
- 2021-12-13 CN CN202111519154.8A patent/CN114186540A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116308516A (en) * | 2023-05-24 | 2023-06-23 | 广州钛动科技股份有限公司 | E-mail marketing content generation method and system based on public cloud AI technology |
CN116308516B (en) * | 2023-05-24 | 2023-08-25 | 广州钛动科技股份有限公司 | E-mail marketing content generation method and system based on public cloud AI technology |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112052370A (en) | Message generation method and device, electronic equipment and computer readable storage medium | |
CN113704614A (en) | Page generation method, device, equipment and medium based on user portrait | |
CN113868528A (en) | Information recommendation method and device, electronic equipment and readable storage medium | |
CN114491047A (en) | Multi-label text classification method and device, electronic equipment and storage medium | |
CN114708461A (en) | Multi-modal learning model-based classification method, device, equipment and storage medium | |
CN113806434A (en) | Big data processing method, device, equipment and medium | |
CN114781832A (en) | Course recommendation method and device, electronic equipment and storage medium | |
CN113868529A (en) | Knowledge recommendation method and device, electronic equipment and readable storage medium | |
CN111985194A (en) | Data storage method and device, electronic equipment and storage medium | |
CN115600644A (en) | Multitasking method and device, electronic equipment and storage medium | |
CN114186540A (en) | Mail content intelligent filling method and device, electronic equipment and storage medium | |
CN114003704A (en) | Method and device for creating designated tag guest group, electronic equipment and storage medium | |
CN113722533A (en) | Information pushing method and device, electronic equipment and readable storage medium | |
CN112528984A (en) | Image information extraction method, device, electronic equipment and storage medium | |
CN112561486A (en) | Automatic case setting method and device, electronic equipment and storage medium | |
CN116542221A (en) | PDF file analysis preview method, device, equipment and storage medium | |
CN115982454A (en) | User portrait based questionnaire pushing method, device, equipment and storage medium | |
CN115496166A (en) | Multitasking method and device, electronic equipment and storage medium | |
CN115033605A (en) | Data query method and device, electronic equipment and storage medium | |
CN114942855A (en) | Interface calling method and device, electronic equipment and storage medium | |
CN115174555A (en) | File transmission method and device, electronic equipment and storage medium | |
CN115082736A (en) | Garbage identification and classification method and device, electronic equipment and storage medium | |
CN114547011A (en) | Data extraction method and device, electronic equipment and storage medium | |
CN113822215A (en) | Equipment operation guide file generation method and device, electronic equipment and storage medium | |
CN113486646A (en) | Product report issuing method and device, electronic equipment and readable storage medium |
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 |