Whaleshares Logo

NLG - Natural Language Generation

hemangmehtaPosted for Everyone to comment on, 5 years ago2 min read

Hey Guys,

We all know anout NLP, but have you heard of NLG?

NLG is Natural Language Generation , the task of generating sentences in human language. Or you can say it is younger brother of NLP.

1__TV_ZLIhZpmX7HpMODwmiA.png

The inputs to an NLG system can be in many different forms. like It could be a keyword, a natural language sentence, a dictionary or maybe a spreadsheet with data.

The output from an NLG system would be text that is in a language that a human understands and speaks.

It's a great field that's usually categorized along with NLP.

Here are two Python libraries you can use to do NLG.

  1. Markovify - It help you can predict the state of the next word. It is an easy to use library that implements a simple extensible Markov chain generator.

  2. Textgenrnn - It is built on top of Keras for creating char-rnns. Max Woolf abstracts away so much, that it becomes almost trivial to generate text using RNNs!

Any other lib. have you used for NLG / NLP , please comment below.


PLEASE DON'T FORGET TO VOTE WITNESS

If you feel we write good things for community, kindly consider voting for @hemangmehta for witness.

How to vote ?

Go to https://whaleshares.io/~witnesses
Click on the ( ^ ) by @hemangmehta and if it turns blue. You've voted

Hope it will be great time together. Thanks for your time.

-Hemang Mehta

Sign Up to join this conversation, or to start a topic of your own.
Your opinion is celebrated and welcomed, not banned or censored!