CN117576262A - Method and device for generating activity poster, storage medium and electronic device - Google Patents

Method and device for generating activity poster, storage medium and electronic device Download PDF

Info

Publication number
CN117576262A
CN117576262A CN202311656843.2A CN202311656843A CN117576262A CN 117576262 A CN117576262 A CN 117576262A CN 202311656843 A CN202311656843 A CN 202311656843A CN 117576262 A CN117576262 A CN 117576262A
Authority
CN
China
Prior art keywords
target
poster
keywords
initial
keyword
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311656843.2A
Other languages
Chinese (zh)
Inventor
郭慧祎
罗宏辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dalian Branch China Construction Bank Co ltd
Original Assignee
Dalian Branch China Construction Bank Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dalian Branch China Construction Bank Co ltd filed Critical Dalian Branch China Construction Bank Co ltd
Priority to CN202311656843.2A priority Critical patent/CN117576262A/en
Publication of CN117576262A publication Critical patent/CN117576262A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • G06F40/216Parsing using statistical methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Probability & Statistics with Applications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a method and a device for generating an activity poster, a storage medium and an electronic device, wherein the method comprises the following steps: extracting initial keywords from the received activity rule file; performing secondary screening on the initial keywords according to a target screening mode to obtain target keywords; determining target poster elements matched with the target keywords from a target database, wherein the target database stores poster elements corresponding to a plurality of keywords respectively; and generating an active poster based on the target poster element. The method solves the problem that the generation of the active poster in the related technology cannot generate the poster in time under the condition that a large number of poster generation requirements exist due to the fact that the generation of the active poster has high participation requirements on the developer, and further achieves the effect of improving the response speed to the generation of the poster.

Description

