nasa / concept-tagging-api

Contains code for the API that takes in text and predicts concepts & keywords from a list of standardized NASA keywords. API is for exposing models created with the repository `concept-tagging-training`.
MIT License
19 stars 10 forks source link

API Topic Threshold error #15

Open RichardScottOZ opened 1 year ago

RichardScottOZ commented 1 year ago

i find when I have this less than 1, it gives an error - intended?

If so, can add to docs?

RichardScottOZ commented 1 year ago

or

payload = '{"text": ["Astronauts go on space walks.","Basalt rocks and minerals are on earth."],"probability_threshold":"0.5", "topic_threshold":"2.0", "request_id":"example_id10"}'

headers = {} res = requests.post(url, data=payload, headers=headers) print(res) print(res.json())

<Response [500]>
{'msg': 'Internal Service Error', 'service_version': 'unspecified'}
RichardScottOZ commented 1 year ago

Same thing if you leave it out, I think.

RichardScottOZ commented 1 year ago

e.g.

payload = '{"text": ["NASA Concept Tagging API works.","Web interface to go."]}'