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

Comment generation method and device, server and storage medium

A technology for generating models and entities, which can be used in instruments, special data processing applications, electrical digital data processing, etc., and can solve problems such as poor generalization of comments and poor article relevance.

Active Publication Date: 2019-09-20
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF8 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the current method of comment generation is mainly to generate new comments by replacing some keywords based on comments in other similar articles. The comments generated in this way have poor generalization ability and poor relevance to the article.

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
  • Comment generation method and device, server and storage medium
  • Comment generation method and device, server and storage medium
  • Comment generation method and device, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] figure 1 It is a flow chart of a comment generation method in Embodiment 1 of the present invention. The method for generating comments provided in this embodiment is applicable to the situation of automatically generating comments on articles. Specifically, the method can be executed by a comment generating device, which can be implemented by software and / or hardware. The device can be integrated in a server in, see figure 1 , the method of the embodiment of the present invention specifically includes:

[0031] S110. Extract at least one target entity from the target article, and acquire at least one attribute information of each target entity.

[0032] Wherein, the attribute information is used to describe the entity from different dimensions. The target article may be a text in the Internet, or a text in a terminal device, such as a news text, a novel text, a forum text, and the like. The target entity is an entity in the target article, and the entity is an obje...

Embodiment 2

[0046] figure 2 It is a flow chart of a comment generation method in Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above embodiments, details not described in detail in this embodiment can be found in the above embodiments. see figure 2 , the comment generating method provided in this embodiment may include:

[0047] S210. Extract a sentence set from the target article according to preset rules, perform text segmentation on each sentence in the sentence set, and obtain a word segmentation set.

[0048] Wherein, the preset rule can be set by a technician, for example, it is set to extract a sentence set with a complete subject-verb-object structure, or to extract the first sentence and the last sentence of each paragraph in the article to form a sentence set. Further perform text segmentation on each sentence to obtain a set of word segmentation, such as word segmentation methods based on string matching, understanding-based word s...

Embodiment 3

[0062] image 3 It is a flow chart of a comment generation method in Embodiment 3 of the present invention. This embodiment introduces the training process of the comment generation model in detail on the basis of the above-mentioned embodiments, and details not described in this embodiment are detailed in the above-mentioned embodiments. see image 3 , the comment generating method provided in this embodiment may include:

[0063] S310. Obtain an article sample and multiple candidate comment samples thereof.

[0064] Wherein, the article sample is an article text existing in the Internet or a terminal device, as an article sample, and the candidate comment sample is a commentary text about the article sample issued by a reader of each article sample, and at least one comment sexual samples as candidate review samples. Each article sample corresponds to its candidate review sample.

[0065] S320. Extract at least one entity from the article sample, and acquire at least on...

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 embodiment of the invention discloses a comment generation method and device, a server and a storage medium. The method comprises the steps of extracting at least one target entity from a target article, and obtaining at least one type of attribute information of each target entity; combining the attribute vectors of the attribute information of each target entity to obtain an attribute combined vector of each target entity; splicing the attribute merging vectors to obtain an entity information vector of each target entity; splicing the entity information vectors of the target entities to obtain the entity set information vectors of the target articles; and obtaining a semantic feature vector of the target article, splicing the semantic feature vector with the entity set information vector, taking the spliced vector as the input of a pre-trained comment generation model, and generating comments of the target article by using the comment generation model. According to the embodiment of the invention, the relevance of the comments and articles and the generalization ability and accuracy of the comment generation are improved.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of computer applications, and in particular to a method, device, server and storage medium for generating comments. Background technique [0002] With the popularization and development of Internet technology and the rise of various network multimedia, the ways and means for users to obtain various news information have been increased, the efficiency of people's reading news information has been improved, and people's lifestyles have been enriched. For example, users can download various news applications on their mobile phones, and read news anytime and anywhere through the news applications. However, each app contains a lot of unpopular news, and there are only a few or no comments in the comment area. For information producers, what it provides is not fully utilized. For apps, some news users have low participation. Cold start problem. [0003] Generally speaking, in order to a...

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): G06F17/27G06K9/62
CPCG06F40/289G06F40/30G06F18/214Y02D10/00
Inventor 潘禄陈玉光彭卫华罗雨刘远圳韩翠云施茜黄俊衡李法远
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD
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