Closed RealWhimsy closed 3 years ago
Sending a request with the following body returns 638 (all?) tokens instead of the set limit of 30:
{ "language": "en", "corpus": { "column": "celex", "value": "61955CJ0008" }, "analysis": [ { "type": "tokens", "limit": "30" } ] }
Edit: this bug only appeared after I pulled the new version which was merged yesterday, the token limit worked prior to pull request https://github.com/phHartl/eu-judgement-analyse/pull/47
This is not a bug. You are using a string value of "30" for key "limit", which expects an integer. Tested the issue and everything works.
Sending a request with the following body returns 638 (all?) tokens instead of the set limit of 30:
{ "language": "en", "corpus": { "column": "celex", "value": "61955CJ0008" }, "analysis": [ { "type": "tokens", "limit": "30" } ] }
Edit: this bug only appeared after I pulled the new version which was merged yesterday, the token limit worked prior to pull request https://github.com/phHartl/eu-judgement-analyse/pull/47