How can I use stanford parser package?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ahsan123pk
    New Member
    • Jun 2010
    • 8

    #1

    How can I use stanford parser package?

    I have downloaded stanford parser package from web because I want to use it in my java program. I don't know that in which subfolder of jdk 1.5.0_22 should I extract the .rar files of stanford parser. Can any one tell me. I'll be thankful.
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Hi!

    If you want to use external libraries or sources, you don't have to have them in your jdk directory. If you're using a development environment (e.g. Eclipse, JBuilder, ...) you can include them there, otherwise you have to add them to the java classpath when using javac.

    The easiest way to do that would be if there's a .jar file in that archive you downloaded. In that case, just add the option
    Code:
    -cp C:\path\to\jar\file.jar;.
    to the arguments. (Assuming, you're in the directory of your program - otherwise replace the "." with the path to that.)

    Greetings,
    Nepomuk

    Comment

    Working...