A method and device for generating a title, and a device for generating a title

By screening hot topics and keywords, combined with title generation rules and generation models, efficient and attractive titles are generated, which solves the problem of articles being difficult to stand out in massive information and improves the reading rate and quality of articles.

CN114218930BActive Publication Date: 2024-10-22BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202111166929.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2024-10-22
Estimated Expiration
2041-09-30

AI Technical Summary

Technical Problem

In the massive information, it is difficult for article producers to stand out from the numerous articles. The threshold for writing and publishing articles has been lowered, but how to improve the reading rate and quality of articles has become a challenge.

Method used

By filtering out hot topics with hot attributes from the data source, extracting keywords, and generating candidate titles based on these keywords and preset title generation rules, including title reuse rules, title migration rules and title association rules, combined Trained generation models and evaluation metrics improve the timeliness and attractiveness of titles.

Benefits of technology

It improves the efficiency and quality of article title generation, increases the diversity and attractiveness of titles, and thus increases the probability of the article being read.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114218930B_ABST
    Figure CN114218930B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a method and device for generating a title, and a device for generating a title. The method includes: screening out hot topics with hot attributes from a data source, and extracting keywords from the hot topics; generating candidate titles based on the keywords and preset title generation rules, wherein the preset title generation rules include any one or more of the following: title reuse rules, title migration rules, and title association rules. The embodiments of the present invention can generate multi-angle candidate titles from multiple aspects to increase the richness and diversity of the generated candidate titles, thereby providing users with more optional and high-quality candidate titles, thereby improving the efficiency and quality of assisting users in writing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network technology, and in particular to a method and device for generating a title, and a device for generating a title. Background Art

[0002] With the development of network technology, massive amounts of information are gathered in various information flow platforms. The huge number of articles provides readers with almost infinite choices. For article producers, the threshold for writing and publishing has been lowered, but it is becoming increasingly difficult to stand out from the massive amount of articles. Summary of the invention

[0003] The embodiments of the present invention provide a method and device for generating a title, and a device for generating a title, which can improve the efficiency and quality of assisting users in writing, and increase the probability of an article being read.

[0004] In order to solve the above problem, an embodiment of the present invention discloses a title generation method, which includes:

[0005] Filtering hot topics with hot attributes from the data source, and extracting keywords from the hot topics;

[0006] Based on the keywords and preset title generation rules, candidate titles are generated. The preset title generation rules include any one or more of the following: title reuse rules, title migration rules, and title association rules.

[0007] Optionally, the preset title generation rule includes a title reuse rule, and the generating of candidate titles based on the keywords and the preset title generation rule includes:

[0008] Based on the keyword, searching for a first reference article related to the keyword;

[0009] The content of the first reference article is input into a trained first generation model, and a candidate title is outputted through the first generation model.

[0010] Optionally, the method further comprises:

[0011] Generate a candidate abstract and / or a candidate outline according to the content of the first reference article.

[0012] Optionally, the preset title generation rule includes a title migration rule, and the generating of candidate titles based on the keywords and the preset title generation rule includes:

[0013] Identifying a first entity word and an event action word in the keyword;

[0014] Determine a second entity word corresponding to the first entity word;

[0015] Based on the word sequence consisting of the second entity word and the event action word, retrieving a second reference article related to the word sequence;

[0016] Generate a reference title according to the content of the second reference article and a title reuse rule;

[0017] A target entity word in the reference title is determined, and the target entity word in the reference title is replaced with the first entity word to obtain a candidate title.

[0018] Optionally, the preset title generation rule includes a title association rule, and the generating of candidate titles based on the keywords and the preset title generation rule includes:

[0019] Determining topics related to the keyword based on entity attributes of the keyword;

[0020] The keywords and the related topics are input into a trained second generation model, and candidate titles are output through the second generation model.

[0021] Optionally, the method further comprises:

[0022] Calculate an evaluation score for the generated candidate title based on the evaluation index, wherein the evaluation index includes at least one of the topicality index, operability index, scarcity index, timeliness index, and heat value index of the candidate title;

[0023] The generated candidate titles are ranked according to the evaluation scores.

[0024] Optionally, the step of filtering out hot topics with hot attributes from the data source includes:

[0025] Based on the user's selected category, hot topics with hot attributes related to the selected category are screened out from the data source, and the selected category includes at least one of the entertainment industry category, academic category, international situation category, and intellectual property category.

[0026] Optionally, the method further comprises:

[0027] Receive title recommendation requests from users;

[0028] Based on the candidate titles, determining a recommended title corresponding to the title recommendation request;

[0029] Returns the recommended title.

[0030] On the other hand, an embodiment of the present invention discloses a title generation device, the device comprising:

[0031] A data screening module, used to screen out hot topics with hot attributes from the data source and extract keywords from the hot topics;

[0032] The title generation module is used to generate candidate titles based on the keywords and preset title generation rules. The preset title generation rules include any one or more of the following: title reuse rules, title migration rules, and title association rules.

[0033] Optionally, the preset title generation rule includes a title reuse rule, and the title generation module includes:

[0034] A first search submodule, used to search for a first reference article related to the keyword based on the keyword;

[0035] The first generation submodule is used to input the content of the first reference article into a trained first generation model, and output a candidate title through the first generation model.

[0036] Optionally, the device further comprises:

[0037] The abstract outline generation module is used to generate candidate abstracts and / or candidate outlines according to the content of the first reference article.

[0038] Optionally, the preset title generation rule includes a title migration rule, and the title generation module includes:

[0039] An entity recognition submodule, used to recognize a first entity word and an event action word in the keyword;

[0040] An entity determination submodule, used to determine a second entity word corresponding to the first entity word;

[0041] A second retrieval submodule is used to retrieve a second reference article related to the word sequence based on the word sequence composed of the second entity word and the event action word;

[0042] A second generating submodule, used for generating a reference title according to the content of the second reference article and a title reuse rule;

