mscarey / anchorpoint

text substring selectors for anchoring annotations

Home Page:https://anchorpoint.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Anchorpoint

A Python library for anchoring annotations with text substring selectors.

An Ethical Open Source Project Test Coverage Percentage GitHub Actions Workflow Documentation Status

Anchorpoint supplies TextQuoteSelector and TextPositionSelector classes based on the Web Annotation Data Model, which is a W3C Recommendation. Anchorpoint includes helper methods for switching between selector types, and a pydantic schema for serialization. Anchorpoint is used by Legislice for referencing laws such as statutes, and by AuthoritySpoke for referencing judicial opinions.

API Documentation is available on readthedocs.

Anchorpoint relies on python-ranges to perform set operations on spans of text.

Related Packages

In Javascript, try the Text Quote Anchor and Text Position Anchor packages.

In Python try python-ranges, which is the basis for much of the TextPositionSelector class's behavior.

About

text substring selectors for anchoring annotations

https://anchorpoint.readthedocs.io/

License:Other


Languages

Language:Python 100.0%