Syntactic Confectionery Delight | |
PerlMonks |
Re^2: Natural Language Sentence Productionby Camel_thirst (Friar) |
on Sep 23, 2005 at 10:56 UTC ( [id://494463]=note: print w/replies, xml ) | Need Help?? |
I agree with Nitsuj and I'll do a search on Scirus as well... First in sentence generation, usually there is a distinction between 'syntax'/'grammar' and 'semantics'. First constraint is that your auto-generated sentences are grammatically correct, second is that they actually mean something sensible. From what I gather from your post, you only need them to be grammatically correct, not meaningful. In fact, your initial corpus (magnet elements) need to be mapped (using XML for instance) so each element is described by several attributes (noun/adjective/verb, singular/plural, or even genre if the language you are using makes the distinction between masc./fem./neutr...) Some words, especially prepositions, or prepositional verbs, can create a lot of trouble as to their linkage with other elements. You'll find such grammar descriptive models in publications,for example here : Yet Another Head Driven Generator of Natural Language EJ
In Section
Seekers of Perl Wisdom
|
|