[0043] The entity replacement submodule is used to determine the target entity word in the reference title and replace the target entity word in the reference title with the first entity word to obtain a candidate title.

[0044] Optionally, the preset title generation rule includes a title association rule, and the title generation module includes:

[0045] An association determination submodule, used to determine the associated topics of the keyword according to the entity attributes of the keyword;

[0046] The third generation submodule is used to input the keywords and the related topics into the trained second generation model, and output candidate titles through the second generation model.

[0047] Optionally, the device further comprises:

[0048] An evaluation calculation module, used to calculate an evaluation score for the generated candidate title based on evaluation indicators, wherein the evaluation indicators include at least one of the topicality indicator, operability indicator, scarcity indicator, timeliness indicator, and heat value indicator of the candidate title;

[0049] The title sorting module is used to sort the generated candidate titles according to the evaluation scores.

[0050] Optionally, the data screening module is specifically used to screen out hot topics with hot attributes related to the user's selected category from the data source based on the user's selected category, and the selected category includes at least one of the entertainment industry category, academic category, international situation category, and intellectual property category.

[0051] Optionally, the device further comprises:

[0052] A request receiving module, used to receive a user's title recommendation request;

[0053] A recommendation determination module, used to determine a recommended title corresponding to the title recommendation request based on the candidate titles;

[0054] The recommendation returning module is used to return the recommended title.

[0055] On the other hand, an embodiment of the present invention discloses a device for title generation, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include instructions for performing one or more of the title generation methods described above.

[0056] On the other hand, an embodiment of the present invention discloses a machine-readable medium having instructions stored thereon. When the instructions are executed by one or more processors of a device, the device executes one or more of the above-mentioned title generation methods.

[0057] The embodiments of the present invention include the following advantages:

[0058] The embodiment of the present invention generates candidate titles based on extracted keywords and preset title generation rules. The keywords are extracted from hot topics with hot attributes screened out from the data source, which have a high degree of attention nowadays, and can ensure the timeliness and attention of the generated candidate titles. In addition, in the process of generating candidate titles, the embodiment of the present invention adopts preset title generation rules, and can select a suitable title generation rule according to actual needs, or a combination of multiple title generation rules; multi-angle candidate titles can be generated from multiple aspects to increase the richness and diversity of the generated candidate titles, so as to provide users with more optional and high-quality candidate titles, thereby improving the efficiency and quality of assisting users in writing. Furthermore, whether the title of an article is attractive is an important factor affecting whether the reader reads the article. Therefore, through the embodiment of the present invention, the attractiveness of the generated candidate titles can be improved, and the probability of the article being read can also be increased. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0060] Figure 1 is a flowchart of steps of an embodiment of a method for generating a title according to the present invention;

[0061] Figure 2 It is a structural block diagram of an embodiment of a title generating device of the present invention;

[0062] Figure 3 is a block diagram of an apparatus 800 for title generation according to the present invention;

[0063] Figure 4 It is a schematic diagram of the structure of the server in some embodiments of the present invention. DETAILED DESCRIPTION

[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0065] The terms "first", "second", etc. in the specification and claims of the present invention are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable when appropriate, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, the term "and / or" in the specification and claims is used to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In the embodiments of the present invention, the term "multiple" refers to two or more, and other quantifiers are similar.

[0066] Method Embodiment

[0067] Reference Figure 1 , shows a flowchart of a method for generating a title according to an embodiment of the present invention, which may specifically include the following steps:

[0068] Step 101: Filter out hot topics with hot attributes from a data source, and extract keywords from the hot topics;

[0069] Step 102: Generate candidate titles based on the keywords and preset title generation rules, where the preset title generation rules include any one or more of the following: title reuse rules, title migration rules, and title association rules.

[0070] The title generation method provided in the embodiment of the present invention can be applied to a terminal device or a server. The terminal device may include but is not limited to: a smart terminal, a computer, a personal digital assistant (PDA), a tablet computer, an e-book reader, a laptop computer, a vehicle-mounted device, a smart TV, a wearable device, etc.

[0071] The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, cloud communications, network services, middleware services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.

[0072] The embodiments of the present invention can be applied to scenarios of generating titles, such as generating titles of articles, generating titles of news, generating titles of commodities, and the like.

[0073] The data source refers to a website or application that can independently generate text content and has a hot search list. The information content can be uploaded by users or internal personnel of the website, such as mainstream media websites. These websites provide hot sections such as hot lists and real-time search hotspots for users to view hot information. In the hot section, the most popular information content can be uploaded in real time by internal personnel of the website or other users.

[0074] It is understood that the above data source examples are only examples listed for a better understanding of the technical solutions of the embodiments of the present invention, and are not intended to be the sole limitation on the embodiments of the present invention. For ease of description, the embodiments of the present invention are described by taking the hot search list and / or hot word list and / or hot article list of at least one platform as an example of data source.

[0075] Hot topic attributes refer to the high search popularity and search volume of hot topics in the current period of time, which have the attributes that are meaningful for generating titles.

[0076] In some examples, the hot attribute may reflect that a search topic that has never been on the hot search list has a sudden increase in search volume (such as more than 800 or 1,000 searches in a week) within a fixed period (such as a week or a month), and has entered the hot search list. The search topic may also be considered a hot topic with a hot attribute.

[0077] The embodiment of the present invention selects hot topics with hot attributes from the data source and extracts keywords from the hot topics. The extracted keywords can be named entity words such as place names and personal names, or entities that can serve as sentence components alone.

[0078] For example, a hot topic with a hot attribute is filtered out as "The cast of the live-action version of Snow White is confirmed", and the keywords that can be extracted from the hot topic include: Snow White, live-action version, and cast.

[0079] In an optional embodiment of the present invention, the step of filtering out hot topics having hot attributes from the data source may include:

[0080] Based on the user's selected category, hot topics with hot attributes related to the selected category are screened out from the data source, and the selected category includes at least one of the entertainment industry category, academic category, international situation category, and intellectual property category.

