Dear all,
I am locally running a Spotlight instance and I am having troubles with finding
the right mentions' offsets.
I am using the code here:
https://github.com/dbpedia-spotlight/dbpedia-spotlight/tree/master/eval/src/main/java/org/dbpedia/spotlight/evaluation/external
( AnnotationClient.java and DBpediaSpotlightClient.java ) in order to annotate
a text file. This text file consists of several lines.
The result I get, contains the offset for each mention found but this offset
seems to be correct with respect to the line where the mention was found but
not with respect to the whole text file content. For example, if I have the
following file content consisting of three lines :
Line 1: Paris is the capital of France.
Line 2: Paris is referred to as the city of light.
Line 3: Paris is situated in the north of France.
As output (considering the JSON object result of parsing), the three mentions
of Paris will be represented with exactly the same information, among which the
same offset too:
{"@surfaceForm":" Paris ","@URI" :" http://dbpedia.org/resource/ Paris ","@
offset ":" 0 ","@ similarityScore":"0. 9998324035994849","@types":"
Schema:Place,DBpedia:Place, DBpedia:PopulatedPlace,
DBpedia:Settlement","@support" :"75243","@ percentageOfSecondRank":"1.
4542452987746077E-4"},
Could you please let me know how can I find the right offset of each mention
with respect to the whole text file?
Thank you in advance,
Pajolma
------------------------------------------------------------------------------
_______________________________________________
Dbp-spotlight-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users