Blog coding and discussion of coding about JavaScript, PHP, CGI, general web building etc.

Tuesday, March 22, 2016

AI program to generate paragraph pattern

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.

Answer by kelloti for AI program to generate paragraph pattern


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.

Answer by riri for AI program to generate paragraph pattern


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/

Answer by oosterwal for AI

program to generate paragraph pattern

Here are a few links to various programs to alter written text. One of them should be able to provide you with some tips on how to implement what you're looking for.

Answer by Jason for AI program to generate paragraph pattern


Rapid Rewrite is a software that can do what you want: http://www.rapidrewriter.com/?hop=qushy It's not free though, and the website is terrible.

Here's another one - same story http://thebestspinner.com/?id=eprocent

watch their video and tell me that's not what you are looking for...

Answer by GalacticJello for AI program to generate paragraph pattern


I disagree that NLP is not the path you need to follow.

However, if you don't want to go the NLP route, you could generate some good sounding sentences without using NLP, by training a custom language model using n-grams to build a fourth or fifth order model. You would then use statistical probability to generate your sentences.

Once you have your model, you randomly pick a starting word (in the domain of known sentence starting words, or words that begin with a capital letter), and then use conditional probablitily to pick the next word.

An easy example of this is in this article: Wordmills are coming...

Of course, you would need ample training material in order to accomplish this, as just training on a simple paragraph would not work well for the way you want to rephrase a paragraph. Without using NLP techniques to detect nouns, verbs, etc. from your sample paragraph (which would require well trained models as well), and then rearranging them using an opposite sentence structure would be more effort than just using NLP in the first place.

What you are trying to do is perform entity extraction, and also location awareness. Not only that, but relationships between entities and locations. A very tall order if you are not going to use any NLP.


Fatal error: Call to a member function getElementsByTagName() on a non-object in D:\XAMPP INSTALLASTION\xampp\htdocs\endunpratama9i\www-stackoverflow-info-proses.php on line 72

Related Posts:

0 comments:

Post a Comment

Popular Posts

Fun Page

Powered by Blogger.