[0081] In a specific implementation, the data source may include hot topics of different categories. The embodiment of the present invention may filter out the top N hot topics in a comprehensive ranking based on the hot search list and / or hot word list and / or hot article list of at least one platform. In addition, the user may also input a selection category to specify the category to which the hot topics to be filtered out belong. The embodiment of the present invention may receive a selection category input by the user, and based on the user's selection category, filter out hot topics with hot attributes related to the selection category from the data source, and then generate candidate titles under a finer-grained category based on the user's selection of a subdivided category or a finer-grained category.

[0082] The embodiments of the present invention do not limit the specific manner of receiving the selection category input by the user. Optionally, an input interface may be provided to receive the selection category input by the user. The input interface may be a text input interface that can receive text content input by the user and identify the selection category specified by the text content; or, the input interface may be a voice input interface that can receive voice content input by the user and identify the selection category specified by the voice content; or, the input interface may be a preset menu that includes candidate categories and can receive the user's selection operation on the candidate category to obtain the user's selection category.

[0083] It should be noted that the above entertainment circle category, academic category, international situation category, and intellectual property category are only used as an application example of the present invention, and the embodiment of the present invention does not limit the specific selection category. Further, after generating candidate titles, the embodiment of the present invention can also classify the generated candidate titles by category to obtain candidate titles under different categories.

[0084] Based on the keywords and the preset title generation rules, candidate titles are generated. The preset title generation rules may include any one or more of the following: title reuse rules, title migration rules, and title association rules.

[0085] Title reuse rules refer to generating candidate titles based on articles related to keywords in hot topics. Title migration rules refer to generating candidate titles by rewriting titles generated by title reuse rules based on title reuse rules. Title association rules refer to diverging keywords in hot topics, obtaining related topics of the keywords, and using the related topics to generate candidate titles.

[0086] The generated candidate titles can be recommended to the user to assist the user in writing. In practical applications, any one of the three title generation rules can be used to generate candidate titles, or a combination of multiple rules can be used to generate candidate titles.

[0087] The embodiment of the present invention generates candidate titles based on extracted keywords and preset title generation rules. The keywords are extracted from hot topics with hot attributes screened out from the data source, which have a high degree of attention nowadays, and can ensure the timeliness and attention of the generated candidate titles. In addition, in the process of generating candidate titles, the embodiment of the present invention adopts preset title generation rules, and can select a certain suitable title generation rule according to actual needs, or can adopt a combination of multiple title generation rules, and can generate multi-angle candidate titles from multiple aspects to increase the richness and diversity of the generated candidate titles, so as to provide users with more optional and high-quality candidate titles, and then can improve the efficiency and quality of assisting users in writing. Furthermore, whether the title of an article is attractive is an important factor affecting whether people read the article. Therefore, through the embodiment of the present invention, the probability of the article being read can also be increased.

[0088] In an optional embodiment of the present invention, the preset title generation rule may include a title reuse rule, and the generating of candidate titles based on the keywords and the preset title generation rule may include:

[0089] Step S11, based on the keyword, searching for a first reference article related to the keyword;

[0090] Step S12: input the content of the first reference article into a trained first generation model, and output a candidate title through the first generation model.

[0091] The title reuse rule refers to generating candidate titles based on articles related to keywords in hot topics.

[0092] Specifically, first, hot topics are screened from the hot search list and / or hot word list and / or hot article list of at least one platform, and keywords in the hot topics are extracted. Then, based on the extracted keywords, a first reference article related to the keyword is retrieved.

[0093] The first reference article refers to an article that satisfies a preset condition selected from the retrieved articles related to the keyword. The keyword in the title and / or body of the first reference article matches the keyword. Meeting the preset condition may include, but is not limited to: the consumption data (such as the number of likes, forwarding, replying, reading, etc.) of the first reference article meets the preset value, or the account level of the first reference article meets the preset level.

[0094] Finally, the content of the first reference article is input into the trained first generation model, and the candidate title is output through the first generation model.

[0095] The embodiment of the present invention can pre-train a first generation model for generating titles. The first generation model can be obtained by supervised training of an existing neural network based on a large number of training samples and machine learning methods. It should be noted that the embodiment of the present invention does not limit the model structure and training method of the first generation model. The first generation model can integrate multiple neural networks. The neural network includes but is not limited to a combination, superposition, and nesting of at least one or at least two of the following: CNN (Convolutional Neural Network), LSTM (Long Short-Term Memory) network, RNN (Simple Recurrent Neural Network), attention neural network, etc.

[0096] Specifically, a large number of articles can be collected, and keywords can be extracted from the titles and texts of the articles. The collected texts of the articles, the extracted keywords, and the titles of the articles can be used as training data to train the first generation model.

[0097] In an example, suppose the following hot topic is screened out from the hot search list of a certain platform: "The actors for the live-action version of Snow White have been confirmed". The following keywords are extracted from the hot topic: "Snow White", "Live-action version", "actors". Based on the extracted keywords, a first reference article related to the keywords is retrieved, and the title of the first reference article is "A new Disney princess is coming! A mixed-race actress will star in the live-action version of Snow White, sparking heated discussions". The content of the first reference article (such as the main text) is input into the first generation model, through which the following candidate title can be output: "Mixed-race actress Rachel Zegler stars in the live-action version of Snow White, sparking heated discussions".

[0098] The content of the first reference article may include the body of the first reference article, and may also include relevant information such as the title and keywords of the first reference article.

[0099] It should be noted that the embodiment of the present invention does not limit the number of hot topics screened out, nor does it limit the number of first reference articles retrieved. For a hot topic screened out, one or more first reference articles can be retrieved based on the keywords in the hot topic, and a candidate title can be generated for each first reference article. Thus, one or more candidate titles can be generated for a hot topic.

