Changes between Version 18 and Version 19 of private/NlpInPracticeCourse/NamedEntityRecognition
- Timestamp:
- Oct 2, 2019, 10:05:58 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
private/NlpInPracticeCourse/NamedEntityRecognition
v18 v19 56 56 1. train the model using the default settings (cnec.prop), N.B. that the `convert_cnec_stanford.py` only recognizes PERSON, LOCATION and ORGANIZATION, you can extend the markup conversion later: 57 57 {{{ 58 java -cp stanford-ner-201 7-06-09/stanford-ner.jar \58 java -cp stanford-ner-2018-10-16/stanford-ner.jar \ 59 59 edu.stanford.nlp.ie.crf.CRFClassifier \ 60 60 -prop cnec.prop … … 67 67 1. evaluate the model on `dtest`: 68 68 {{{ 69 java -cp stanford-ner-201 7-06-09/stanford-ner.jar \69 java -cp stanford-ner-2018-10-16/stanford-ner.jar \ 70 70 edu.stanford.nlp.ie.crf.CRFClassifier \ 71 71 -loadClassifier cnec-3class-model.ser.gz \ … … 85 85 10. evaluate the model on `dtest` with only NEs that are not present in the train data: 86 86 {{{ 87 java -cp stanford-ner-201 7-06-09/stanford-ner.jar \87 java -cp stanford-ner-2018-10-16/stanford-ner.jar \ 88 88 edu.stanford.nlp.ie.crf.CRFClassifier \ 89 89 -loadClassifier cnec-3class-model.ser.gz \ … … 94 94 11. test on your own input: 95 95 {{{ 96 java -mx600m -cp stanford-ner-201 7-06-09/stanford-ner.jar \96 java -mx600m -cp stanford-ner-2018-10-16/stanford-ner.jar \ 97 97 edu.stanford.nlp.ie.crf.CRFClassifier \ 98 98 -loadClassifier cnec-3class-model.ser.gz -textFile sample.txt