Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A news comment automatic generation method and device

An automatic generation and news technology, applied in the field of computer networks, can solve the problems of difficult backpropagation, inability to score in partial sequences, and difficult to calculate, and achieve the effect of saving human and material resources, great practical value, and ensuring relevance.

Active Publication Date: 2019-04-23
GUANGZHOU UNIVERSITY
View PDF2 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Previous deep generative models required Markov chains or approximate maximum likelihood estimation, resulting in many difficult-to-calculate probability problems. They could not score partial sequences, but could only evaluate complete sequences. For discrete data, backpropagation has problems.

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
  • A news comment automatic generation method and device
  • A news comment automatic generation method and device
  • A news comment automatic generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The application will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, the drawings only show the parts related to the related invention.

[0048] figure 1 It is a flow chart of the method for generating news comments of the present invention, such as Figure 1-Figure 5 As shown, the news comment generation method of the present invention specifically includes the following steps:

[0049] Step SI: Collect multiple sets of target feature news headlines.

[0050] The news headlines of the target features required to be collected use the same coding method and the same language.

[0051] Step S2: Perform preprocessing on the collected news headline data to construct training data, and input the training data into the LSTM ...

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 relates to a news comment automatic generation method and device. The method comprises the steps of taking a news title as original data; preprocessing the news title data to construct training data, wherein the training data is used as input of an LSTM model to train the model; obtaining a pre-trained LSTM model through training the sample data; adding a discriminator into the model; forming a GAN model, and distinguishing the comments generated by the LSTM model from true comments and false comments by using a discriminator, using the LSTM model as a generator to be in game with the discriminator until an output result reaches a threshold value. In order to ensure the context correlation between the output result (comments generated by the model) and news, a gating attention mechanism is applied to effectively process the context information.

Description

technical field [0001] The invention relates to the technical field of computer networks, in particular to a method and device for automatically generating news comments. Background technique [0002] The classic network is the recurrent neural network (RNN), which is also the network of choice for time series data. When it comes to certain sequential machine learning tasks, RNNs can achieve high levels of accuracy that no other algorithm can match. This is due to the fact that traditional neural networks only have a kind of short-term memory, while RNN has the advantage of limited short-term memory. [0003] The purpose of RNNs is to process sequence data. In the traditional neural network model, from the input layer to the hidden layer to the output layer, the layers are fully connected, and the nodes between each layer are unconnected. But this ordinary neural network is powerless for many problems. For example, if you want to predict what the next word in a sentence ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/34G06F17/27G06N3/04G06N3/08
CPCG06N3/08G06F40/258G06N3/045
Inventor 朱静杨晋昌黄颖杰黄文恺陶为俊邓文婷黄双萍
Owner GUANGZHOU UNIVERSITY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products