[0100] In an optional embodiment of the present invention, the method may further include: generating a candidate abstract and / or a candidate outline according to the content of the first reference article.

[0101] The embodiments of the present invention do not limit the method for generating candidate abstracts and candidate outlines, and any existing method for generating candidate abstracts and candidate outlines can be used. For example, a summary generation model can be pre-trained, and the content of the first reference article can be input into the summary generation model, and the candidate abstracts can be output through the summary generation model. The outline generation model can also be pre-trained, and the content of the first reference article can be input into the outline generation model, and the candidate outlines can be output through the outline generation model. The summary generation model can select any neural network model in the field that is good at generating abstracts, and the outline generation model can select any neural network model in the field that is good at generating outlines, and the embodiments of the present invention do not specifically limit this.

[0102] Taking the above example, the content of the first reference article retrieved in the above example is input into the summary generation model, and the summary generation model can output the following candidate summary: "Disney's live-action version of Snow White and the Seven Dwarfs, starred by actress Rachel Zegler. After Disney chose Halle Berry to play the Little Mermaid, it also caused controversy. The classic character image in our memory has been subverted once again."

[0103] In addition, the content of the first reference article retrieved in the above example is input into the outline generation model, through which the outline generation model can output the following candidate outlines:

[0104] 1. Rachel Zegler is cast in the live-action version of Snow White and the Seven Dwarfs

[0105] 2. Rachel Zegler's birth and past works

[0106] 3. Introduction to Snow White

[0107] 4. After Halle Berry played the role of the Little Mermaid, this time it also caused controversy

[0108] 5. Many netizens criticized Disney

[0109] 6. What do you think about this matter?

[0110] The generated candidate summaries and / or candidate outlines may also be recommended to the user to assist the user in writing and further improve the efficiency and quality of the user's writing.

[0111] In an optional embodiment of the present invention, the preset title generation rule may include a title migration rule, and the generating of candidate titles based on the keywords and the preset title generation rule may include:

[0112] Step S21, identifying the first entity word and the event action word in the keyword;

[0113] Step S22: determining a second entity word corresponding to the first entity word;

[0114] Step S23, based on the word sequence consisting of the second entity word and the event action word, searching for a second reference article related to the word sequence;

[0115] Step S24: Generate a reference title according to the content of the second reference article and the title reuse rule;

[0116] Step S25: determine the target entity word in the reference title, and replace the target entity word in the reference title with the first entity word to obtain a candidate title.

[0117] The title migration rule is based on the title reuse rule. The candidate titles are generated by rewriting the titles generated by the title reuse rule.

[0118] Specifically, first, hot topics are screened out from the hot search list and / or hot word list and / or hot article list of at least one platform, and keywords in the hot topics are extracted. Then, the first entity words and event action words in the keywords are identified. Among them, the first entity word refers to a specific entity word with a specific referential meaning. Event action words refer to words containing events or actions.

[0119] In an example, suppose the following hot topic is selected from the hot search list of a certain platform: "35th anniversary of the death of Deng Jiaxian". The following keywords can be extracted from this hot topic: "Deng Jiaxian", "death". The keyword "Deng Jiaxian" is identified as the first entity word, which specifically refers to the person "Deng Jiaxian". "Death" is an event action word.

[0120] Next, determine the second entity word corresponding to the first entity word. The second entity word refers to an abstract entity word with a broad referential meaning. For example, for the first entity word "Deng Jiaxian", since "Deng Jiaxian" is a famous Chinese scientist. "Famous Chinese scientists" is an abstract entity word with a broad referential meaning. Therefore, it can be determined that the second entity word corresponding to the first entity word "Deng Jiaxian" is "Famous Chinese scientists".

[0121] In the specific implementation, the second entity word can be abstracted according to the entity attributes of the first entity word. For example, the entity attributes of "Deng Jiaxian" include: academician of the Chinese Academy of Sciences, nuclear physicist, hero of the two bombs, etc. The second entity word "Famous Chinese Scientist" can be abstracted from the first entity word "Deng Jiaxian". For another example, the first entity word "Xi'an Qin Terracotta Warriors and Horses" has entity attributes including: the first batch of Chinese World Heritage, the eighth wonder of the world, etc. The first entity word "Xi'an Qin Terracotta Warriors and Horses" can be abstracted into "Chinese Famous Places and Historic Sites".

[0122] After determining the second entity word corresponding to the first entity word, based on a word sequence consisting of the second entity word and the event action word, a second reference article related to the word sequence is retrieved.

[0123] For example, based on the word sequence "famous Chinese scientist passed away" consisting of the second entity word "famous Chinese scientist" and the event action word "passed away", a search is performed to retrieve the second reference article related to the word sequence.

[0124] The second reference article refers to an article that satisfies the preset conditions selected from the retrieved articles related to the word sequence. Keywords in the title and / or body of the second reference article match the keywords in the word sequence. Meeting the preset conditions may include, but are not limited to: the consumption data (such as the number of likes, forwarding, replying, reading, etc.) of the second reference article meets the preset value, or the account level of the second reference article meets the preset level.

[0125] Finally, a reference title is generated according to the content of the second reference article and the title reuse rule, and then a target entity word in the reference title is determined and replaced with the first entity word to obtain a candidate title.

[0126] For example, in this example, the second reference article related to the word sequence "the death of a famous Chinese scientist" is retrieved, and the title of the second reference article is "Deeply missed! Today, let's bid farewell to Academician Yuan Longping! Why does his death make us so sad?". The second reference article is an article related to the death of another famous Chinese scientist "Yuan Longping". The content of the second reference article is input into the first generation model, and the first generation model can output the following reference title: "In memory of Academician Yuan Longping! Why does his death make us so sad?". Then, the target entity word in the reference title is replaced with the first entity word to obtain a candidate title.