Method and device for generating activity poster, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a method and a device for generating an activity poster, a storage medium and an electronic device.
Background
In the traditional poster generation mode, a developer is required to manually select and assemble elements of the poster according to a main body of an activity corresponding to the poster, so that when a large number of poster generation requirements exist, the workload of the developer is large, the poster cannot be generated in time, and the timeliness of the activity corresponding to the poster is influenced.
In view of the above problems in the related art, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a storage medium and an electronic device for generating an active poster, which at least solve the problem that the generation of the active poster in the related art cannot generate the poster in time under the condition that a large number of poster generation requirements exist due to high participation requirements of the developer.
According to an embodiment of the present invention, there is provided a method for generating an activity poster, including: extracting initial keywords from the received activity rule file; performing secondary screening on the initial keywords according to a target screening mode to obtain target keywords; determining target poster elements matched with the target keywords from a target database, wherein the target database stores poster elements corresponding to a plurality of keywords respectively; and generating an active poster based on the target poster element.
In one exemplary embodiment, extracting the initial keyword from the received activity rule file includes: word segmentation is carried out on characters included in the activity rule file, and a plurality of target word segmentation is obtained; and screening the initial keywords of a plurality of categories from the target segmentation words according to the keyword types, wherein the categories comprise flow words and non-flow words.
In an exemplary embodiment, performing secondary screening on the initial keywords according to a target screening manner, to obtain target keywords includes: determining screening modes corresponding to each category; and screening the keywords of each category according to a screening mode corresponding to the category of the keywords included in the initial keywords, so as to obtain the target keywords.
In an exemplary embodiment, screening the keywords of each category according to a screening manner corresponding to the category of the keywords included in the initial keyword, to obtain the target keyword includes: sorting first keywords of the process word classes included in the initial keywords according to the time sequence of the first keywords in the activity rule file, and screening out a first number of second keywords of the process word classes based on a sorting result; calculating and outputting a second number of fourth keywords of the non-flow word class meeting a preset condition according to a TF-IDF algorithm for the third keywords of the non-flow word class included in the initial keywords; presenting the second keyword and the fourth keyword on a target display interface; and determining the target keyword from the second keyword and the fourth keyword based on receiving a selection instruction.
In one exemplary embodiment, determining, from a target database, a target poster element that matches the target keyword includes: the following operations are executed for a fifth keyword included in the target keyword to determine the target poster element, wherein the fifth keyword is any keyword included in the target keyword: determining initial poster elements corresponding to the fifth keywords from the target database; and under the condition that a plurality of initial poster elements are provided, determining the target poster elements matched with the fifth keywords from the plurality of initial poster elements according to the attribute information of the initial poster elements.
In an exemplary embodiment, determining the target poster element matching the fifth keyword from a plurality of the initial poster elements according to attribute information of the initial poster elements includes at least one of: determining the target poster elements matched with the fifth keywords according to the selection heat of each initial poster element; determining the target poster elements matched with the fifth keywords according to the generation time of each initial poster element; and determining the target poster elements matched with the fifth keywords according to the matching degree of the type of each initial poster element and the current activity.
In an exemplary embodiment, after determining the target poster element matching the target keyword from the target database, the method further comprises: and updating the attribute information of the target poster element.
In one exemplary embodiment, after generating the activity poster based on the target poster element, the method further comprises: presenting the activity poster on a target display interface; and adjusting the content in a target area displayed in the active poster based on the received adjustment instruction, wherein the target area is an area allowing content adjustment.
According to another embodiment of the present invention, there is provided an activity poster generating apparatus including: the extraction module is used for extracting initial keywords from the received activity rule file; the screening module is used for carrying out secondary screening on the initial keywords according to a target screening mode to obtain target keywords; the determining module is used for determining target poster elements matched with the target keywords from a target database, wherein the target database stores poster elements corresponding to a plurality of keywords respectively; and the generation module is used for generating an activity poster based on the target poster element.
According to a further embodiment of the invention, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the invention, because the keywords are automatically extracted and screened, the manual participation can be reduced, and the efficiency of generating the active poster is improved, so that the problem that the poster cannot be generated in time under the condition that a large number of poster generating requirements exist due to the fact that the participation degree requirements of the generating of the active poster on the developing personnel are high in the related art can be solved, and the effect of improving the response speed to the generation of the poster is achieved.
Drawings
Fig. 1 is a hardware configuration block diagram of a generation method of an active poster according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of generating an active poster according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of components according to an embodiment of the invention;
fig. 4 is a block diagram of a structure of an active poster generating apparatus according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the operation on a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a method for generating an active poster according to an embodiment of the present invention. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for generating an active poster in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104, thereby performing various functional applications and data processing, that is, implementing the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a method for generating an active poster is provided, fig. 2 is a flowchart of a method for generating an active poster according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
step S202, extracting initial keywords from the received activity rule file;
step S204, performing secondary screening on the initial keywords according to a target screening mode to obtain target keywords;
step S206, determining target poster elements matched with the target keywords from a target database, wherein the target database stores poster elements corresponding to a plurality of keywords respectively;
step S208, generating an active poster based on the target poster element.
In step S202, the method of extracting the initial keyword includes, but is not limited to:
tf-IDF (Term Frequency-inverse document Frequency): the weight of the keywords is calculated according to word frequency and inverse document frequency, and is commonly used in text mining and information retrieval.
Textrank (text ranking): and constructing a graph through the co-occurrence relation among the words based on a sequencing algorithm of the graph, and determining the keywords by using the node importance on the graph.
Lda (Latent Dirichlet Allocation, latent dirichlet distribution): a topic model can identify implicit topics from text and extract keywords.
4. Rule-based method: keywords are extracted by setting rules such as part of speech, word frequency, word length, etc.
5. A machine learning based method: machine learning algorithms such as classification, clustering, etc. may be used to identify keywords in text.
6. Deep learning-based method: for example, keywords in text are obtained by training a neural network using Word2Vec, BERT, etc. models.
Sources of the activity rule file include, but are not limited to: the user directly sends the rules, and the equipment automatically searches the corresponding rules according to the activity theme input by the user and sends the rules.
Through the steps, because the keywords are automatically extracted and screened, the manual participation can be reduced, the efficiency of generating the active poster is improved, the problem that the poster cannot be generated in time under the condition that a large number of poster generating requirements exist due to the fact that the participation degree of the developing personnel is high in the generation of the active poster in the related technology is solved, and the response speed to the generation of the poster is improved.
Wherein, the execution main body of the steps comprises but is not limited to: an application, applet, or intelligent terminal device (e.g., a cell phone, computer, etc.) that may perform the above operations.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
In an alternative embodiment, extracting the initial keyword from the received activity rule file includes: word segmentation is carried out on characters included in the activity rule file, and a plurality of target word segmentation is obtained; and screening the initial keywords of a plurality of categories from the target segmentation words according to the keyword types, wherein the categories comprise flow words and non-flow words.
In the above steps, the word segmentation method includes, but is not limited to:
1. dictionary-based methods: and matching the text by using a pre-built dictionary, and cutting out words which can be matched into the dictionary in the text.
2. Rule-based method: segmentation is performed according to linguistic rules and grammatical relations between words, such as segmentation methods based on part-of-speech tagging.
3. Statistical-based methods: and determining the segmentation position of the words by counting the frequency, co-occurrence relation and other information of the words in the text.
4. A machine learning based method: machine learning algorithms such as classification, clustering, etc. are used to identify word boundaries in text, such as conditional random fields, etc.
5. Deep learning-based method: the segmentation rules of words in the text are learned by using neural network models, such as a cyclic neural network, a long-short-time memory network, a transducer and the like.
The flow words include, but are not limited to: entry, retrieval, verification, etc.
In an alternative embodiment, performing secondary screening on the initial keywords according to a target screening manner, to obtain target keywords includes: determining screening modes corresponding to each category; and screening the keywords of each category according to a screening mode corresponding to the category of the keywords included in the initial keywords, so as to obtain the target keywords.
In the above step, determining the screening mode corresponding to each category includes, but is not limited to: and screening the flow words in a mode of matching the flow words contained in the target database, and screening the non-flow words by adopting an F-IDF algorithm.
In an optional embodiment, screening the keywords of each category according to a screening manner corresponding to the category of the keywords included in the initial keyword, to obtain the target keyword includes: sorting first keywords of the process word classes included in the initial keywords according to the time sequence of the first keywords in the activity rule file, and screening out a first number of second keywords of the process word classes based on a sorting result; calculating and outputting a second number of fourth keywords of the non-flow word class meeting a preset condition according to a TF-IDF algorithm for the third keywords of the non-flow word class included in the initial keywords; presenting the second keyword and the fourth keyword on a target display interface; and determining the target keyword from the second keyword and the fourth keyword based on receiving a selection instruction.
The prior art related to this embodiment is briefly described below:
the most core idea of the TF-ID algorithm is: the more times a word appears in a file, the higher its importance; but the higher the frequency of occurrence in the corpus, the less important it is instead. For example, there are 10 articles, 2 financial articles, 5 technologies, 3 entertainment, and for the term "stock" it is more frequent in the financial articles but less in entertainment and technology, which means that the term "stock" can better "distinguish" the categories of articles, so it is of higher importance; for the word "message", it may appear in all articles, so it is simply a high frequency word, not an important word. In TF-IDF, word frequency (TF) represents the frequency of occurrence of keywords in text. Tf=number of occurrences of term w in a class/number of all terms in the class, reverse document frequency (IDF) =log (total number of documents in corpus/number of documents containing term w+1), classical TF-IDF algorithm is not problematic for extraction of news keywords, but for extraction of activity rule keywords in the system results in loss of conventional activity flow keywords. Thus, in this scheme, the TF-ID algorithm is employed only for the determination of keywords in non-process words.
In an alternative embodiment, the template component tags and the template activity tags corresponding to the activities are stored in the database simultaneously. The user can input the activity rule of the corresponding activity of the activity poster before automatically generating the activity poster by application, and the application extracts the morpheme of the non-flow word in the activity rule text and outputs the processed keyword. The user may adjust the output keywords, delete the invalid keywords, supplement the valid keywords, and submit the adjusted final keywords, where the method of applying morpheme extraction to the active rule text and outputting the processed keywords includes but is not limited to: extracting and outputting keywords through a TF-IDF algorithm, wherein the TF-IDF algorithm can calculate the importance of words in the activity rule text relative to the corpus in the database, calculate the frequency of each word in the rule text, weight each word according to the reciprocal of the frequency of each word in the whole database to obtain the score corresponding to each word, finally, select the preset number of words with the highest score as keywords to output, and add the keywords newly added by a user to the database each time.
In the above step, the first number determining method includes, but is not limited to: automatically determining according to the general flow of the activity corresponding to the activity poster, for example, determining that the first number is 8 in the case that the number of steps of the general flow of the activity corresponding to the activity poster is 8; manually setting; the number of steps of the general flow of the activity corresponding to the activity poster is automatically queried, then the range is defined according to the number of steps of the general flow, the user selects in the range, for example, in the case that the number of steps of the general flow of the activity corresponding to the activity poster is 8 steps, the user is provided with a selection range of 5 to 11 steps, the user determines the first number and the like. Screening out a first number of second keywords of the process word class based on the ranking result includes, but is not limited to: and analyzing the first keywords arranged according to the appearance time by adopting natural language processing technology such as word segmentation, part-of-speech tagging and the like to identify flow operation and elements in the first keywords. And matching the most suitable flow elements from the flow library according to the flow operation and the elements. The matching method includes but is not limited to: and initializing flow parameters according to the matched flow elements based on vocabulary similarity matching, semantic similarity matching and the like, and determining second keywords of the flow word class. The selection instructions include, but are not limited to: the user adds, deletes, modifies one or more of the second keyword, the fourth keyword, and so on according to the transmitting.
In an alternative embodiment, determining the target poster element from the target database that matches the target keyword comprises: the following operations are executed for a fifth keyword included in the target keyword to determine the target poster element, wherein the fifth keyword is any keyword included in the target keyword: determining initial poster elements corresponding to the fifth keywords from the target database; and under the condition that a plurality of initial poster elements are provided, determining the target poster elements matched with the fifth keywords from the plurality of initial poster elements according to the attribute information of the initial poster elements.
In the above steps, the contents stored in the target database include, but are not limited to: the attribute information of the initial poster element includes, but is not limited to: the content of the activity label corresponding to the poster element comprises but is not limited to: campaign types, (e.g., sales campaigns, public welfare campaigns), campaign scenarios (e.g., healthcare sales, financial product sales, commodity sales), etc.
In an optional embodiment, determining the target poster element matching the fifth keyword from a plurality of initial poster elements according to attribute information of the initial poster elements includes at least one of: determining the target poster elements matched with the fifth keywords according to the selection heat of each initial poster element; determining the target poster elements matched with the fifth keywords according to the generation time of each initial poster element; and determining the target poster elements matched with the fifth keywords according to the matching degree of the type of each initial poster element and the current activity.
In an alternative embodiment, after determining the target poster element matching the target keyword from the target database, the method further comprises: and updating the attribute information of the target poster element.
In the above step, updating the attribute information of the target poster element includes, but is not limited to: comparing the target poster element corresponding to the activity with the initial poster element, updating an activity label corresponding to the target poster element in a database and a weight corresponding to the activity label, and adding the target poster element newly added by a user into the target database, thereby realizing optimization of the target database.
In an alternative embodiment, after generating an active poster based on the target poster element, the method further comprises: presenting the activity poster on a target display interface; and adjusting the content in a target area displayed in the active poster based on the received adjustment instruction, wherein the target area is an area allowing content adjustment.
In the above step, the adjustment instruction includes, but is not limited to: the User performs drag modification, component selection, UI (User Interface) detail adjustment, and the like on the flow in the poster.
The embodiment also provides a device for generating the activity poster, which is used for realizing the embodiment and the preferred implementation, and the description is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The present invention is described in detail below with reference to specific embodiments, in which the application scenario of the present invention is extended to the field of activity applet generation, and description is made below using applet generation for registration activity as an example:
step one: the user creates the activity rule in the conventional activity parameter configuration, activity rule management module, newly built activity rule file.
Step two: the user creates an activity authorization document in the conventional activity parameter configuration-authorization information management module-newly created authorization document.
Step three: binding the activity rule and activity authorization document selected by the user with the user account information.
Step four: and searching components and processes matched with the activity rules and the activity authorization documents configured by the user in a database, and displaying.
Step five: the user may make further adjustments to the components, e.g., modify background colors, font colors, titles, hints, pop-up types for different components, and save the modified component content (e.g., component id, phase id, activity id, group of guests, etc.) in a database.
In the above steps, fig. 3 is a schematic diagram of components in the component library, as shown in fig. 3, according to an embodiment of the present invention, including but not limited to: a background zone comprising: an activity background map, an activity main title (optional), an activity sub-title (optional); a side supplemental region comprising: an activity rule component and a prize display component; a middle operating zone comprising: the system comprises an entry component (optional), an activity operation component and a benefit operation component, wherein the above components only exist one presentation form at the same time for a single user; bottom rule supplement: showing the activity participation in a brief step or procedure. For example, if the activity is an activity of taking rewards after the registered asset reaches the standard, an optional background area, a side supplement area, a middle operation area registration component (registration node), an activity operation component (a stage before the registered activity reaches the standard), a benefit operation area (user clicks to take after the registered activity reaches the standard), and a bottom rule supplement area (different areas of the bottom rule supplement area can be selected manually) are displayed.
Through the steps, according to the activity rules and the authorization documents input by the user, corresponding program templates are matched from the database, so that the quick configuration generation of the activity applet can be realized, meanwhile, the fine management of the applet is supported, and the activity conventional parameters can be flexibly configured and modified, thereby being convenient for transplanting and multiplexing. The invention can be configured by combining the component hierarchy with the activity content, the component configuration and the activity flow are matched in the same type, and multiple adjustment and optimization of the picture, the text and the UI details in the component are supported, so that the invention has stronger flexibility. Meanwhile, the source of the components or the processes in the database is activity development data with strong practicability in the industry, so that the components or the processes in the database can meet the requirements of most conventional activity configuration, and the activity rules and the authorized documents input by the user are normalized, so that great manpower, material resources and time resources are saved for the development of the activity applet.
Fig. 4 is a block diagram of a generation apparatus of an activity poster according to an embodiment of the present invention, as shown in fig. 4, the apparatus comprising: an extracting module 42, configured to extract an initial keyword from the received activity rule file; the screening module 44 is configured to perform secondary screening on the initial keyword according to a target screening manner to obtain a target keyword; a determining module 46, configured to determine target poster elements that match the target keywords from a target database, where the target database stores poster elements corresponding to the plurality of keywords respectively; a generating module 48 is configured to generate an active poster based on the target poster element.
In an alternative embodiment, the extraction module 42 includes: the word segmentation unit is used for segmenting the characters included in the activity rule file to obtain a plurality of target word segments; the first screening unit is used for screening the initial keywords of a plurality of categories from the target word according to the keyword types, wherein the categories comprise flow words and non-flow words.
In an alternative embodiment, the screening module 44 includes: the determining unit is used for determining screening modes corresponding to each category; and the second screening unit is used for screening the keywords of each category according to a screening mode corresponding to the category of the keywords included in the initial keywords to obtain the target keywords.
In an alternative embodiment, the second screening unit comprises: a screening subunit, configured to sort, according to a time sequence in which the first keyword appears in the activity rule file, first keywords of the process word class included in the initial keyword, and screen a first number of second keywords of the process word class based on a sorting result; an output subunit, configured to calculate and output, according to a TF-IDF algorithm, a second number of fourth keywords of the non-flow word class that meet a predetermined condition, for the third keywords of the non-flow word class included in the initial keyword; a display subunit, configured to present the second keyword and the fourth keyword on a target display interface; and the first determination subunit is used for determining the target keyword from the second keyword and the fourth keyword based on receiving a selection instruction.
In an alternative embodiment, the determination module 46 includes: the execution unit is used for executing the following operations aiming at a fifth keyword included in the target keyword to determine the target poster element, wherein the fifth keyword is any keyword included in the target keyword: determining initial poster elements corresponding to the fifth keywords from the target database; and under the condition that a plurality of initial poster elements are provided, determining the target poster elements matched with the fifth keywords from the plurality of initial poster elements according to the attribute information of the initial poster elements.
In an alternative embodiment, the execution unit includes at least one of:
a second determining subunit, configured to determine, according to the selection heat of each initial poster element, the target poster element that matches the fifth keyword; a third determining subunit, configured to determine, according to a generation time of each initial poster element, the target poster element that matches the fifth keyword; and a fourth determining subunit, configured to determine, according to the matching degree between the type of each initial poster element and the current activity, the target poster element that matches the fifth keyword.
In an alternative embodiment, the apparatus further comprises: and the updating module is used for updating the attribute information of the target poster element after determining the target poster element matched with the target keyword from the target database.
In an alternative embodiment, the apparatus further comprises: the display module is used for presenting the activity poster on a target display interface after the activity poster is generated based on the target poster element; and the adjusting module is used for adjusting the content in the target area displayed in the active poster based on the received adjusting instruction, wherein the target area is an area allowing content adjustment.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Embodiments of the present invention also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A method of generating an activity poster, comprising:
extracting initial keywords from the received activity rule file;
performing secondary screening on the initial keywords according to a target screening mode to obtain target keywords;
determining target poster elements matched with the target keywords from a target database, wherein the target database stores poster elements corresponding to a plurality of keywords respectively;
and generating an active poster based on the target poster element.
2. The method of claim 1, wherein extracting the initial keyword from the received activity rule file comprises:
word segmentation is carried out on characters included in the activity rule file, and a plurality of target word segmentation is obtained;
and screening the initial keywords of a plurality of categories from the target segmentation words according to the keyword types, wherein the categories comprise flow words and non-flow words.
3. The method of claim 2, wherein the secondary screening of the initial keywords according to a target screening manner includes:
determining screening modes corresponding to each category;
and screening the keywords of each category according to a screening mode corresponding to the category of the keywords included in the initial keywords, so as to obtain the target keywords.
4. The method of claim 3, wherein the step of screening the keywords of each category according to a screening manner corresponding to the category of the keywords included in the initial keyword, respectively, to obtain the target keyword includes:
sorting first keywords of the process word classes included in the initial keywords according to the time sequence of the first keywords in the activity rule file, and screening out a first number of second keywords of the process word classes based on a sorting result;
calculating and outputting a second number of fourth keywords of the non-flow word class meeting a preset condition according to a TF-IDF algorithm for the third keywords of the non-flow word class included in the initial keywords;
presenting the second keyword and the fourth keyword on a target display interface;
and determining the target keyword from the second keyword and the fourth keyword based on receiving a selection instruction.
5. The method of claim 1, wherein determining, from a target database, target poster elements that match the target keywords comprises:
the following operations are executed for a fifth keyword included in the target keyword to determine the target poster element, wherein the fifth keyword is any keyword included in the target keyword:
determining initial poster elements corresponding to the fifth keywords from the target database;
and under the condition that a plurality of initial poster elements are provided, determining the target poster elements matched with the fifth keywords from the plurality of initial poster elements according to the attribute information of the initial poster elements.
6. The method of claim 5, wherein determining the target poster element matching the fifth keyword from a plurality of the initial poster elements according to the attribute information of the initial poster elements comprises at least one of:
determining the target poster elements matched with the fifth keywords according to the selection heat of each initial poster element;
determining the target poster elements matched with the fifth keywords according to the generation time of each initial poster element;
and determining the target poster elements matched with the fifth keywords according to the matching degree of the type of each initial poster element and the current activity.
7. The method of claim 1, wherein after determining a target poster element from a target database that matches the target keyword, the method further comprises:
and updating the attribute information of the target poster element.
8. The method of claim 1, wherein after generating an active poster based on the target poster element, the method further comprises:
presenting the activity poster on a target display interface;
and adjusting the content in a target area displayed in the active poster based on the received adjustment instruction, wherein the target area is an area allowing content adjustment.
9. An activity poster generation apparatus, comprising:
the extraction module is used for extracting initial keywords from the received activity rule file;
the screening module is used for carrying out secondary screening on the initial keywords according to a target screening mode to obtain target keywords;
the determining module is used for determining target poster elements matched with the target keywords from a target database, wherein the target database stores poster elements corresponding to a plurality of keywords respectively;
and the generation module is used for generating an activity poster based on the target poster element.
10. A computer readable storage medium, characterized in that a computer program is stored in the computer readable storage medium, wherein the computer program, when being executed by a processor, implements the steps of the method according to any of the claims 1 to 8.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 8 when the computer program is executed.
CN202311656843.2A 2023-12-05 2023-12-05 Method and device for generating activity poster, storage medium and electronic device Pending CN117576262A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311656843.2A CN117576262A (en) 2023-12-05 2023-12-05 Method and device for generating activity poster, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311656843.2A CN117576262A (en) 2023-12-05 2023-12-05 Method and device for generating activity poster, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN117576262A true CN117576262A (en) 2024-02-20

