Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8155193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:35:58+00:00 2026-06-06T16:35:58+00:00

I am trying to write a small program, which would read the context of

  • 0

I am trying to write a small program, which would read the context of a txt file and sent it to Spotlight Web service in order to get semantic annotations (in text\html output format). Unfortunately, only a fragment of entities are “recognised” in comparison to Spotlight Demo.For example, using my program ,for a text like “Ridley Scott directed a number of movies including Alien , Terminator and Blade Runner” I am getting a response where “movies” and “Alien” are not annotated where in the demo they are. The same happens for larger texts.I was having a similar problem with OpenCalais WebService, but this was because I was trying to encode the input text using the command

     input = URLEncoder.encode(input, "UTF-8");

Once I comment this out, the problem was solved.Unfortunately this is not the case here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T16:36:00+00:00Added an answer on June 6, 2026 at 4:36 pm

    It would help if you posted the results obtained with the demo and with your program, alongside parameters used in the demo interface, so that we could try to understand what is happening. Without more info I am not sure I can help.

    But let’s do some guessing. I think it is one of these things:

    1. you did not set the parameters confidence and support, so it could be that the results to your web service call are being filtered out by higher values than the demo interface. Try to add parameters “&confidence=0.0” and “&support=0”. This should show everything (even some clearly incorrect annotations). You can set those parameters higher in order to get higher precision (at the cost of lower recall). See this other answer for help with adding post parameters: How to add parameters to HttpURLConnection using POST
    2. you also did not explicitly set which spotter to use, so it is possible that the web services is using a different spotter from your web service. More about spotting on DBpedia Spotlight: https://github.com/dbpedia-spotlight/dbpedia-spotlight/wiki/Spotting (the same parameters apply to /annotate)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey there. I'm trying to write a small program that will read the four
I am trying to write a small program which has to store and retrieve
I'm trying to learn Haskell and want to write a small program which prints
Continuing to learn WCF, I'm trying to write a small program that would with
I am trying to write a small java program that will accept a file
I am trying to write a small Mac command line app that can read
I've been trying to write a small application which will work with mysql in
I would like to write a small piece of program that launches threads, consumes
I'm trying to write a program with a function which returns a matrix with
I'm trying to write a small baseball statistics program using data from retrosheet.org, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.