This is the program in java which is an interface to stanford postagger. I have attached a copy of it. I am using netbeans 6.7.1 . I have placed the model file which is "left3words-wsj-0-18.tagger" in the bin folder of jdk and also placed the stanford-postagger.jar in that folder.
I have included the the stanford project in the src folder of netbeans projects so I could import files easily.But when I run this program, it gives following errors or exceptions:
run:
Enter sentence(s) to be tagged:
large cats eat small rats.
Exception in thread "main" java.lang.Excep tionInInitializ erError
at testing.PosTagg er.tag(PosTagge r.java:18)
at testing.PosTagg er.main(PosTagg er.java:125)
Caused by: java.lang.Runti meException: Uncompilable source code - type parameter edu.stanford.nl p.ling.TaggedWo rd is not within its bound
at edu.stanford.nl p.tagger.maxent .MaxentTagger.< clinit>(MaxentT agger.java:189)
... 2 more
Java Result: 1
BUILD SUCCESSFUL (total time: 24 seconds)
How do I remove these errors to run it successfully?
I have included the the stanford project in the src folder of netbeans projects so I could import files easily.But when I run this program, it gives following errors or exceptions:
run:
Enter sentence(s) to be tagged:
large cats eat small rats.
Exception in thread "main" java.lang.Excep tionInInitializ erError
at testing.PosTagg er.tag(PosTagge r.java:18)
at testing.PosTagg er.main(PosTagg er.java:125)
Caused by: java.lang.Runti meException: Uncompilable source code - type parameter edu.stanford.nl p.ling.TaggedWo rd is not within its bound
at edu.stanford.nl p.tagger.maxent .MaxentTagger.< clinit>(MaxentT agger.java:189)
... 2 more
Java Result: 1
BUILD SUCCESSFUL (total time: 24 seconds)
How do I remove these errors to run it successfully?