Thank you for the answer Pablo! I will fix this bug and try to use Luke ;)

Cheers,

Sandro.


2012/8/6 Pablo N. Mendes <[email protected]>

>
> Great work, Sandro!
>
> allCandidates may be empty if none of the spotted surface forms have
> mappings to URIs in your candidate index. This is unlikely, but possible,
> so we should check for that before trying to convert it to an array. If the
> variable is empty, it is pointless to execute the method "query". Can you
> please also fix this bug and send us a pull request?
>
> Now, you should make sure if it really makes sense that your allCandidates
> is empty. You can use Luke to inspect your Lucene index and make sure that
> the spotted surface forms are really not there.
>
> Cheers,
> Pablo
>
> On Mon, Aug 6, 2012 at 2:58 PM, Sandro Coelho <[email protected]>wrote:
>
>> Hi all
>>
>>
>>
>> After a little changes on the code, I’ve ran ExtractCandidateMap,
>> ExtractOccsFromWikipedia, sort,IndexMergedOccurrences  etc.....And
>> Spotlight has started to annotate some texts (not only numbers and metrics
>> like my printscreen :D ).
>>
>>
>>
>> In my tests, I receive an error look likes the stack trace below….
>>
>>
>>
>> org.dbpedia.spotlight.exceptions.SearchException:
>> org.dbpedia.spotlight.exceptions.SearchException: Error searching for
>> surface form CONTEXT:brilh CONTEXT:jog CONTEXT:particip CONTEXT:par
>> CONTEXT:dos
>>
>>     at
>> org.dbpedia.spotlight.disambiguate.TwoStepDisambiguator.bestK(TwoStepDisambiguator.scala:137)
>>
>>     at
>> org.dbpedia.spotlight.disambiguate.TwoStepDisambiguator.disambiguate(TwoStepDisambiguator.scala:59)
>>
>>     at
>> org.dbpedia.spotlight.disambiguate.ParagraphDisambiguatorJ.disambiguate(ParagraphDisambiguatorJ.scala:44)
>>
>>     at
>> org.dbpedia.spotlight.web.rest.SpotlightInterface.disambiguate(SpotlightInterface.java:62)
>>
>>
>>
>>
>>
>> Analyzing  the code, the variable allCandidates is empty (debug.jpg)….
>> Has anyone ever seen it before? What am I doing wrong?
>>
>>
>>
>>
>>
>> Thanks in advance!
>>
>> --
>> Atenciosamente,
>> Sandro Athaide Coelho
>> Graduando em Ciência da Computação - UFJF
>> (32) 9123 0608
>> http://www.paradigmafuncional.com.br
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Dbp-spotlight-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users
>>
>>
>
>
> --
> ---
> Pablo N. Mendes
> http://pablomendes.com
> Events: http://wole2012.eurecom.fr (*Extended Deadline: Aug 6th 2012*)
>
>


-- 
Atenciosamente,
Sandro Athaide Coelho
Graduando em Ciência da Computação - UFJF
(32) 9123 0608
http://www.paradigmafuncional.com.br
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dbp-spotlight-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users

Reply via email to