Instructions to use sguarnaccio/gov_law_clf_ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sguarnaccio/gov_law_clf_ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="sguarnaccio/gov_law_clf_ner")# Load model directly from transformers import AutoTokenizer, ClassifierNER tokenizer = AutoTokenizer.from_pretrained("sguarnaccio/gov_law_clf_ner") model = ClassifierNER.from_pretrained("sguarnaccio/gov_law_clf_ner") - Notebooks
- Google Colab
- Kaggle
Model Card for Model ID
Model to predict and extract governing law from legal documents.
Model Details
Model Description
- 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.
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")
- Downloads last month
- 2,132