Harvey::Harvey - Simple dialog module for testing parsings.
use Harvey::Harvey; my $H = Harvey->new(); $H->dialog(); # starts a dialog for working with verb parsings This module provides a simple dialog interface for testing the parsing qualities of Verb.pm.
new - constructor. dialog - starts a dialog. Put in sentences in lower case and no punctuation. Hit return to see the parsed verb and other info. Q quits the dialog. rdialog - takes a sentence as an argument and returns parsing info. Leaves the dialog handling up to the calling program.
None by default.
Chris Meyer, <lt>chris@mytechs.com<gt>
Copywrite (c) 2002, Chris Meyer. All rights reserved. This is free software and can be used under the same terms as Perl itself.
1.01
My heartfelt thanks to Adam Kilgarriff for his work on the BNC (British National Corpus) which forms the basis for the word.db. I have added and massaged it a bit, but I would never have gotten this far without it. The BNC can be visited at http://www.itri.brighton.ac.uc/~Adam.Kilgarriff/bnc-readme.html.
Harvey uses algorithms AND data to work. The program looks for a file called 'system.dat' in the startup directory. In this file it looks for a line that reads 'path=your_path', where your_path is the directory where the data resides.
Install modules in this order, Word.pm, Verb.pm and then Harvey.pm. Place the data files (noun.txt, verb.txt, adjective.txt, adverb.txt, word.txt and word.db) in a data directory and create a file called system.dat in your working directory to point to the data (see DATA LOCATION).
perl.
To install Harvey, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Harvey
CPAN shell
perl -MCPAN -e shell install Harvey
For more information on module installation, please visit the detailed CPAN module installation guide.