jagosyed / ws4j

Automatically exported from code.google.com/p/ws4j
0 stars 0 forks source link

how to include OpenNLP in eclipse project #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
As-salam-o-alaikum 
     My friend  i am using eclipse and NetBeans both and now moving to Natural language processing with Java and going to use OpenNLP for my project, but I have no idea how to include OpenNLP in my project and how to use its api's for my project.
Following are some steps which I have done:

1)went to Apache website and downloaded four(4) files which was linked their.
2)unzip. one of them and get four jar files so called maxent,tools etc and 
copied it.
3)create my project in eclipse and in the directory of my project I created a 
folder called "lib" and pasted jar files here and after that I did add build 
path.

now I couldn't create objects of these api's..... why???
am i missing some steps?
do I have to do something more ........
also I'm not able to use these statements

import opennlp.tools...
import opennlp.maxent...etc ... why

Original issue reported on code.google.com by saroshma...@gmail.com on 18 Dec 2014 at 8:13

Attachments:

GoogleCodeExporter commented 8 years ago
If you are using maven, add the Opennlp dependency in pom.xml, otherwise add 
the required jars in lib folder and add that path in Java build path. Then it 
should work.

Original comment by Nishuta...@gmail.com on 2 Apr 2015 at 8:38