2

I am using Alchemy API for named entity extraction. For this, I am using Python library given by alchemy. I am able to get the results in XML, but I am not able to figure out how to get the results in JSON. Running the following code, I could get the entities in XML.

entities = alchemyObj.HTMLGetRankedNamedEntities(htmlFile, htmlFile);
print entities

How to set the output mode to JSON in the above code.

funnyguy
  • 513
  • 3
  • 6
  • 15
  • 1
    what happens if you specify `outputMode='json'` argument? – jfs Mar 20 '12 at 07:38
  • Hi Sebastian, Thanks for the reply. I have tried giving that, but it dindn't work. I could tweak the API library and could the results now in 'json'. – funnyguy Mar 21 '12 at 09:00

0 Answers0