Family

ID=89864115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311656843.2A Pending CN117576262A (en) 2023-12-05 2023-12-05 Method and device for generating activity poster, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN117576262A (en)

Similar Documents

Publication Publication Date Title
US10896212B2 (en) System and methods for automating trademark and service mark searches
CN111881307B (en) Presentation generation method and device, computer equipment and storage medium
US12039447B2 (en) Information processing method and terminal, and computer storage medium
CN111177569B (en) Recommendation processing method, device and equipment based on artificial intelligence
CN108536852B (en) Question-answer interaction method and device, computer equipment and computer readable storage medium
US11100124B2 (en) Systems and methods for similarity and context measures for trademark and service mark analysis and repository searches
Wijeratne et al. Emojinet: An open service and api for emoji sense discovery
CN106951494B (en) Information recommendation method and device
US9652719B2 (en) Authoring system for bayesian networks automatically extracted from text
CN111767403B (en) Text classification method and device
CN108874992A (en) The analysis of public opinion method, system, computer equipment and storage medium
CN110309114B (en) Method and device for processing media information, storage medium and electronic device
CN110325986A (en) Article processing method, device, server and storage medium
US12020267B2 (en) Method, apparatus, storage medium, and device for generating user profile
CN112328857B (en) Product knowledge aggregation method and device, computer equipment and storage medium
CN111309916B (en) Digest extracting method and apparatus, storage medium, and electronic apparatus
CN112989208B (en) Information recommendation method and device, electronic equipment and storage medium
CN113011126B (en) Text processing method, text processing device, electronic equipment and computer readable storage medium
CN116681561A (en) Policy matching method and device, electronic equipment and storage medium
CN114255067A (en) Data pricing method and device, electronic equipment and storage medium
Khemani et al. A review on reddit news headlines with nltk tool
CN112200614A (en) Advertisement text implanting and displaying method and corresponding device, equipment and medium
CN117933260A (en) Text quality analysis method, device, equipment and storage medium
CN117576262A (en) Method and device for generating activity poster, storage medium and electronic device
CN110472140B (en) Object word recommendation method and device and electronic equipment

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