[0127] The target entity word refers to the entity word to be replaced in the reference title. For example, in this example, the hot topic screened out is "The 35th Anniversary of the Death of Deng Jiaxian", and the extracted keywords include: "Deng Jiaxian", "Death", that is, the candidate title should be generated based on the keywords "Deng Jiaxian" and "Death". After replacing the first entity word with the second entity word, the reference title generated by the retrieved second reference article contains the entity word "Yuan Longping", another famous Chinese scientist, and this entity word needs to be replaced with the original first entity word "Deng Jiaxian". Therefore, it can be determined that the entity word "Yuan Longping" in the reference title is the target entity word. By replacing the target entity word with the first entity word "Deng Jiaxian", the following candidate title can be obtained: "In Memory of Academician Deng Jiaxian! Why does his death make us so sad?".

[0128] Optionally, the method may further include: generating a candidate outline according to the content of the second reference article.

[0129] In an optional embodiment of the present invention, the preset title generation rule may include a title association rule, and the generating of candidate titles based on the keywords and the preset title generation rule may include:

[0130] Step S31, determining the related topics of the keyword according to the entity attributes of the keyword;

[0131] Step S32: input the keywords and the related topics into a trained second generation model, and output candidate titles through the second generation model.

[0132] Title association rules refer to diverging keywords in hot topics, obtaining related topics of the keywords, and using the related topics to generate candidate titles.

[0133] Specifically, first, hot topics are screened from the hot search list and / or hot word list and / or hot article list of at least one platform, and keywords in the hot topics are extracted. Then, the related topics of the keywords are determined according to the entity attributes of the keywords.

[0134] In an embodiment of the present invention, the entity attributes can be obtained based on a pre-established knowledge graph. The knowledge graph can be divided into two levels in terms of logical structure: the model layer and the data layer. The data layer is mainly composed of a series of facts, and knowledge will be stored in units of facts. If a triple such as (entity 1, relationship, entity 2), (entity, attribute, attribute value) is used to express facts. Through knowledge extraction technology, knowledge elements such as entities, relationships, and attributes can be extracted from some public semi-structured and unstructured data.

[0135] In an example, suppose the following hot topic is selected from the hot search list of a certain platform: "A and B's relationship exposed". The following keywords are extracted from the hot topic: "A", "B", "relationship". For the keyword "A", the related topics of the keyword can be determined.

[0136] The embodiments of the present invention do not limit the specific method of determining related topics. For example, a related topic library can be pre-established, and the related topic library stores related topics corresponding to pre-mined entity attributes of different categories. For example, for the entity attributes of public figures, the following related topics can be included: life, deeds, works, emotional experiences, parents, alma mater, etc. For another example, for the entity attributes of tourist attractions, the following related topics can be included: food, itinerary, guide, hotel, etc.

[0137] In this example, for the keyword "A", the entity attribute of the keyword is public figure, then it can be determined that the related topics corresponding to the keyword "A" may include at least one of life, deeds, works, emotional experiences, parents, alma mater, etc.

[0138] Next, the extracted keywords and the related topics are input into the trained second generation model, and the candidate titles can be output through the second generation model.

[0139] In this example, the extracted keyword "A" and the related topic "works" can be input into the second generation model, and the second generation model can output the following candidate title: "What works of A have you listened to?" For another example, the keyword "A" and the related topic "emotional experience" are input into the second generation model, and the second generation model can output the following candidate title: "Abandoning his wife, A's current behavior may be related to his growth experience?".

[0140] It should be noted that when generating candidate titles based on the title association rules, corresponding related topics may be determined for each of the extracted keywords, thereby generating candidate titles corresponding to different keywords.

[0141] For instance, in this example, for the extracted keyword "B", assuming that the entity attribute of the keyword is also a public figure, it can be determined that the related topics corresponding to the keyword "B" may include at least one of life, deeds, works, emotional experiences, parents, alma mater, etc., and the keyword "B" and the related topics are input into the second generation model, and the candidate title can be output through the second generation model.

[0142] The embodiment of the present invention can pre-train the second generation model for generating titles of different topics. For example, the second generation model for generating titles of topics related to public figures can be trained. For another example, the second generation model for generating titles of topics related to tourist attractions can be trained.

[0143] The second generation model can be obtained by supervised training of an existing neural network based on a large number of training samples and machine learning methods. It should be noted that the embodiment of the present invention does not limit the model structure and training method of the second generation model. The second generation model can integrate multiple neural networks. The neural network includes but is not limited to a combination, superposition, or nesting of at least one or at least two of the following: CNN, LSTM, RNN, attention neural network, etc.

[0144] Specifically, when training the second generation model of a certain type of topic title, a large number of relevant titles of this type of topic can be collected, and keywords can be extracted from the collected relevant titles. The collected relevant titles of this type of topic and the extracted keywords can be used as training data to train the second generation model of this type of topic title.

[0145] In an optional embodiment of the present invention, the method may further include:

[0146] Step S41, calculating an evaluation score for the generated candidate title based on evaluation indicators, wherein the evaluation indicators include at least one of the topicality indicator, operability indicator, scarcity indicator, timeliness indicator, and heat value indicator of the candidate title;

[0147] Step S42: Sort the generated candidate titles according to the evaluation scores.

[0148] When calculating the evaluation score of the candidate title, various evaluation indicators may be weighted, including but not limited to at least one of the topicality indicator, operability indicator, scarcity indicator, timeliness indicator, and heat value indicator of the candidate title.

[0149] The topicality index can measure the search volume of the entity words contained in the candidate title. For example, for the generated candidate title "What works of A have you listened to?", which contains the entity "A", the search volume of the entity word "A" on each platform can be obtained as the topicality index of the candidate title. The greater the search volume of the entity words contained in the candidate title, the higher the topicality index of the candidate title.

[0150] The operability index can measure the richness of the material of the entity words contained in the candidate title. For example, for the generated candidate title "What works of A have you heard?", which contains the entity "A", the material library and / or the network can be retrieved for the material about the entity "A". The amount of relevant material of the entity "A" is used as the operability index of the candidate title. The greater the amount of relevant material of the entity words contained in the candidate title, the higher the operability index of the candidate title.

