An open API service indexing awesome lists of open source software.

https://github.com/sleepingcat4/bert-textgeneration

A complete guide in generating text using bert and fine-tune
https://github.com/sleepingcat4/bert-textgeneration

bert-fine-tuning bert-model text-generation tranformers

Last synced: 8 months ago
JSON representation

A complete guide in generating text using bert and fine-tune

Awesome Lists containing this project

README

          

BERT for Text Generation


Recently, text generation models like GPT and T5 have been the talk of the town. However, I wanted to explore the capabilities of text generation using BERT - one of the first large language models that has been instrumental in the progress of NLP. While BERT is primarily known for sentimental and classification tasks, I was curious to see if it could generate a few words or sentences as well.


What did I find?


BERT is indeed capable of generating words within a sentence by predicting masked words in a reasonable manner. However, when it comes to generating full sentences, it faces certain obstacles such as tokenizer limitations and the issue of hallucination.


What's the repository for?


This repository aims to compile all known techniques that can be employed to generate text of any length using the original BERT core architecture.


Why did I create this?


I created this small project to experiment with well-known NLP models. There's a lot to learn from attempting tasks with a model that isn't specifically designed for it. Even a little success can be rewarding!


Author's Note


I welcome contributions to this project! Please feel free to add any additional techniques that I may have missed.