Training a Custom Model using Java Code - Stanford NER

571 views Asked by At

Could someone help me to convert these lines to Java code, instead of using terminal?

I'm trying to train my own model using Stanford Ner:

java -cp stanford-ner.jar edu.stanford.nlp.process.PTBTokenizer jane-austen-emma-ch1.txt > jane-austen-emma-ch1.tok

perl -ne 'chomp; print "$_\tO\n"' jane-austen-emma-ch1.tok > jane-austen-emma-ch1.tsv

java -cp stanford-ner.jar edu.stanford.nlp.ie.crf.CRFClassifier -prop austen.prop

And must the training file be in .tsv format???

0

There are 0 answers