Text generation method and device based on dynamic weight and storage medium

A dynamic weight, text technology, applied in text database clustering/classification, unstructured text data retrieval, instruments, etc., can solve problems such as single theme, inability to highlight news hotspots in real time, and lack of theme distribution.

Pending Publication Date: 2021-09-07
HUA DATA TECH (SHANGHAI) CO LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is to overcome the shortcomings of the existing automatic text generation, such as single topic, lack of diversity in topic dis

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Text generation method and device based on dynamic weight and storage medium
  • Text generation method and device based on dynamic weight and storage medium
  • Text generation method and device based on dynamic weight and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0061] A text generation method based on dynamic weights, such as figure 1 As shown, the text generation method includes:

[0062] Step 10. Build a hot word thesaurus, which stores hot search words obtained every first preset time period and the hot search weight of each hot search word. The hot search weight of each hot search word is based on The frequency parameters of each hot search word and the construction time of each hot search word are generated;

[0063] Step 20, receiving any input text;

[0064] Step 30, extracting a plurality of subject words from any text;

[0065] Wherein, a plurality of subject words are extracted based on the LDA probability topic model;

[0066] Step 40, matching the subject words and the hot word thesaurus to obtain the hot search weight of each subject word;

[0067] Step 50, generating updated text according to the keywords containing the hot search weight.

[0068] Among them, such as figure 2 As shown, the frequency parameters ar...

Embodiment 2

[0124] An electronic device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the computer program, the dynamic weight-based text generation method described in Embodiment 1 is implemented .

[0125] Figure 7A schematic structural diagram of an electronic device provided in this embodiment. Figure 7 A block diagram of an exemplary electronic device 90 suitable for use in implementing embodiments of the invention is shown. Figure 7 The electronic device 90 shown is only an example, and should not limit the functions and scope of use of the embodiments of the present invention.

[0126] Such as Figure 7 As shown, electronic device 90 may take the form of a general-purpose computing device, which may be a server device, for example. Components of the electronic device 90 may include, but are not limited to: at least one processor 91 , at least one memory 92 , and a bus 93 connecting di...

Embodiment 3

[0134] A computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the dynamic weight-based text generation method described in Embodiment 1 is implemented.

[0135] Wherein, the readable storage medium may more specifically include but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device or any of the above-mentioned the right combination.

[0136] In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes program code, and when the program product runs on the terminal device, the program code is used to make the terminal device execute The dynamic weight-based text generation method described in Embodiment 1.

[0137] Wherein, the program code for executing the present invention can be written in any combination of one or mo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a text generation method and device based on dynamic weights and a storage medium, and the method comprises the steps of constructing a hot word library which stores hot search words obtained every a first preset time period and a hot search weight of each hot search word, and the hot search weight of each hot search word is generated according to the frequency parameter of each hot search word and the construction time of each hot search word; receiving any input text; extracting a plurality of subject terms from any text; matching the subject terms with a hot word library to obtain a hot search weight of each subject term; and generating an updated text according to the subject term containing the hot search weight. According to the dynamically weighted news event multi-topic automatic generation method, the corresponding weight is dynamically given to the hot word according to the hot word constructed by incremental automatic search in combination with the frequency information of the word and the hot search time information, and the invention is used for processing quickly updated real-time network news data.

Description

technical field [0001] The invention belongs to the field of natural language processing, and in particular relates to a dynamic weight-based text generation method, device and storage medium. Background technique [0002] With the popularization of the Internet, the Internet has gradually become the carrier of various information in the society. More and more people obtain real-time news and related information through the Internet. Web page text has become an important source of information. There are a large number of hot news every day. How to use the automatic text generation technology to obtain the current hot topic of discussion from a large number of news texts has become a necessary basic technology for news text processing. At the same time, automatic text generation is an important and challenging research task in the field of natural language processing. It aims to let computers learn to write high-quality natural language texts like humans, and is widely used i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F16/35G06F40/216G06F40/289G06K9/62
CPCG06F16/35G06F40/216G06F40/289G06F18/23213G06F18/24155
Inventor 蔡华
Owner HUA DATA TECH (SHANGHAI) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products