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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com