Thanks to visit codestin.com
Credit goes to github.com

Skip to content

devlux76/eyecite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eyecite API

This project exposes eyecite's core citation extraction, resolution, annotation, and cleaning functions as a RESTful API using FastAPI.

Endpoints

  • POST /extract — Extract citations from text
  • POST /resolve — Cluster and resolve citations
  • POST /annotate — Annotate text with citation markup
  • POST /clean — Clean and preprocess text
  • POST /extract-resolve — Extract and resolve citations in one step
  • POST /dump — (Optional) Dump detailed citation metadata

All endpoints accept and return JSON.

Example Usage

Run Locally

# Build and run with Docker
cd /workspaces/eyecite

docker build -t eyecite-api .
docker run -p 8000:8000 eyecite-api

Example Request (extract citations)

curl -X POST "http://localhost:8000/extract" \
  -H "Content-Type: application/json" \
  -d '{"text": "See 410 U.S. 113 (1973)."}'

API Documentation

Once running, visit http://localhost:8000/docs for interactive OpenAPI docs.

Development

  • Edit api/main.py to modify or add endpoints.
  • Update requirements.txt for dependencies.
  • See PLAN.md for design notes.

Security & Production

  • Limit request size and sanitize input for production.
  • Add authentication if needed.

See PLAN.md for more details and roadmap.

About

Find legal citations in any block of text

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.4%
  • Jupyter Notebook 6.3%
  • Other 0.3%