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

Server returns invalid json when output is set to "vertical" and no entities were found. #6

Closed
curusarn opened this issue Oct 25, 2017 · 2 comments

Comments

@curusarn
Copy link
Contributor

This gives me expected output:
>>> curl "localhost:8000/recognize?output=vertical&data=Vaclav"

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

This gives me Invalid JSON:
>>> curl "localhost:8000/recognize?output=vertical&data=xxxx"

{
 "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.

@curusarn
Copy link
Contributor Author

How it should look like:
>>> curl "localhost:8000/recognize?output=vertical&data=xxxx"

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

@foxik
Copy link
Member

foxik commented Dec 10, 2020

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

@foxik foxik closed this as completed Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants