lesk-wsd-dsm icon indicating copy to clipboard operation
lesk-wsd-dsm copied to clipboard

Lucene Error

Open fatmas1982 opened this issue 6 years ago • 1 comments

I tried to run this command ./run.sh -i test.plain -o out.plain -cm doc -f plain -dsm ./resources/dsm/termvectors_en.bin -lang en -sc ./resources/sense/sense.freq -sf bn -c max -of plain -depth 1 But i get this error

Run Lesk-wsd-dsm algorithm... Nov 22, 2018 10:40:19 PM di.uniba.it.exec.RunWSD main INFO: Init... Exception in thread "main" java.lang.NoSuchMethodError: org.apache.lucene.store.FSDirectory.open(Ljava/io/File;)Lorg/apache/lucene/store/FSDirectory; at di.uniba.it.wsd.dsm.LuceneVectorStore.init(LuceneVectorStore.java:68) at di.uniba.it.exec.RunWSD.main(RunWSD.java:144)

Could you help me ?

fatmas1982 avatar Nov 22 '18 20:11 fatmas1982

Hi, it seems that you are trying to use a different Lucene version with respect to the one reported in the pom file. Please, try the following steps:

  • check out the GitHub project
  • run the command "ant jar" on the project directory, the project is an ANT project
  • try to run the algorithm

pippokill avatar Nov 23 '18 16:11 pippokill