phHartl / eu-judgement-analyse

Quantitative analysis of judgments of the European Court of Justice
MIT License
6 stars 0 forks source link

Bug: API response ignores limit for tokens #49

Closed RealWhimsy closed 3 years ago

RealWhimsy commented 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

thomfischer commented 3 years ago

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.