File size: 1,211 Bytes
51b33d3
 
 
 
 
 
 
 
 
 
 
 
906c44c
 
 
 
 
 
 
 
 
4bfa4ef
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
title: Hackathon Generative AI
emoji: 🌍
colorFrom: green
colorTo: red
sdk: streamlit
sdk_version: 1.38.0
app_file: app.py
pinned: false
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

# Legal Document Analysis on Hugging Face Spaces

This app allows lawyers to quickly analyze legal documents using AI models from Hugging Face. Upload a document, and the app will generate a summary or other relevant analysis.

## How to Use
- Upload a document (in .txt format).
- View the summary or analysis generated by the AI model.

Technologies:

streamlit 
transformers 

# to classify text as law-related or not using zero-shot classification
model="facebook/bart-large-mnli"

# "summarization"
 model="facebook/bart-large-cnn"

#Named Entity Recognition (NER)
model="dslim/bert-base-NER"

Named Entity Recognition (NER) is a Natural Language Processing (NLP) technique used to identify and classify key information (entities)
in text. In the context of your legal document analysis project, NER plays an important role in extracting relevant entities such as names 
of people, organizations, locations, dates, and more, which are crucial in legal texts.