Text style migration method based on grammatical constraints and language model
A language model and style technology, applied in biological neural network models, natural language data processing, semantic analysis, etc., can solve problems such as inability to maintain semantic invariance well, and achieve the goal of increasing grammatical constraints and hidden semantic space Constraining, directing learning, effects of invariance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] Such as figure 1 As shown, a text style transfer method based on grammatical constraints and language models includes the following steps:
[0041] S1: Establish a network structure that extracts sentence grammatical information to obtain a grammatical relationship graph;
[0042] S2: Add the original style information and transferred style information to the grammatical relationship diagram obtained in S1 respectively, and obtain the grammatical relationship diagram containing original style information and transferred style information through its own graph-transformer network structure;
[0043] S3: Combining the original style information grammatical relationship diagram obtained in S2 and the transferred style information grammatical relationship diagram with the grammatical relationship diagram in S1 through the cross graph-transformer network structure to obtain a reconstructed sentence with original style information and a reconstructed sentence with transferre...
Embodiment 2
[0065] There are two data sets used in this experiment, one is the Yelp restaurant review set widely used in the text transfer task, and the other is the political review selected from the comments under the Facebook dynamics of members of the US Senate and House of Representatives. tend to the data set. The Yelp restaurant review set mainly contains two types of data, positive reviews and negative reviews, so its style is whether the emotion expressed by the sentence is positive or negative, and the goal of Yelp is to keep the meaning of the sentence unchanged. Transform positive emotions into negative emotions or convert negative emotions into positive emotions. The political orientation data set also mainly contains two types of data, comments from Democratic supporters and Republican supporters, so the style is whether the sentence comes from Democratic supporters or Republican supporters. The basic situation of the data set used in the present invention is shown in the f...
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