Closed aolieman closed 11 years ago
I would feel better if you could first make a bug report in dbpedia-spotlight/dbpedia-spotlight :) Let's see what they have to say about that. I guess any JSON parser will convert "[1]"
into the language's Array type.
I will try and introduce a workaround for this.. though that's really patch-y haha
Okay, thanks for the workaround! Of course you are completely right about this being a dbpedia-spotlight issue. I reported it as issue #197 there.
Great :) Let's see what they have to say about that :)
Likely something that should also be fixed in Spotlight itself, but it should be easier to fix here.
It was a pretty long chunk of text, so I had to split it up to do manually with curl. Here is the request that causes the error:
The response (just the relevant part):
The issue is that "[1]" is present in the text, but is not encoded as a string by Spotlight. Could this be fixed by turning it into a string anyway? I'm guessing surfaceForm should always have a string value..