[0151] The scarcity index can measure the saturation of candidate titles. The scarcity index can be measured by the number of identical or similar titles. If there are already a large number of identical or similar titles to a candidate title, it means that the candidate title is already saturated. If you write with the candidate title again, it may be difficult to get the reader's attention. The fewer the number of identical or similar titles to the candidate title, the higher the scarcity index of the candidate title.

[0152] The timeliness index can measure the timeliness of the candidate title. The timeliness index can be measured by the time when the relevant topic of the candidate title appears. For example, for the generated candidate title "Mixed-race actress Rachel Zegler stars in the live-action version of "Snow White", sparking heated discussions", if the relevant topic of the candidate title "The actors for the live-action version of "Snow White" have been confirmed" appeared a year ago, then the candidate title will have a lower timeliness index. If the relevant topic of the candidate title appeared three days ago, then the candidate title will have a higher timeliness index. The closer the relevant topic of the candidate title appears, the higher the timeliness index of the candidate title.

[0153] The heat value index can measure the popularity of the candidate title. The heat value index can be measured by the search popularity of the keywords contained in the candidate title on various platforms. The higher the popularity of the keywords contained in the candidate title, the higher the heat value index of the candidate title.

[0154] Of course, the above evaluation indicators are only used as an example of the present invention, and the embodiment of the present invention does not limit the specific types and quantities of the evaluation indicators.

[0155] For candidate titles generated by using one or more of the above-mentioned title generation rules, the embodiment of the present invention can calculate an evaluation score for each generated candidate title based on one or more of the above-mentioned evaluation indicators, and then can sort the generated candidate titles according to the evaluation score. After sorting, high-quality candidate titles with higher comprehensive indicators can be ranked in front, so as to provide users with higher-quality candidate titles.

[0156] In an optional embodiment of the present invention, the method may further include:

[0157] Step S51, receiving a title recommendation request from a user;

[0158] Step S52: determining a recommended title corresponding to the title recommendation request based on the candidate titles;

[0159] Step S53: Return the recommended title.

[0160] In the embodiment of the present invention, the title recommendation request may include a title recommendation request without explicit requirements or a title recommendation request with explicit requirements.

[0161] The title recommendation request without clear requirements means that the user is not sure about the topic or direction of writing. In this case, the embodiment of the present invention can return the top N (N is greater than or equal to 1) candidate titles as recommended titles to the user according to the ranking of evaluation scores based on the candidate titles generated offline in advance.

[0162] A title recommendation request with clear requirements means that the user has determined the theme or direction of the writing and can provide writing requirements. The writing requirements may include keywords provided by the user. The embodiment of the present invention can retrieve candidate titles pre-generated offline according to the keywords provided by the user, and return the matching candidate titles to the user as recommended titles. If there is no recommended title matching the keywords provided by the user among the candidate titles pre-generated offline, the candidate titles can be generated online in real time based on the keywords provided by the user according to the aforementioned method for generating candidate titles, and the top N ranked candidate titles generated online in real time are returned to the user as recommended titles.

[0163] The embodiment of the present invention can provide two methods of obtaining recommended titles: offline and online.

[0164] The offline method refers to pre-building a candidate title library, and when receiving a user's title recommendation request, directly querying the candidate title library to obtain the recommended title. The candidate title library can generate a large number of candidate titles in advance by the above-mentioned method for generating candidate titles to establish the candidate title library. The candidate title library can be automatically updated periodically to ensure the timeliness of the candidate titles in the candidate title library.

[0165] The online method means that when a user's title recommendation request is received, candidate titles are generated online in real time using the above-mentioned method for generating candidate titles, and recommended titles that meet the user's title recommendation request are determined from the candidate titles generated in real time.

[0166] Optionally, the method may further include: displaying various evaluation indicators of the recommended title.

[0167] After returning the recommended title to the user, the embodiment of the present invention can also display various evaluation indicators of the recommended title when displaying the recommended title in the user interface, so that the user can comprehensively consider various evaluation indicators such as topicality index, operability index, scarcity index, timeliness index, and heat value index of the displayed recommended title and select the desired target title.

[0168] The embodiment of the present invention does not limit the method of displaying the evaluation indicators. Optionally, the evaluation indicators of the recommended title can be displayed in a graphical manner. The graphical display method is more intuitive and can help users intuitively determine whether the evaluation indicators of the recommended title meet their own needs. Of course, the evaluation indicators of the recommended title can also be displayed in any manner such as numerical method, chart method, etc.

[0169] In summary, the embodiment of the present invention generates candidate titles based on extracted keywords and preset title generation rules. The keywords are extracted from hot topics with hot attributes screened out from the data source, which have a high degree of attention nowadays, and can ensure the timeliness and attention of the generated candidate titles. In addition, in the process of generating candidate titles, the embodiment of the present invention adopts preset title generation rules, and can select a suitable title generation rule according to actual needs, or a combination of multiple title generation rules; multi-angle candidate titles can be generated from multiple aspects to increase the richness and diversity of the generated candidate titles, so as to provide users with more optional and high-quality candidate titles, thereby improving the efficiency and quality of assisting users in writing. Furthermore, whether the title of an article is attractive is an important factor affecting whether the reader reads the article. Therefore, through the embodiment of the present invention, the attractiveness of the generated candidate titles can be improved, and the probability of the article being read can also be increased.

[0170] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0171] Device Embodiment

[0172] Reference Figure 2 , shows a structural block diagram of an embodiment of a title generation device of the present invention, the device may include:

[0173] The data screening module 201 is used to screen out hot topics with hot attributes from the data source and extract keywords from the hot topics;

[0174] The title generation module 202 is used to generate candidate titles based on the keywords and preset title generation rules. The preset title generation rules include any one or more of the following: title reuse rules, title migration rules, and title association rules.

