Text generation

Avatar of Lucien Lin.
Avatar of Lucien Lin.

Text generation

Software Engineer
Taipei City, Taiwan

Text generation

Purpose : Influenced by the hot chatGPT in recent years, the goal of this topic is to generate articles or sentences according to the existing text entered.

Dataset : IMDB.

Contains a large enough text file for training.

Development brief : Remove unnecessary elements from the data and use the TextVectorization layer to calculate the vocabulary to use. The concept of softmax temperature was introduced in the experiment, mainly to adjust the index of sampling probability distribution entropy.

Model :

Results from 60 epochs :

Because training this model requires a lot of computing power and more than 10 hours to reach the original preset 200 epochs. The hardware equipment is not good enough, so it only trains to 60 epochs. Therefore, the results are not particularly good.

Detail :

Influenced by the hot chatGPT in recent years, the goal of this topic is to generate articles or sentences according to the existing text entered.
Avatar of the user.
Please login to comment.

Published: Jan 19th 2023
51
8
0

Tools

google
Google
python
Python

Software engineer
Machine learning
Deep learning

Share