Am 10.07.2012 18:45, schrieb Pablo Mendes:
David,
you can always check the list archives to see if your message was sent.

Do you observe the same problem calling from cURL?

Cheers,
pablo

On Tue, Jul 10, 2012 at 5:45 PM, David Gösenbauer <[email protected] <mailto:[email protected]>> wrote:

    Dear DBpedia-Spotlight Users and Devs!

    As I'm using dbp-spotlight for a project of mine I came across
    some weird behaviour. I'm using dbpsl via REST interface and I
    could see that if I provide the same data to it the results'
    similarity score I get differs though I don't alter any parameters.

    *The text would be:*
    /When we think about learning our ABCs, the alphabet and the
    basics of language come to mind—all vital for communication. Well,
    we live in a time when it seems the basic ABCs of Christianity are
    not being taught in America as they once were. Over the years,
    I've met many people who teach Sunday school (or lead a youth or
    adult Bible study) who have told me that so much of their material
    now seems so watered down. In fact, as someone said to me, “I'm
    tired of the fluff and stuff.”/

    *Parameters:*
    "confidence": "0.0"
    "support": "30"
    "types": ""
    "sparql": ""
    "policy": "whitelist"

    *(partial) Result 1:*

        {
          "URI": "http://dbpedia.org/resource/Learning";
    <http://dbpedia.org/resource/Learning>,
          "support": "523",
          "types":
    
"Freebase:/media_common/quotation_subject,Freebase:/media_common,Freebase:/projects/project_focus,Freebase:/projects,DBpedia:TopicalConcept",
          "surfaceForm": "learning",
          "offset": "20",
    *"similarityScore": "0.00971667468547821",*
          "percentageOfSecondRank": "-1.0"
        },

    *(partial) Result 2:*

        {
          "URI": "http://dbpedia.org/resource/Learning";
    <http://dbpedia.org/resource/Learning>,
          "support": "523",
          "types":
    
"Freebase:/media_common/quotation_subject,Freebase:/media_common,Freebase:/projects/project_focus,Freebase:/projects,DBpedia:TopicalConcept",
          "surfaceForm": "learning",
          "offset": "20",
    *  "similarityScore": "0.011633150279521942",*
          "percentageOfSecondRank": "-1.0"
        },

    Funny thing is that those are the only variations I get when
    querieng the REST interface with the said parameters and text.
    Additionally those fluctuations don't seem to happen when using
    the demo and showing the n-best candidates!

    I hope we can fix this so I don't have to exclude the similarity
    from my equation. If there is any additional information I could
    provide just tell me :).

    Regards,
    David

    P.S.: If this double-posts I apologize for spamming but I wasn't
    sure if I had an active subscription. So I resubscribed and sent
    this again.


    
------------------------------------------------------------------------------
    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]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users




--
---
Pablo N. Mendes
http://pablomendes.com
Events: http://wole2012.eurecom.fr <http://wole2012.eurecom.fr/> (*Deadline: July 31st 2012*)

Hi Pablo!

Yes it's the same dilemma. I tried with:

/curl http://spotlight.dbpedia.org/rest/annotate -d disambiguator=Document -d text=When+we+think+about+learning+our+ABCs%2C+the+alphabet+and+the+basics+of+language+come+to+mind%E2%80%94all+vital+for+communication.+Well%2C+we+live+in+a+time+when+it+seems+the+basic+ABCs+of+Christianity+are+not+being+taught+in+America+as+they+once+were.+Over+the+years%2C+I%E2%80%99ve+met+many+people+who+teach+Sunday+school+%28or+lead+a+youth+or+adult+Bible+study%29+who+have+told+me+that+so+much+of+their+material+now+seems+so+watered+down.+In+fact%2C+as+someone+said+to+me%2C+%E2%80%9CI%E2%80%99m+tired+of+the+fluff+and+stuff.%E2%80%9D -d confidence=0.0 -d support=30 -H "Accept:application/json"/

This looks more like some numeric-type related issue, happened to me a lot when using Java and making calculations with numbers having a lot of decimals. Do you guys make use of BigDecimal class?

Regards,
Dave

------------------------------------------------------------------------------
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