Great! This worked just fine. Thank you! Ted
ted@linux-qdw9:~/trunk/opennlp-tools> bin/opennlp Usage: opennlp TOOL where TOOL is one of: SimpleTokenizer character class tokenizer TokenizerME learnable tokenizer TokenizerTrainer trainer for the learnable tokenizer TokenizerMEEvaluator evaluator for the learnable tokenizer TokenizerCrossValidator 10-fold cross validator for the learnable tokenizer TokenizerConverter DictionaryDetokenizer SentenceDetector learnable sentence detector SentenceDetectorTrainer trainer for the learnable sentence detector SentenceDetectorEvaluatorevaluator for the learnable sentence detector SentenceDetectorCrossValidator 10-fold cross validator for the learnable sentence detector SentenceDetectorConverter TokenNameFinder learnable name finder TokenNameFinderTrainer trainer for the learnable name finder TokenNameFinderEvaluator TokenNameFinderConverter converts foreign data formats to native format CensusDictionaryCreator Converts 1990 US Census names into a dictionary POSTagger learnable part of speech tagger POSTaggerTrainer trains a model for the part-of-speech tagger POSTaggerEvaluator POSTaggerConverter ChunkerME learnable chunker ChunkerTrainerME trainer for the learnable chunker ChunkerEvaluator Measures the performance of the Chunker model with the reference data ChunkerCrossValidator 10-fold cross validator for the chunker ChunkerConverter converts foreign data formats to native format Parser performs full syntactic parsing ParserTrainer trains the learnable parser BuildModelUpdater trains and updates the build model in a parser model CheckModelUpdater trains and updates the check model in a parser model TaggerModelReplacer replaces the tagger model in a parser model All tools print help when invoked with help parameter Example: opennlp SimpleTokenizer help On Thu, Jan 20, 2011 at 7:34 PM, [email protected] <[email protected]> wrote: > It will be easier when the build system be ready, but for now you can use > the following commands: > > - Go to the folder <project-root>/opennlp-tools > - Execute the command: > mvn dependency:copy-dependencies -DoutputDirectory="lib" > to copy the libraries to lib folder > - Copy the file <project-root>/opennlp-tools/target/opennlp-tools-1.5.1- > incubating-SNAPSHOT.jar to <project-root>/opennlp-tools > - Now we are ready to execute: > bin/opennlp > > Regards > William > > On Thu, Jan 20, 2011 at 11:27 PM, Ted Pedersen <[email protected]> wrote: > >> Hi Jorn, >> >> Perfect! I was able to run the documentAnalyzer.sh just fine with the >> Pear demo! It's all very nicely put together, I'm looking forward to >> working with this more. >> >> One thing I noticed though was that when I went to the /bin directory >> to run openNLP from the command line, I got the following.... >> >> ted@linux-qdw9:~/trunk/opennlp-tools/bin> ./opennlp >> Unable to access jarfile ./../opennlp-tools-*.jar >> >> I also tried this... >> >> ted@linux-qdw9:~/trunk/opennlp-tools> bin/opennlp >> Unable to access jarfile bin/../opennlp-tools-*.jar >> >> I think when I use the binary version (which is what I normally do, up >> until today) I don't need to do anything in order to make the command >> line work...is there something additional I need to build or set to >> make the command line work when building from source? >> >> Thanks! >> Ted >> >> On Thu, Jan 20, 2011 at 6:33 PM, Jörn Kottmann <[email protected]> wrote: >> > On 1/21/11 1:22 AM, Ted Pedersen wrote: >> >> >> >> Thanks very much for your swift help. I think I made a great deal of >> >> progress, although I didn't quite get to the point of running the Pear >> >> demo... >> >> >> >> Here's what I did....perhaps someone can spot where I might have made >> >> a false move...? >> > >> > No looks like you did anything correct. >> > >> > In my opinion that is the problem you encounter: >> > https://issues.apache.org/jira/browse/OPENNLP-75 >> > >> > The install.xml contains a kind of classpath, the jar names >> > in this path seem to be invalid, I fixed it now and checked in. >> > >> > I guess it works, I but do not have time to test it right away, >> > but maybe you will, please report you results back. >> > >> > Jörn >> > >> >> >> >> -- >> Ted Pedersen >> http://www.d.umn.edu/~tpederse <http://www.d.umn.edu/%7Etpederse> >> > -- Ted Pedersen http://www.d.umn.edu/~tpederse
