You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by Joseph M'Bimbi-Bene <jb...@object-ive.com> on 2013/08/22 17:26:24 UTC
no text annotations in rdf response for Stanford nlp engine
Hello, i want to use the Stanford ner tool to annotate entities in english
text. The problem is that i get entities such as dates and others (their
type being referred to as "Others") in the web console but i don't get
anything besides "person" "place" and organisation in the RDF response.
--------------------------
here is the text i am using:
Henri Philippe Benoni Omer Joseph Pétain (24 April 1856 – 23 July 1951),
generally known as Philippe Pétain (French: [fi.lip pe.tɛ̃]), Marshal
Pétain (Maréchal Pétain), or The Lion of Verdun, was a French general who
reached the distinction of Marshal of France, and was later Chief of State
of Vichy France (Chef de l'État Français), from 1940 to 1944. Pétain, who
was 84 years old in 1940, ranks as France's oldest head of state.
Because of his outstanding military leadership in World War I, particularly
during the Battle of Verdun, he was viewed as a national hero in France.
With the imminent fall of France in June 1940, Pétain was appointed Premier
of France by President Lebrun at Bordeaux, and the Cabinet resolved to make
peace with Germany. The entire government subsequently moved briefly to
Clermont-Ferrand, then to the spa town of Vichy in central France. His
government voted to transform the discredited French Third Republic into
the French State, an authoritarian regime. As the war progressed, the
government at Vichy collaborated with the Germans, who in 1942 finally
occupied the whole of metropolitan France because of the threat from North
Africa. Pétain's actions during World War II resulted in his conviction and
death sentence for treason, which was commuted to life imprisonment by his
former protégé Charles de Gaulle. In modern France he is remembered as an
ambiguous figure, while pétainisme is a derogatory term for certain
reactionary policies.
----------------------------
here are some entities i get from the web interface:
People: Charles de Gaulle, Lebrun, Philippe Pétain, Vichy
Others: 1940 to 1944, 1942, French, World War
-----------------------------
Here are the list of entities returned in the rdf response of Stanbol:
Charles de Gaulle@en http://dbpedia.org/ontology/Person France@en
http://dbpedia.org/ontology/Place Henri Philippe Benoni Omer Joseph
Pétain@en http://dbpedia.org/ontology/Person France@en
http://dbpedia.org/ontology/Place North Africa@en
http://dbpedia.org/ontology/Place Bordeaux@en
http://dbpedia.org/ontology/Place France@en
http://dbpedia.org/ontology/Place Vichy@en
http://dbpedia.org/ontology/Place France@en
http://dbpedia.org/ontology/Place Vichy@en
http://dbpedia.org/ontology/Place France@en
http://dbpedia.org/ontology/Place Vichy France@en
http://dbpedia.org/ontology/Place Philippe Pétain@en
http://dbpedia.org/ontology/Person France@en
http://dbpedia.org/ontology/Place Charles de Gaulle@en
http://dbpedia.org/ontology/Person Verdun@en
http://dbpedia.org/ontology/Place Henri Philippe Benoni Omer Joseph
Pétain@en http://dbpedia.org/ontology/Person Verdun@en
http://dbpedia.org/ontology/Place Germany@en
http://dbpedia.org/ontology/Place France@en
http://dbpedia.org/ontology/Place Verdun@en
http://dbpedia.org/ontology/Place Cabinet@en
http://dbpedia.org/ontology/Organisation Pétain@en
http://dbpedia.org/ontology/Person France@en
http://dbpedia.org/ontology/Place France@en
http://dbpedia.org/ontology/Place Vichy@en
http://dbpedia.org/ontology/Person North Africa@en
http://dbpedia.org/ontology/Place Pétain@en
http://dbpedia.org/ontology/Person Marshal Pétain@en
http://dbpedia.org/ontology/Person France@en
http://dbpedia.org/ontology/Place France@en
http://dbpedia.org/ontology/Place France@en
http://dbpedia.org/ontology/Place Philippe Pétain@en
http://dbpedia.org/ontology/Person France@en
http://dbpedia.org/ontology/Place France@en
http://dbpedia.org/ontology/Place Lebrun@en
http://dbpedia.org/ontology/Person France@en
http://dbpedia.org/ontology/Place Verdun@en
http://dbpedia.org/ontology/Place Germany@en
http://dbpedia.org/ontology/Place Marshal Pétain@en
http://dbpedia.org/ontology/Person
i got them via the sparql query:
PREFIX dc:<http://purl.org/dc/terms/>
PREFIX fise:<http://fise.iks-project.eu/ontology/>
select ?name ?o
where {
{?s dc:type ?o}.
{?s fise:selected-text ?name}
}
I am also addressing the issue in th github of stanford nlp fir Stanbol
Re: no text annotations in rdf response for Stanford nlp engine
Posted by Joseph M'Bimbi-Bene <jb...@object-ive.com>.
OK thank you.
On Fri, Aug 23, 2013 at 6:27 AM, Rupert Westenthaler <
rupert.westenthaler@gmail.com> wrote:
> Hi Joseph,
>
> IMO this is cause by fise:TextAnnotations shown as "other" in the
> Stanbol UI do not define a dc:type. Therefore they do not get selected
> by your SPARQL query. See also my answer at [1].
>
> best
> Rupert
>
>
> [1] https://github.com/westei/stanbol-stanfordnlp/issues/1
>
> On Thu, Aug 22, 2013 at 5:26 PM, Joseph M'Bimbi-Bene
> <jb...@object-ive.com> wrote:
> > Hello, i want to use the Stanford ner tool to annotate entities in
> english
> > text. The problem is that i get entities such as dates and others (their
> > type being referred to as "Others") in the web console but i don't get
> > anything besides "person" "place" and organisation in the RDF response.
> >
> > --------------------------
> >
> > here is the text i am using:
> >
> > Henri Philippe Benoni Omer Joseph Pétain (24 April 1856 – 23 July 1951),
> > generally known as Philippe Pétain (French: [fi.lip pe.tɛ̃]), Marshal
> > Pétain (Maréchal Pétain), or The Lion of Verdun, was a French general who
> > reached the distinction of Marshal of France, and was later Chief of
> State
> > of Vichy France (Chef de l'État Français), from 1940 to 1944. Pétain, who
> > was 84 years old in 1940, ranks as France's oldest head of state.
> >
> > Because of his outstanding military leadership in World War I,
> particularly
> > during the Battle of Verdun, he was viewed as a national hero in France.
> > With the imminent fall of France in June 1940, Pétain was appointed
> Premier
> > of France by President Lebrun at Bordeaux, and the Cabinet resolved to
> make
> > peace with Germany. The entire government subsequently moved briefly to
> > Clermont-Ferrand, then to the spa town of Vichy in central France. His
> > government voted to transform the discredited French Third Republic into
> > the French State, an authoritarian regime. As the war progressed, the
> > government at Vichy collaborated with the Germans, who in 1942 finally
> > occupied the whole of metropolitan France because of the threat from
> North
> > Africa. Pétain's actions during World War II resulted in his conviction
> and
> > death sentence for treason, which was commuted to life imprisonment by
> his
> > former protégé Charles de Gaulle. In modern France he is remembered as an
> > ambiguous figure, while pétainisme is a derogatory term for certain
> > reactionary policies.
> >
> > ----------------------------
> >
> > here are some entities i get from the web interface:
> >
> > People: Charles de Gaulle, Lebrun, Philippe Pétain, Vichy
> > Others: 1940 to 1944, 1942, French, World War
> >
> > -----------------------------
> >
> > Here are the list of entities returned in the rdf response of Stanbol:
> >
> > Charles de Gaulle@en http://dbpedia.org/ontology/Person France@en
> > http://dbpedia.org/ontology/Place Henri Philippe Benoni Omer Joseph
> > Pétain@en http://dbpedia.org/ontology/Person France@en
> > http://dbpedia.org/ontology/Place North Africa@en
> > http://dbpedia.org/ontology/Place Bordeaux@en
> > http://dbpedia.org/ontology/Place France@en
> > http://dbpedia.org/ontology/Place Vichy@en
> > http://dbpedia.org/ontology/Place France@en
> > http://dbpedia.org/ontology/Place Vichy@en
> > http://dbpedia.org/ontology/Place France@en
> > http://dbpedia.org/ontology/Place Vichy France@en
> > http://dbpedia.org/ontology/Place Philippe Pétain@en
> > http://dbpedia.org/ontology/Person France@en
> > http://dbpedia.org/ontology/Place Charles de Gaulle@en
> > http://dbpedia.org/ontology/Person Verdun@en
> > http://dbpedia.org/ontology/Place Henri Philippe Benoni Omer Joseph
> > Pétain@en http://dbpedia.org/ontology/Person Verdun@en
> > http://dbpedia.org/ontology/Place Germany@en
> > http://dbpedia.org/ontology/Place France@en
> > http://dbpedia.org/ontology/Place Verdun@en
> > http://dbpedia.org/ontology/Place Cabinet@en
> > http://dbpedia.org/ontology/Organisation Pétain@en
> > http://dbpedia.org/ontology/Person France@en
> > http://dbpedia.org/ontology/Place France@en
> > http://dbpedia.org/ontology/Place Vichy@en
> > http://dbpedia.org/ontology/Person North Africa@en
> > http://dbpedia.org/ontology/Place Pétain@en
> > http://dbpedia.org/ontology/Person Marshal Pétain@en
> > http://dbpedia.org/ontology/Person France@en
> > http://dbpedia.org/ontology/Place France@en
> > http://dbpedia.org/ontology/Place France@en
> > http://dbpedia.org/ontology/Place Philippe Pétain@en
> > http://dbpedia.org/ontology/Person France@en
> > http://dbpedia.org/ontology/Place France@en
> > http://dbpedia.org/ontology/Place Lebrun@en
> > http://dbpedia.org/ontology/Person France@en
> > http://dbpedia.org/ontology/Place Verdun@en
> > http://dbpedia.org/ontology/Place Germany@en
> > http://dbpedia.org/ontology/Place Marshal Pétain@en
> > http://dbpedia.org/ontology/Person
> > i got them via the sparql query:
> >
> > PREFIX dc:<http://purl.org/dc/terms/>
> > PREFIX fise:<http://fise.iks-project.eu/ontology/>
> > select ?name ?o
> > where {
> > {?s dc:type ?o}.
> > {?s fise:selected-text ?name}
> > }
> >
> > I am also addressing the issue in th github of stanford nlp fir Stanbol
>
>
>
> --
> | Rupert Westenthaler rupert.westenthaler@gmail.com
> | Bodenlehenstraße 11 ++43-699-11108907
> | A-5500 Bischofshofen
>
Re: no text annotations in rdf response for Stanford nlp engine
Posted by Rupert Westenthaler <ru...@gmail.com>.
Hi Joseph,
IMO this is cause by fise:TextAnnotations shown as "other" in the
Stanbol UI do not define a dc:type. Therefore they do not get selected
by your SPARQL query. See also my answer at [1].
best
Rupert
[1] https://github.com/westei/stanbol-stanfordnlp/issues/1
On Thu, Aug 22, 2013 at 5:26 PM, Joseph M'Bimbi-Bene
<jb...@object-ive.com> wrote:
> Hello, i want to use the Stanford ner tool to annotate entities in english
> text. The problem is that i get entities such as dates and others (their
> type being referred to as "Others") in the web console but i don't get
> anything besides "person" "place" and organisation in the RDF response.
>
> --------------------------
>
> here is the text i am using:
>
> Henri Philippe Benoni Omer Joseph Pétain (24 April 1856 – 23 July 1951),
> generally known as Philippe Pétain (French: [fi.lip pe.tɛ̃]), Marshal
> Pétain (Maréchal Pétain), or The Lion of Verdun, was a French general who
> reached the distinction of Marshal of France, and was later Chief of State
> of Vichy France (Chef de l'État Français), from 1940 to 1944. Pétain, who
> was 84 years old in 1940, ranks as France's oldest head of state.
>
> Because of his outstanding military leadership in World War I, particularly
> during the Battle of Verdun, he was viewed as a national hero in France.
> With the imminent fall of France in June 1940, Pétain was appointed Premier
> of France by President Lebrun at Bordeaux, and the Cabinet resolved to make
> peace with Germany. The entire government subsequently moved briefly to
> Clermont-Ferrand, then to the spa town of Vichy in central France. His
> government voted to transform the discredited French Third Republic into
> the French State, an authoritarian regime. As the war progressed, the
> government at Vichy collaborated with the Germans, who in 1942 finally
> occupied the whole of metropolitan France because of the threat from North
> Africa. Pétain's actions during World War II resulted in his conviction and
> death sentence for treason, which was commuted to life imprisonment by his
> former protégé Charles de Gaulle. In modern France he is remembered as an
> ambiguous figure, while pétainisme is a derogatory term for certain
> reactionary policies.
>
> ----------------------------
>
> here are some entities i get from the web interface:
>
> People: Charles de Gaulle, Lebrun, Philippe Pétain, Vichy
> Others: 1940 to 1944, 1942, French, World War
>
> -----------------------------
>
> Here are the list of entities returned in the rdf response of Stanbol:
>
> Charles de Gaulle@en http://dbpedia.org/ontology/Person France@en
> http://dbpedia.org/ontology/Place Henri Philippe Benoni Omer Joseph
> Pétain@en http://dbpedia.org/ontology/Person France@en
> http://dbpedia.org/ontology/Place North Africa@en
> http://dbpedia.org/ontology/Place Bordeaux@en
> http://dbpedia.org/ontology/Place France@en
> http://dbpedia.org/ontology/Place Vichy@en
> http://dbpedia.org/ontology/Place France@en
> http://dbpedia.org/ontology/Place Vichy@en
> http://dbpedia.org/ontology/Place France@en
> http://dbpedia.org/ontology/Place Vichy France@en
> http://dbpedia.org/ontology/Place Philippe Pétain@en
> http://dbpedia.org/ontology/Person France@en
> http://dbpedia.org/ontology/Place Charles de Gaulle@en
> http://dbpedia.org/ontology/Person Verdun@en
> http://dbpedia.org/ontology/Place Henri Philippe Benoni Omer Joseph
> Pétain@en http://dbpedia.org/ontology/Person Verdun@en
> http://dbpedia.org/ontology/Place Germany@en
> http://dbpedia.org/ontology/Place France@en
> http://dbpedia.org/ontology/Place Verdun@en
> http://dbpedia.org/ontology/Place Cabinet@en
> http://dbpedia.org/ontology/Organisation Pétain@en
> http://dbpedia.org/ontology/Person France@en
> http://dbpedia.org/ontology/Place France@en
> http://dbpedia.org/ontology/Place Vichy@en
> http://dbpedia.org/ontology/Person North Africa@en
> http://dbpedia.org/ontology/Place Pétain@en
> http://dbpedia.org/ontology/Person Marshal Pétain@en
> http://dbpedia.org/ontology/Person France@en
> http://dbpedia.org/ontology/Place France@en
> http://dbpedia.org/ontology/Place France@en
> http://dbpedia.org/ontology/Place Philippe Pétain@en
> http://dbpedia.org/ontology/Person France@en
> http://dbpedia.org/ontology/Place France@en
> http://dbpedia.org/ontology/Place Lebrun@en
> http://dbpedia.org/ontology/Person France@en
> http://dbpedia.org/ontology/Place Verdun@en
> http://dbpedia.org/ontology/Place Germany@en
> http://dbpedia.org/ontology/Place Marshal Pétain@en
> http://dbpedia.org/ontology/Person
> i got them via the sparql query:
>
> PREFIX dc:<http://purl.org/dc/terms/>
> PREFIX fise:<http://fise.iks-project.eu/ontology/>
> select ?name ?o
> where {
> {?s dc:type ?o}.
> {?s fise:selected-text ?name}
> }
>
> I am also addressing the issue in th github of stanford nlp fir Stanbol
--
| Rupert Westenthaler rupert.westenthaler@gmail.com
| Bodenlehenstraße 11 ++43-699-11108907
| A-5500 Bischofshofen