百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
O

Opennyai

> 编程语言
开源

Opennyai: 适用于印度法律文件的高效 NLP 工作流

99 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Opennyai: 适用于印度法律文件的高效 NLP 工作流

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythonindian-lawsindian-legal-judgementslegalnlpmachine-learning

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

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