freme-project / e-Entity

Apache License 2.0
1 stars 1 forks source link

handling wrong confidence value #34

Closed pheyvaer closed 9 years ago

pheyvaer commented 9 years ago

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 9 years ago

The confidence parameter should have better documentation, see freme-project/Documentation#50

m1ci commented 9 years ago

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 9 years ago

I tested it and it works fine now