File size: 1,114 Bytes
61773de 647b45a 192a8e3 6d3a1d2 647b45a |
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 41 42 43 |
---
language:
- en
metrics:
- accuracy
- seqeval
pipeline_tag: text-classification
tags:
- legal
---
# Model Card for Model ID
<!-- Provide a quick summary of what the model is/does. -->
Model to predict and extract governing law from legal documents.
## Model Details
### Model Description
<!-- Provide a longer summary of what this model is. -->
- **Developed by:** Sean Guarnaccio
- **Model type:** Text Classification/NER
- **Language(s) (NLP):** Pytorch
- **License:** [More Information Needed]
- **Finetuned from model [optional]:** nlpaueb/bert-base-uncased-contracts
### Direct Use
Identify the section of a legal contract that contains the governing law and extract then extract the value.
## How to Get Started with the Model
Use the code below to get started with the model.
```python
from transformers import AutoTokenizer
from clf_ner import ClassifierNER
tokenizer = AutoTokenizer.from_pretrained("sguarnaccio/gov_law_clf_ner")
model = ClassifierNER.from_pretrained("sguarnaccio/gov_law_clf_ner")
model.predict("This agreement shall be governed by the laws of the State of New Jersey")
``` |