ai-forever / ai-forever/ru-prompts

Controlling Text Generation with Sentiment as Attribute

オープン
#2 コメント 2 件 リアクション 0 件 担当者 1 名 @konodyuk が担当を希望しています GitHub で見る
主要言語
Python
スター
58
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

説明

Hello! Thank you for such an amazing tool.

I am trying to implement it for my task: i want model to generate texts according to one of three sentiments: positive, neutral, negative. I am not sure it is a text to text task but it is not a simple style transfer either... I tried preprocessing my df with customised preprocessing function:
![2023-01-30 09 56 39](https://user-images.githubusercontent.com/121341170/215408475-263f189f-efdd-4b02-af26-f0c2e92e5f63.jpg)

The traget field is a text which corresponds to a text column in my dataset (there is also a target column in a dataset which is a sentiment). The prompt has a format of "{target}". I used a model ruGPT3large but the results were not very good n the context of language and the attribute usage (however, the text would differ with different sentiments). Important to mention, the loss does not fall, it stays stable all training process:
![2023-01-30 10 04 59](https://user-images.githubusercontent.com/121341170/215410014-9fbffdd8-1f60-4e37-930c-e1d6a89a18f8.jpg)

What can be a problem here?

So, my task of controllable text generation does not probably suit text2text. However, in your notebooks there is no other preprocessing pipeline, only for text2text. I have read the article on Habr and you had there a generation pipeline 'text-generation-with-prompt'. How should I preprocess data then for this task? Or maybe I should use completely different strategy for the task?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。