[0175] Optionally, the preset title generation rule includes a title reuse rule, and the title generation module includes:

[0176] A first search submodule, used to search for a first reference article related to the keyword based on the keyword;

[0177] The first generation submodule is used to input the content of the first reference article into a trained first generation model, and output a candidate title through the first generation model.

[0178] Optionally, the device further comprises:

[0179] The abstract outline generation module is used to generate candidate abstracts and / or candidate outlines according to the content of the first reference article.

[0180] Optionally, the preset title generation rule includes a title migration rule, and the title generation module includes:

[0181] An entity recognition submodule, used to recognize a first entity word and an event action word in the keyword;

[0182] An entity determination submodule, used to determine a second entity word corresponding to the first entity word;

[0183] A second retrieval submodule is used to retrieve a second reference article related to the word sequence based on the word sequence composed of the second entity word and the event action word;

[0184] A second generating submodule, used for generating a reference title according to the content of the second reference article and a title reuse rule;

[0185] The entity replacement submodule is used to determine the target entity word in the reference title and replace the target entity word in the reference title with the first entity word to obtain a candidate title.

[0186] Optionally, the preset title generation rule includes a title association rule, and the title generation module includes:

[0187] An association determination submodule, used to determine the associated topics of the keyword according to the entity attributes of the keyword;

[0188] The third generation submodule is used to input the keywords and the related topics into the trained second generation model, and output candidate titles through the second generation model.

[0189] Optionally, the device further comprises:

[0190] An evaluation calculation module, used to calculate an evaluation score for the generated candidate title based on evaluation indicators, wherein the evaluation indicators include at least one of the topicality indicator, operability indicator, scarcity indicator, timeliness indicator, and heat value indicator of the candidate title;

[0191] The title sorting module is used to sort the generated candidate titles according to the evaluation scores.

[0192] Optionally, the data screening module is specifically used to screen out hot topics with hot attributes related to the user's selected category from the data source based on the user's selected category, and the selected category includes at least one of the entertainment industry category, academic category, international situation category, and intellectual property category.

[0193] Optionally, the device further comprises:

[0194] A request receiving module, used to receive a user's title recommendation request;

[0195] A recommendation determination module, used to determine a recommended title corresponding to the title recommendation request based on the candidate titles;

[0196] The recommendation returning module is used to return the recommended title.

[0197] The embodiment of the present invention generates candidate titles based on extracted keywords and preset title generation rules. The keywords are extracted from hot topics with hot attributes screened out from the data source, which have a high degree of attention nowadays, and can ensure the timeliness and attention of the generated candidate titles. In addition, in the process of generating candidate titles, the embodiment of the present invention adopts preset title generation rules, and can select a suitable title generation rule according to actual needs, or a combination of multiple title generation rules; multi-angle candidate titles can be generated from multiple aspects to increase the richness and diversity of the generated candidate titles, so as to provide users with more optional and high-quality candidate titles, thereby improving the efficiency and quality of assisting users in writing. Furthermore, whether the title of an article is attractive is an important factor affecting whether the reader reads the article. Therefore, through the embodiment of the present invention, the attractiveness of the generated candidate titles can be improved, and the probability of the article being read can also be increased.

[0198] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0199] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0200] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0201] An embodiment of the present invention provides a device for title generation, including a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: filtering out hot topics with hot attributes from a data source, and extracting keywords from the hot topics; generating candidate titles based on the keywords and preset title generation rules, wherein the preset title generation rules include any one or more of the following: title reuse rules, title migration rules, and title association rules.

[0202] Optionally, the preset title generation rule includes a title reuse rule, and the generating of candidate titles based on the keywords and the preset title generation rule includes:

[0203] Based on the keyword, searching for a first reference article related to the keyword;

[0204] The content of the first reference article is input into a trained first generation model, and a candidate title is outputted through the first generation model.

[0205] Optionally, the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:

[0206] Generate a candidate abstract and / or a candidate outline according to the content of the first reference article.

[0207] Optionally, the preset title generation rule includes a title migration rule, and the generating of candidate titles based on the keywords and the preset title generation rule includes:

[0208] Identifying a first entity word and an event action word in the keyword;

[0209] Determine a second entity word corresponding to the first entity word;

[0210] Based on the word sequence consisting of the second entity word and the event action word, retrieving a second reference article related to the word sequence;

[0211] Generate a reference title according to the content of the second reference article and a title reuse rule;

[0212] A target entity word in the reference title is determined, and the target entity word in the reference title is replaced with the first entity word to obtain a candidate title.

[0213] Optionally, the preset title generation rule includes a title association rule, and the generating of candidate titles based on the keywords and the preset title generation rule includes:

[0214] Determining topics related to the keyword based on entity attributes of the keyword;

[0215] The keywords and the related topics are input into a trained second generation model, and candidate titles are output through the second generation model.

[0216] Optionally, the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:

[0217] Calculate an evaluation score for the generated candidate title based on the evaluation index, wherein the evaluation index includes at least one of the topicality index, operability index, scarcity index, timeliness index, and heat value index of the candidate title;

[0218] The generated candidate titles are ranked according to the evaluation scores.

[0219] Optionally, the step of filtering out hot topics with hot attributes from the data source includes:

[0220] Based on the user's selected category, hot topics with hot attributes related to the selected category are screened out from the data source, and the selected category includes at least one of the entertainment industry category, academic category, international situation category, and intellectual property category.

[0221] Optionally, the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:

[0222] Receive title recommendation requests from users;

[0223] Based on the candidate titles, determining a recommended title corresponding to the title recommendation request;

[0224] Returns the recommended title.

