ben-aaron188 / netanos

NETANOS: Named entity-based Text Anonymization for Open Science'
https://www.npmjs.com/package/netanos
MIT License
10 stars 5 forks source link

Could not find or load main class edu.stanford.nlp.ie.NERServer #10

Open tanay13 opened 3 years ago

tanay13 commented 3 years ago

I am trying to setup netanos on my local machine but after putting the below command as mentioned in the documentation

java -mx1000m -cp "./stanford-ner.jar:lib/*" edu.stanford.nlp.ie.NERServer  -loadClassifier classifiers/english.muc.7class.distsim.crf.ser.gz -port 8080 -outputFormat inlineXML

I am getting this error

Could not find or load main class edu.stanford.nlp.ie.NERServer

I am using windows 10 and have java version "1.8.0_301" installed.

Can anyone help me in resolving this issue?

ben-aaron188 commented 3 years ago

Hi @tanay13 - Did you download the files from [https://nlp.stanford.edu/software/CRF-NER.html] (https://nlp.stanford.edu/software/CRF-NER.html) and follow the steps outlined there?

tanay13 commented 3 years ago

@ben-aaron188 yeah i did everything but eventually i figured out that instead of


java -mx1000m -cp "./stanford-ner.jar:lib/*" edu.stanford.nlp.ie.NERServer  -loadClassifier classifiers/english.muc.7class.distsim.crf.ser.gz -port 8080 -outputFormat inlineXML

When i did this it worked

java -mx1000m -cp "*" edu.stanford.nlp.ie.NERServer  -loadClassifier classifiers/english.muc.7class.distsim.crf.ser.gz -port 8080 -outputFormat inlineXML