freme-project / freme-ner

Apache License 2.0
6 stars 1 forks source link

Problem with global airports dataset #26

Closed jnehring closed 9 years ago

jnehring commented 9 years ago

I tried out global airports dataset. This query

curl -X POST --header "Content-Type: text/n3" --header "Accept: text/n3" -d "BER airport will take forever to be finished. And how about London Stansted?" "http://api.freme-project.eu/0.3/e-entity/freme-ner/documents?informat=text&outformat=turtle&language=en&dataset=global_airports"

produces this output

@prefix nif:   <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#> .
@prefix itsrdf: <http://www.w3.org/2005/11/its/rdf#> .
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .

<http://freme-project.eu/#char=60,75>
        a                     nif:RFC5147String , nif:Phrase , nif:Word , nif:String ;
        nif:anchorOf          "London Stansted"^^xsd:string ;
        nif:beginIndex        "60"^^xsd:int ;
        nif:endIndex          "75"^^xsd:int ;
        nif:referenceContext  <http://freme-project.eu/#char=0,76> ;
        itsrdf:taClassRef     []  .

<http://freme-project.eu/#char=0,3>
        a                     nif:RFC5147String , nif:Phrase , nif:Word , nif:String ;
        nif:anchorOf          "BER"^^xsd:string ;
        nif:beginIndex        "0"^^xsd:int ;
        nif:endIndex          "3"^^xsd:int ;
        nif:referenceContext  <http://freme-project.eu/#char=0,76> ;
        itsrdf:taClassRef     []  .

<http://freme-project.eu/#char=0,76>
        a               nif:RFC5147String , nif:String , nif:Context ;
        nif:beginIndex  "0"^^xsd:int ;
        nif:endIndex    "76"^^xsd:int ;
        nif:isString    "BER airport will take forever to be finished. And how about London Stansted?"^^xsd:string .

So the two airports in the text are identified as airports but the class is empty and there is no link.

nilesh-c commented 9 years ago

global-airports is already there. This depends on #33 and #15.

m1ci commented 9 years ago

Hi Jan, the "global airports" dataset can be already consumed via FREME NER. Check

curl -v -X POST "http://api-dev.freme-project.eu/current/e-entity/freme-ner/documents/?informat=text&outformat=turtle&language=en&dataset=global_airports" -d "Mangshi Airport" -H "Content-Type:"

The taIdentRef and taClassRef information have been also fixed - bug in the code.

jnehring commented 9 years ago

I tried above curl again and now it works.