If you want a brute-force solution, one approach would
be to first create an engine that solves the reverse
problem. That is, given the set of facts, create a
routine that generates examples of the type of input
that you would like to be able to handle.
If you create an exhaustive list of all the possible
inputs, this list could be used as a lookup table
to map your desired input back to the output.
Since the list of inputs is so large, you'll want
to find ways to remove the redundancies in the list.
You can think of the various AI techniques as being clever
ways to make the length of the list smaller by using
perl code.
Take a look at all the Lingua modules, such as
Lingua::Stem. Some of these modules are
quite inspiring!
There is nothing wrong with working
on a 'grand challenge' type of problem, even if
you are an amateur. I have worked on some of these
challenges. When I get something working reasonably
well, people say something like,
"Oh, of course, if that's all you want, it is easy.
The really hard part is..."
It should work perfectly the first time! - toma
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.