Skip to content

A simple text editor with suggestions generated from a Cantonese GPT2 model

Notifications You must be signed in to change notification settings

jedcheng/write-with-gpt2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

write-with-gpt2

A simple text editor with suggestions generated from a Cantonese GPT2 model

The model can be found here

It is a GPT2 model finetuned on a dataset of some Cantonese online novels. The model is trained on an Nvidia Quadro RTX6000 for 60hours.

The text editor was based on this.

Note: The model is not perfect. It is only trained on 700MB of data. The training data might includes inappropriate language.

Installation

  1. Install huggingface transformers according to the instructions here

Note: you have to install pytorch separately

  1. Download the model from here and put it in the directory write-with-gpt2/gpt2-base

Functionalities

  1. Change the font size
  2. Undo the generated text with control z (I still haven't figured out how to properly implement an undo function, but it works for undoing the generated text)

About

A simple text editor with suggestions generated from a Cantonese GPT2 model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages