NLP libray used : Stanford CoreNLP
Core logic is in the Main.java class, feel free to review/modify.
The logic simply do the following tasks :
- Get the text and hold it in the input variable
- Load the default NER pre-trained model provided by library
- Feed the model to read the input variable
- Configure the loaded model to set the output in xml format
- Print out the result
- Java 8 (Jdk 1.8)
- Maven
git clone https://github.com/nicelord/stanford-nlp-basic.git
mvn clean package
java -jar target\stanford-nlp-basic-1.0-SNAPSHOT.jar