PDA

View Full Version : KEA Keyphrase Extractor



gvanto
06-20-2008, 02:46 AM
Hey guys,

I am trying to install the KEA package (http://www.nzdl.org/Kea/download.html) and have followed these instructions exactly: http://www.nzdl.org/Kea/Download/Kea-5.0-Readme.txt

But I get the error below...

Any help would be much appreciated here!

Best regards,
Gert

------------------------------------------------------------------------------------


ltsmm@gertlx:~/olena/kea-5.0_full$ javac TestKea.java
TestKea.java:1: package kea.main does not exist
import kea.main.KEAKeyphraseExtractor;
^
TestKea.java:2: package kea.main does not exist
import kea.main.KEAModelBuilder;
^
TestKea.java:3: package kea.stemmers does not exist
import kea.stemmers.*;
^
TestKea.java:4: package kea.stopwords does not exist
import kea.stopwords.*;
^
TestKea.java:19: cannot find symbol
symbol : class KEAModelBuilder
location: class TestKea
private KEAModelBuilder km;
^
TestKea.java:20: cannot find symbol
symbol : class KEAKeyphraseExtractor
location: class TestKea
private KEAKeyphraseExtractor ke;
^
TestKea.java:25: cannot find symbol
symbol : class KEAModelBuilder
location: class TestKea
km = new KEAModelBuilder();
^
TestKea.java:55: cannot find symbol
symbol : class PorterStemmer
location: class TestKea
km.setStemmer(new PorterStemmer());
^
TestKea.java:58: cannot find symbol
symbol : class StopwordsEnglish
location: class TestKea
km.setStopwords(new StopwordsEnglish());
^
TestKea.java:74: cannot find symbol
symbol : class KEAKeyphraseExtractor
location: class TestKea
ke = new KEAKeyphraseExtractor();
^
TestKea.java:105: cannot find symbol
symbol : class PorterStemmer
location: class TestKea
ke.setStemmer(new PorterStemmer());
^
TestKea.java:108: cannot find symbol
symbol : class StopwordsEnglish
location: class TestKea
ke.setStopwords(new StopwordsEnglish());
^
12 errors

Mark
06-20-2008, 03:42 AM
I haven't ever used KEA, but it looks like your problem is CLASSPATH related. What does typing "echo $KEAHOME" and "echo $CLASSPATH" show?

Cheers,
Mark.