Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

Opennyai

> 编程语言
Open source

Opennyai : An efficient NLP Pipeline for Indian Legal documents

99 stars0 likes1 views
WebsiteGitHub

About

Opennyai : An efficient NLP Pipeline for Indian Legal documents

Opennyai : An efficient NLP Pipeline for Indian Legal documents

Opennyai is a python library for natural language preprocessing on Indian legal texts.

This library provides unified access to the following 3 pre-trained AI models developed by OpenNyAI which focus on Indian court judgments:

  • Named Entity Recognition (NER): GitHub , paper, Huggingface Datasets
  • Judgment Structuring using Sentence Rhetorical Roles: GitHub , paper, Huggingface Datasets
  • Extractive Summarizer: GitHub

This library is mainly for running the pretrained models on your custom input judgments text. For more details about data and model training, please refer to individual git repo links.

1. Installation

Using uv (recommended)

Install uv if you haven't already:

bash
curl -LsSf https://astral.sh/uv/install.sh | sh

Create a virtual environment and install opennyai:

bash
uv venv --python 3.13
source .venv/bin/activate
uv pip install opennyai

Using pip

You can also install with pip directly (requires Python >= 3.13):

bash
python -m venv .venv
source .venv/bin/activate
pip install -U opennyai

For GPU support

If you want to utilize spacy with GPU please install Cupy with the appropriate CUDA version:

bash
pip install cupy-cuda12x  # For CUDA 12.x

In case of any issue with installation please refer to spacy installation with cupy.

2. Documentation

Please refer to the Documentation for more details.

‍ 3. Usage

To run the 3 OpenNyAI models on judgment texts of your choice please run following python code

…

The output of each model is present in following keys of each element of the output

python
results[0][
    'annotations']  ## shows the result of model at sentence level, each entry will have entities, rhetorical role, and other details
results[0]['summary']  ## shows Summary for each of the Rheorical Role for first judgment text 

For more details on usage please refer to the documentation

Google Colab Notebook

Description Link
Run Inference

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonindian-lawsindian-legal-judgementslegalnlpmachine-learning

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言