go ahead... be a heretic | |
PerlMonks |
Re: The (futile?) quest for an automatic paraphrase engineby jonadab (Parson) |
on May 17, 2004 at 20:43 UTC ( [id://354103]=note: print w/replies, xml ) | Need Help?? |
This seems impressive, if you use the supplied sample text and ask the questions suggested in the hint. When you deviate from that, however, things get weird. For example, with the same supplied sample input, try asking these questions:
Mild Spoiler:
As near as I can tell, it's just finding the sentence with the largest number of words matching what you asked, removing the words in your question, and spitting back the rest of the sentence verbatim. This is still better than Eliza, but not much. Even better, feed it the info from the top of this thread...
;$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$;[-1]->();print
In Section
Seekers of Perl Wisdom
|
|