Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AI program to generate paragraph pattern

Is there any software or service or AI program who can rebuild an English paragraph using different set of vocabulary, grammar rules etc.

I mean to say, if the source paragraph is

“Gwalior is a good tourist place near to Jhansi. Jhansi is very famous due their queen Rani Laxmi Bai (Manikandana)”

Any software can generate its version or pattern like

“Rani Laxmi Bai (Manikandana) was the queen of Jhansi which is nearer to a good tourist palace Gwalior.”

Or something else. I know that 100% correctness is not possible until human intervention.

like image 475
Amit Kumar Gupta Avatar asked Jan 30 '11 02:01

Amit Kumar Gupta


People also ask

What is the AI text generator?

AI text generators generate texts from structured big data using – as the name suggests already – artificial intelligence. They are able to recognize both patterns and trends based on what has been written so far by humans and suggest new ideas to create more and sometimes even better texts.

Can AI write its own code?

Microsoft and Cambridge University researchers have developed artificial intelligence that can write code and called it DeepCoder. The tool can write working code after searching through a huge code database.

Does AI require coding?

Yes, if you're looking to pursue a career in artificial intelligence and machine learning, a little coding is necessary.

How do AI generators work?

They can combine styles, concepts, and attributes to create extraordinarily artistic and relevant images based on the written prompt. By analysing the internet's worth of images and their written descriptions, AI image generators learn what objects are and how they relate to each other.


2 Answers

This guy wrote a JavaScript app that generates corporate bullshit ready for distribution (He's also got a great buzzword bingo generator). It's not AI, it just simply follows linguistic rules. From what I understand of your question, you don't need AI, you could learn a lot from just studying what this guy did. He seeds the program with nouns, verbs, adjectives, adverbs, etc and generates text that your eyes can parse (it's grammatical but it doesn't necessarily make sense). If you're looking for something to write your thesis paper, you have a lot more looking to do.

From you're question, it looks like you're also looking for a program to parse English and generate the seed data for the formerly mentioned generator. Abiword uses such a grammar parser for grammar checking. I haven't looked at it in much depth, but I figure you could easily use it to list the parts of speech contained in a section of text. If you used this program to generate the seed data you could pump the output directly into the other program to generate more text.

like image 95
kelloti Avatar answered Nov 03 '22 21:11

kelloti


The python NLTK library does natural language parsing, including building parse trees which include whether a word is a verb, noun, tense etc. Perhaps you could take these trees and re-organize them according to some simple rules you come up with and verify. I don't think you would need too many rules before the results of your program are very different from the source document. Some example rules:

  • Replace words with synonyms
  • active voice to passive voice and vice-versa (The hunter saw the deer -> the deer was seen by the hunter)

http://www.nltk.org/

like image 32
riri Avatar answered Nov 03 '22 23:11

riri