Hello Itziar,
I've not used the SpotXmlParser before, but using the regular spotter gives
you back a list of candidates on the spots found in the given input text.
i.e:
http://spotlight.sztaki.hu:2222/rest/candidates/?confidence=0.2&support=20&&text=Washington%20is%20a%20big%20city
I guess the problem might have to do with using `spotter=SpotXmlParser`...
I will take a look at what's the stacktrace..
On Wed, Sep 3, 2014 at 12:00 PM, Itziar Aldabe <[email protected]> wrote:
> Hi all,
>
> I've been using both http://spotlight.dbpedia.org/rest and
> http://spotlight.sztaki.hu:2222/rest web services and noticed that while
> in the first one it is possible to use the "candidates" option given a
> spotted text, the same option is not available in the statistical
> implementation. It returns the following error:
> "error on line 1 at column 1: Document is empty"
>
> Is there any way of using a spotted text and obtaining a list of
> candidates with the statistical model?
>
> The examples I used are:
>
> http://spotlight.dbpedia.org/rest/candidates/?spotter=SpotXmlParser&text=
> <annotation text="Brazilian oil giant Petrobras and U.S. oilfield service
> company Halliburton have signed a technological cooperation agreement,
> Petrobras announced Monday. The two companies agreed on three projects:
> studies on contamination of fluids in oil wells, laboratory simulation of
> well production, and research on solidification of salt and carbon dioxide
> formations, said Petrobras. Twelve other projects are still under
> negotiation."><surfaceForm name="Brazilian" offset="0"/><surfaceForm name="
> oil" offset="10"/></annotation>
>
> and
>
>
>
> http://spotlight.sztaki.hu:2222/rest/candidates/?spotter=SpotXmlParser&text=
> <annotation text="Brazilian oil giant Petrobras and U.S. oilfield service
> company Halliburton have signed a technological cooperation agreement,
> Petrobras announced Monday. The two companies agreed on three projects:
> studies on contamination of fluids in oil wells, laboratory simulation of
> well production, and research on solidification of salt and carbon dioxide
> formations, said Petrobras. Twelve other projects are still under
> negotiation."><surfaceForm name="Brazilian" offset="0"/><surfaceForm name="
> oil" offset="10"/></annotation>
>
>
> Thanks in advance,
> Itziar Aldabe
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds. Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Dbp-spotlight-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users
>
>
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Dbp-spotlight-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users