Text Generation using RNN & GPT2

Amber Ivanna Trujillo
7 min readOct 30, 2023

Understanding Language

Language is one of the most complex aspects of our existence. We use language to communicate our thoughts and choices. Every language is defined with a list of characters called the alphabet, a vocabulary and a set of rules called grammar. Yet it is not a trivial task to understand and learn a language.

It takes years for a human to grasp a few languages, let alone become a master of it. Most languages have vast vocabularies which are ever expanding along with complex and fuzzy grammatical rules and structures. We see/think and write/share differently. To put simply, languages are ambiguous. The ambiguity, sarcasm, context, and continuous changes to usage patterns are some of the challenges associated with language.

Examples of ambiguity

Ambiguity, generally used in natural language processing, can be referred as the ability of being understood in more than one way. In simple terms, we can say that ambiguity is the capability of being understood in more than one way. Natural language is very ambiguous. NLP has the following types of ambiguities

  • The bowler made the batsman duck.(The word duck, is it verb or noun?)
  • Stolen painting found by tree.(The word tree, is it an actor or a place?)
  • Call me taxi — This statement might be asking the listener to literally say that the speaker is a taxi or could be used to tell someone to summon a taxi.

--

--

Amber Ivanna Trujillo

I am Executive Data Science Manager. Interested in Deep Learning, LLM, Startup, AI-Influencer, Technical stuff, Interviews and much more!!!