-
Notifications
You must be signed in to change notification settings - Fork 53
Description
Users currently have large volumes of existing legal contracts, containing a wide variety of legal clauses. E.g. the contracts may contain 90 day payment terms, acceptance of delivery clauses etc.
It would be very useful to be able to train a model to detect instances of a specific type of clause (say acceptance of delivery) and then to automatically (or with manual guidance) help the user replace the natural language in their contract with an instance of the acceptance of delivery clause, with the correct values extracted from the input contract.
The template detection logic should operate upon the CommonMark DOM (a JSON representation of Markdown formatted text) - replacing paragraph nodes in the DOM with Clause nodes from the CiceroMark DOM.
It would be useful to be able to run a fuzzy match a CommonMark DOM against a set of templates - detecting potential instances of the templates in the CommonMark text (clauses).
- prepareTemplates : pre-process a set of templates to prepare them for matching (works on a training set?)
- match : fuzzy match of templates to CommonMark DOM, extract values
- uniqueMatches : eliminate duplicate matches, eliminate overlapping matches