Method for generating style statement, method and apparatus for training model, and computer device
Abstract:
The present disclosure discloses a method for generating a styled sentence by a computer device. The method includes: obtaining a to-be-converted natural sentence, inputting the natural sentence into a first encoding model to filter style information in the natural sentence, and generating a target content vector corresponding to the natural sentence. The method also include determining, from at least one style vector according to a set target language style, a target style vector corresponding to the target language style; and inputting the target content vector and the target style vector into a first decoding model, and generating a styled sentence corresponding to the natural sentence.
Information query
Patent Agency Ranking
0/0