[0225] Figure 3 8 is a block diagram of an apparatus 800 for title generation according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0226] Reference Figure 3 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0227] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0228] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0229] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0230] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0231] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a voice information processing mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0232] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0233] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, the sensor assembly 814 can also detect the position change of the title generating device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800 and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0234] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency information processing (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0235] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0236] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0237] Figure 4 1 is a schematic diagram of the structure of the server in some embodiments of the present invention. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1922 (for example, one or more processors) and memory 1932, one or more storage media 1930 (for example, one or more mass storage devices) storing application programs 1942 or data 1944. Among them, the memory 1932 and the storage medium 1930 can be short-term storage or permanent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 1922 can be configured to communicate with the storage medium 1930 and execute a series of instruction operations in the storage medium 1930 on the server 1900.

[0238] The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and / or, one or more operating systems 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0239] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (server or terminal), enables the device to perform Figure 1 The title generation method shown.

[0240] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (server or terminal), enables the device to execute a title generation method, the method comprising: screening out hot topics with hot attributes from a data source, and extracting keywords from the hot topics; generating candidate titles based on the keywords and preset title generation rules, the preset title generation rules comprising any one or more of the following: title reuse rules, title migration rules, and title association rules.

[0241] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art not disclosed by the present invention. The description and examples are to be regarded as exemplary only, and the true scope and spirit of the present invention is indicated by the following claims.

[0242] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

[0243] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

[0244] The above is a detailed introduction to a title generation method, a title generation device and a device for title generation provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for generating a title, characterized in that: The method comprises: Filtering hot topics with hot attributes from the data source, and extracting keywords from the hot topics; Generate candidate titles based on the keywords and preset title generation rules, wherein the preset title generation rules include any one or more of the following: title reuse rules, title migration rules, and title association rules; Wherein, when the preset title generation rule includes a title migration rule, generating a candidate title based on the keyword and the preset title generation rule includes: Identifying a first entity word and an event action word in the keyword; Determine a second entity word corresponding to the first entity word, where the second entity word is abstracted based on the entity attribute of the first entity word; Based on the word sequence consisting of the second entity word and the event action word, retrieving a second reference article related to the word sequence; Generate a reference title according to the content of the second reference article and a title reuse rule; A target entity word in the reference title is determined, and the target entity word in the reference title is replaced with the first entity word to obtain a candidate title.

2. The method according to claim 1, characterized in that The preset title generation rule includes a title reuse rule, and the generating of candidate titles based on the keywords and the preset title generation rule includes: Based on the keyword, searching for a first reference article related to the keyword; The content of the first reference article is input into a trained first generation model, and a candidate title is outputted through the first generation model.

3. The method according to claim 2, characterized in that The method further comprises: Generate a candidate abstract and / or a candidate outline according to the content of the first reference article.

4. The method according to claim 1, characterized in that: The preset title generation rule includes a title association rule, and the generating of candidate titles based on the keywords and the preset title generation rule includes: Determining topics related to the keyword based on entity attributes of the keyword; The keywords and the related topics are input into a trained second generation model, and candidate titles are output through the second generation model.

5. The method according to claim 1, characterized in that: The method further comprises: Calculate an evaluation score for the generated candidate title based on the evaluation index, wherein the evaluation index includes at least one of the topicality index, operability index, scarcity index, timeliness index, and heat value index of the candidate title; The generated candidate titles are ranked according to the evaluation scores.

6. The method according to claim 1, characterized in that The step of screening out hot topics with hot attributes from the data source includes: Based on the user's selected category, hot topics with hot attributes related to the selected category are screened out from the data source, and the selected category includes at least one of the entertainment industry category, academic category, international situation category, and intellectual property category.

7. The method according to claim 1, characterized in that The method further comprises: Receive title recommendation requests from users; Based on the candidate titles, determining a recommended title corresponding to the title recommendation request; Returns the title of the recommendation.

8. A title generating device, characterized in that: The device comprises: A data screening module, used to screen out hot topics with hot attributes from the data source and extract keywords from the hot topics; A title generation module, used to generate candidate titles based on the keywords and preset title generation rules, wherein the preset title generation rules include any one or more of the following: title reuse rules, title migration rules, and title association rules; Wherein, when the preset title generation rule includes a title migration rule, the title generation module includes: An entity recognition submodule, used to recognize a first entity word and an event action word in the keyword; An entity determination submodule, used to determine a second entity word corresponding to the first entity word, where the second entity word is abstracted based on the entity attribute of the first entity word; A second retrieval submodule is used to retrieve a second reference article related to the word sequence based on the word sequence composed of the second entity word and the event action word; A second generating submodule, used for generating a reference title according to the content of the second reference article and a title reuse rule; The entity replacement submodule is used to determine the target entity word in the reference title and replace the target entity word in the reference title with the first entity word to obtain a candidate title.

9. The device according to claim 8, characterized in that The preset title generation rule includes a title reuse rule, and the title generation module includes: A first search submodule, used to search for a first reference article related to the keyword based on the keyword; The first generation submodule is used to input the content of the first reference article into a trained first generation model, and output a candidate title through the first generation model.

10. The device according to claim 9, characterized in that The device also includes: The abstract outline generation module is used to generate candidate abstracts and / or candidate outlines according to the content of the first reference article.

11. The device according to claim 8, characterized in that The preset title generation rule includes a title association rule, and the title generation module includes: An association determination submodule, used to determine the associated topics of the keyword according to the entity attributes of the keyword; The third generation submodule is used to input the keywords and the related topics into the trained second generation model, and output candidate titles through the second generation model.

12. A device for generating a title, characterized in that: The invention comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, and the one or more programs include instructions for performing the title generation method according to any one of claims 1 to 7.

13. A machine-readable medium having instructions stored thereon, which, when executed by one or more processors of a device, causes the device to execute the title generating method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Construction method and device for inputting associative words, storage medium and electronic device

    CN109558538A

  • Official document automatic writing method and device

    CN109657223A

  • Auxiliary editing system

    CN109948128A

  • Title generation method and device, computer readable storage medium and computer device

    CN110866391A

  • Audio hotspot content automatic label generation method

    CN111261167A