handling wrong confidence value
Closed this issue · 3 comments
pheyvaer commented
If the value for confidence
is not between 0 and 1, or when it is for example a word, the call does not fail. However, no entities are detected.
jnehring commented
The confidence
parameter should have better documentation, see freme-project/freme-project.github.io#50
m1ci commented
fixed, now the confidence parameter can take only values in the range [0..1]. Appropriate BadRequestException is thrown in case the value is out of the range. Try:
curl -v -X POST "http://api-dev.freme-project.eu/current/e-entity/dbpedia-spotlight/documents?confidence=1.3&language=en&informat=text&input=Berlin" -H "Content-Type:"
jnehring commented
I tested it and it works fine now