A simple Java Servlet based web service wrapping the NICTA NER library.
To build a WAR file simply run:
mvn
To run a local Tomcat server with the web service run:
mvn tomcat7:run
To use the service simply HTTP POST
some application/x-www-form-urlencoded
encoded UTF-8
text to the service URL, usually (unless using a customised service):
http://ner.t3as.org/nicta-ner-web/rest/v1.0/ner
The service will respond with application/json
content of the following format:
{
"phrases": [
[
{
"attachedWordMap": {},
"isDate": false,
"phrase": [
{
"startIndex": 0,
"text": "John"
},
{
"startIndex": 5,
"text": "Doe"
}
],
"phraseLength": 2,
"phrasePosition": 0,
"phraseStubLength": 2,
"phraseStubPosition": 0,
"phraseType": {
"entityClass": "PERSON"
},
"score": {
"ETHNIC": 0.0,
"LOCATION": 9.0,
"ORGANIZATION": 15.0,
"PERSON": 39.5
}
}
]
],
"tokens": [
[
{
"startIndex": 0,
"text": "John"
},
{
"startIndex": 5,
"text": "Doe"
}
]
]
}
the NICTA t3as Named-Entity Recognition library currently returns result classified into one of these classes:
UNKNOWN
PERSON
ORGANIZATION
LOCATION
ETHNIC
DATE