Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn on the concept_tags functionality into the official production service #75

Open
ghost opened this issue May 24, 2021 · 6 comments
Open

Comments

@ghost
Copy link

ghost commented May 24, 2021

Hello,

I'm getting this message on the concepts key.
concept_tags search param is set to True.

There is a way to turn on the functionality?

Example URL

https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY&date=2014-10-01&concept_tags=True

Response

{"concepts":"concept_tags functionality turned off in current service","copyright":"Francesco Antonucci","date":"2014-10-01","explanation":"The bright clusters and nebulae of planet Earth's night sky are often named for flowers or insects. Though its wingspan covers over 3 light-years, NGC 6302 is no exception. With an estimated surface temperature of about 250,000 degrees C, the dying central star of this particular planetary nebula has become exceptionally hot, shining brightly in ultraviolet light but hidden from direct view by a dense torus of dust.  This sharp close-up of the dying star's nebula was recorded in 2009 by the Hubble Space Telescope's Wide Field Camera 3, and is presented here in reprocessed colors.  Cutting across a bright cavity of ionized gas, the dust torus surrounding the central star is near the center of this view, almost edge-on to the line-of-sight. Molecular hydrogen has been detected in the hot star's dusty cosmic shroud. NGC 6302 lies about 4,000 light-years away in the arachnologically correct constellation of the Scorpion (Scorpius).    APOD Wall Calendar: Nebulas and Star Clusters","hdurl":"https://apod.nasa.gov/apod/image/1410/butterflyblue_hst_3919.jpg","media_type":"image","service_version":"v1","title":"The Butterfly Nebula from Hubble","url":"https://apod.nasa.gov/apod/image/1410/butterflyblue_hst_960.jpg"}
@Sainterman
Copy link

I think you would need a local instance of the API with concept_tags turned on

@ghost
Copy link
Author

ghost commented Jun 24, 2021

Thank you. Does that mean I should deploy to my own server? With what limitations? Unlimited calls? Why is it disabled?

@Sainterman
Copy link

I'm sorry but I don't have an answer to that since I'm having the same issue as you and am not a dev in this project, I'm now trying to set up the API locally. If i get it to work I'll let you know.

@ghost
Copy link
Author

ghost commented Jun 24, 2021

Thank you. Beyond this open source project I am a consumer of the public API and I have opened the question here because it is a GitHub repository where you can open questions.
https://api.nasa.gov

@ghost ghost changed the title concept_tags functionality turned off in current service Turn on the concept_tags functionality into the official production service Jun 24, 2021
@Sainterman
Copy link

Unfortunately the issue seems to be that the concept_tags functionality relies on the third party API http://access.alchemyapi.com/calls/text/TextGetRankedConcepts which ranked concepts and is now disabled according to https://www.ibm.com/cloud/blog/announcements/bye-bye-alchemyapi , I found this on the apod/utility.py file, therefore turning on the functionality requires a rewrite of the method get_concepts

@ghost
Copy link
Author

ghost commented Jun 24, 2021

def get_concepts(request, text, apikey):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants