Tuesday, February 3, 2009

Beginner instructions for OpenNLP

  • Build the tools, as per the readme.
  • Download the models and save them to
    [opennlpdir]/opennlp.models/[language]/[modeldir]/[model]
  • Make sure your classpath is set, e.g. before your run the tools, go to your opennlp dir and type
    CLASSPATH=`pwd`/output/opennlp-tools-1.4.3.jar:`pwd`/lib/maxent-2.5.2.jar:`pwd`/opennlp/lib/trove.jar:`pwd`opennlp/lib/jwnl-1.3.3.jar/
  • Now you can continue with the examples in the readme.

No comments: