VanaKraus / PONK-rules

Rules for improving comprehension of legal texts
1 stars 1 forks source link

Add a basic API implementation #1

Closed stanoarn closed 6 months ago

stanoarn commented 6 months ago

A very basic implementation of the API for PONK-rules. Supports conllu uploads via /upload and querying for basic statistical properties of the text via /stats/[id] and rule-based modifications via /rules/[id].

Notably missing are some syllable-based metrics as we have not yet agreed which segmentation method to use.

We are also missing caching and deletion of stale files.

Furthermore, the user has no control over which rules to apply and which stats to retrieve. All of this should be implemented soon.

Likewise, we are missing tests for the code, but as there is still very little code to test, this is likely not a top priority.

Also included is a slightly improved conllu parser, because I didn't feel like splitting it into a separate PR. Sorry.

stanoarn commented 6 months ago

lgtm