Instructions to use barflyman/glacier-citation-classifier-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use barflyman/glacier-citation-classifier-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'barflyman/glacier-citation-classifier-ONNX');
glacier-citation-classifier (ONNX)
This is an ONNX version of Symio-ai/glacier-citation-classifier. It was automatically converted and uploaded using this Hugging Face Space.
Usage with Transformers.js
See the pipeline documentation for text-classification: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.TextClassificationPipeline
GLACIER glacier-citation-classifier
Distilled legal AI model for the GLACIER pipeline โ Gated Legal Analysis, Citation Intelligence, Evidence Routing.
Model Description
This model is distilled from Claude Opus 4.6 (via AWS Bedrock) into a lightweight transformer for fast, local inference. It handles citation treatment classification (followed, distinguished, overruled, etc.) as part of the GLACIER 6-stage legal document production pipeline.
- Base model: nlpaueb/legal-bert-base-uncased
- Task: sequence-classification
- Labels: 6 classes
- Max length: 256 tokens
Labels
followeddistinguishedoverruledcitedquestionedharmonized
Usage
from glacier_distill.inference import GlacierPipeline
pipeline = GlacierPipeline()
result = pipeline.classify_citation("your legal text here")
print(result)
Or use directly with transformers:
from transformers import pipeline
classifier = pipeline("text-classification", model="glacier-legal/glacier-citation-classifier")
result = classifier("your legal text here")
Training
- Teacher: Claude Opus 4.6 (AWS Bedrock)
- Method: Knowledge distillation (Hinton et al., 2015) with temperature=4.0, alpha=0.7
- Data: CourtListener case law + synthetic labeled examples
- Framework: HuggingFace Transformers + custom DistillationLoss
GLACIER Pipeline
This model is part of the GLACIER pipeline stages:
Stage 1: QUERY -> jurisdiction-router + document-classifier
Stage 2: RESEARCH -> legal-ner (entity extraction)
Stage 3: WDC #1 -> (full model review)
Stage 4: DRAFT -> legal-ner + citation-classifier
Stage 5: WDC #2 -> hallucination-detector + citation-classifier
Stage 6: FINAL -> (human review)
Limitations
- Distilled models are optimized for US legal text (federal + state)
- Not a substitute for full model review in GLACIER Stages 3/5
- Citation hallucination detection is a pre-filter, not a replacement for external verification
- Jurisdiction coverage: Florida, Mississippi, Federal (primary); other states (limited)
License
MIT โ Part of the GLACIER Legal AI Framework by Orion Dev Partners, LLC.
- Downloads last month
- 5
Model tree for barflyman/glacier-citation-classifier-ONNX
Base model
nlpaueb/legal-bert-base-uncased