gagan3012 / keytotext

Keywords to Sentences

Home Page:https://share.streamlit.io/gagan3012/keytotext/UI/app.py

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add finetuning model to keytotext

gagan3012 opened this issue · comments

Is your feature request related to a problem? Please describe.
Its difficult to use it without fine-tuning on new corpus so we need to build script to finetune it on new corpus

from keytotext import KeytotextTrainer

model = KeytotextTrainer()
model.from_pretrained(model_name="t5-small")
model.train(data_df=df,batch_size=4, max_epochs=3, use_gpu=True)
model.save_model()

Trainer added