ufal / nametag

NameTag: Named Entity Tagger
Mozilla Public License 2.0
38 stars 10 forks source link

Server returns invalid json when there is no data. #8

Closed curusarn closed 3 years ago

curusarn commented 7 years ago

This is different bug than #6

These two calls give me Invalid JSON: >>> curl "localhost:8000/recognize?data=" >>> curl "localhost:8000/recognize?output=vertical&data="

{
 "model": "cnec2.ner",
 "acknowledgements": [
  "http://ufal.mff.cuni.cz/nametag#nametag_acknowledgements",
  "http://ufal.mff.cuni.cz/morphodita#morphodita_acknowledgements"
 ],
 "result": }

Feel free to contact me to get more information.

foxik commented 3 years ago

Sorry, I found out about the issue only now. Anyway, it seem to have been fixed already.