Skip to content

Models hub legal #1588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
ec1d25d
Add model 2023-07-04-leggen_contract_nli_en (#442)
jsl-models Jul 4, 2023
1f7927f
Add model 2023-08-04-legclf_law_stack_exchange_en (#499)
jsl-models Aug 5, 2023
62447c3
2023-08-07-legner_bert_subpoenas_sm_en (#502)
jsl-models Aug 7, 2023
35a8f10
Merge branch 'main' into models_hub_legal
dcecchini Aug 7, 2023
01e3611
2023-08-30-legpipe_deid_en (#567)
jsl-models Aug 30, 2023
f54a0c0
2023-08-30-legpipe_deid_en (#568)
jsl-models Aug 30, 2023
c23576a
Add model 2023-08-30-legpipe_deid_en (#573)
jsl-models Aug 30, 2023
33688de
Delete 2023-08-30-legpipe_deid_en.md
Mary-Sci Aug 30, 2023
914edb8
Add model 2023-08-30-legpipe_deid_en (#575)
jsl-models Aug 30, 2023
dd541b1
Add model 2023-09-01-legpipe_deid_en (#585)
jsl-models Sep 1, 2023
34a4ce6
Add model 2023-09-01-legpipe_deid_en (#591)
jsl-models Sep 1, 2023
11b4927
Add model 2023-09-01-legpipe_deid_en (#596)
jsl-models Sep 1, 2023
0e94a44
Add model 2023-09-04-legqa_flant5_mpre_en (#616)
jsl-models Sep 4, 2023
c99c297
Add model 2023-09-04-leggen_flant5_mpre_en (#617)
jsl-models Sep 4, 2023
6096243
Add model 2023-10-04-legmulticlf_law_stack_exchange_en (#682)
jsl-models Oct 4, 2023
f03adc5
Add model 2023-11-05-legembedding_e5_base_en (#742)
jsl-models Nov 6, 2023
1b0a2b0
2023-11-10-legembeddings_bge_base_en (#751)
jsl-models Nov 10, 2023
6f856a1
Merge branch 'main' into models_hub_legal
dcecchini Dec 16, 2023
256b93c
2024-05-15-legner_lener_base_pt (#1202)
jsl-models May 15, 2024
1577190
2024-05-17-legner_sec_edgar_le_en (#1209)
jsl-models Jul 10, 2024
c0584b3
Merge branch 'main' into models_hub_legal
dcecchini Nov 8, 2024
38de5bf
Add model 2024-11-15-legpipe_header_subheader_en (#1601)
jsl-models Nov 15, 2024
ee2b4a3
Add model 2024-11-16-legpipe_header_subheader_en (#1602)
jsl-models Nov 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/_posts/gadde5300/2024-05-15-legner_lener_base_pt.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,4 @@ result = pipeline.fit(example).transform(example)

## References

Original texts available in https://paperswithcode.com/sota?task=Token+Classification&dataset=lener_br and in-house data augmentation with weak labelling
Original texts available in https://paperswithcode.com/sota?task=Token+Classification&dataset=lener_br and in-house data augmentation with weak labelling.
2 changes: 1 addition & 1 deletion docs/_posts/gadde5300/2024-05-15-legner_lener_large_pt.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,4 @@ result = pipeline.fit(example).transform(example)

## References

Original texts available in https://paperswithcode.com/sota?task=Token+Classification&dataset=lener_br and in-house data augmentation with weak labelling
Original texts available in https://paperswithcode.com/sota?task=Token+Classification&dataset=lener_br and in-house data augmentation with weak labelling.
78 changes: 78 additions & 0 deletions docs/_posts/gadde5300/2024-11-15-legpipe_header_subheader_en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
layout: model
title: Legal Pipeline (Headers / Subheaders)
author: John Snow Labs
name: legpipe_header_subheader
date: 2024-11-15
tags: [en, licensed, legal, ner, contextual_parser]
task: Pipeline Legal
language: en
edition: Legal NLP 1.0.0
spark_version: 3.0
supported: true
annotator: PipelineModel
article_header:
type: cover
use_language_switcher: "Python-Scala-Java"
---

## Description

This is a Legal pretrained pipeline, aimed to carry out Section Splitting by using the Headers and Subheaders entities, detected in the document.

{:.btn-box}
<button class="button button-orange" disabled>Live Demo</button>
<button class="button button-orange" disabled>Open in Colab</button>
[Download](https://s3.amazonaws.com/auxdata.johnsnowlabs.com/legal/models/legpipe_header_subheader_en_1.0.0_3.0_1731708160777.zip){:.button.button-orange.button-orange-trans.arr.button-icon.hidden}
[Copy S3 URI](s3://auxdata.johnsnowlabs.com/legal/models/legpipe_header_subheader_en_1.0.0_3.0_1731708160777.zip){:.button.button-orange.button-orange-trans.button-icon.button-copy-s3}

## How to use



<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
legal_pipeline = nlp.PretrainedPipeline("legpipe_header_subheader", "en", "legal/models")

text = ["""2. DEFINITION.
For purposes of this Agreement, the following terms have the meanings ascribed thereto in this Section 1 and 2 Appointment as Reseller.
2.1 Appointment.
The Company hereby [***]. Allscripts may also disclose Company's pricing information relating to its Merchant Processing Services and facilitate procurement of Merchant Processing Services on behalf of Sublicensed Customers, including, without limitation by references to such pricing information and Merchant Processing Services in Customer Agreements. 6
2.2 Customer Agreements."""]

result = legal_pipeline.annotate(text)
```

</div>

## Results

```bash
| chunks | begin | end | entities |
|------------------------:|------:|----:|----------:|
| 2. DEFINITION | 0 | 12 | HEADER |
| 2.1 Appointment | 154 | 168 | SUBHEADER |
| 2.2 Customer Agreements | 530 | 552 | SUBHEADER |
```

{:.model-param}
## Model Information

{:.table-model}
|---|---|
|Model Name:|legpipe_header_subheader|
|Type:|pipeline|
|Compatibility:|Legal NLP 1.0.0+|
|License:|Licensed|
|Edition:|Official|
|Language:|en|
|Size:|31.4 KB|

## Included Models

- DocumentAssembler
- TokenizerModel
- ContextualParserModel
- ContextualParserModel
- ChunkMergeModel
80 changes: 80 additions & 0 deletions docs/_posts/gadde5300/2024-11-16-legpipe_header_subheader_en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
layout: model
title: Legal Pipeline (Headers / Subheaders)
author: John Snow Labs
name: legpipe_header_subheader
date: 2024-11-16
tags: [en, contextual_parser, legal, ner, licensed]
task: Pipeline Legal
language: en
edition: Legal NLP 1.0.0
spark_version: 3.0
supported: true
annotator: PipelineModel
article_header:
type: cover
use_language_switcher: "Python-Scala-Java"
---

## Description

This is a Legal pretrained pipeline, aimed to carry out Section Splitting by using the Headers and Subheaders entities, detected in the document.

{:.btn-box}
<button class="button button-orange" disabled>Live Demo</button>
<button class="button button-orange" disabled>Open in Colab</button>
[Download](https://s3.amazonaws.com/auxdata.johnsnowlabs.com/legal/models/legpipe_header_subheader_en_1.0.0_3.0_1731728805741.zip){:.button.button-orange.button-orange-trans.arr.button-icon.hidden}
[Copy S3 URI](s3://auxdata.johnsnowlabs.com/legal/models/legpipe_header_subheader_en_1.0.0_3.0_1731728805741.zip){:.button.button-orange.button-orange-trans.button-icon.button-copy-s3}

## How to use



<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
legal_pipeline = nlp.PretrainedPipeline("legpipe_header_subheader", "en", "legal/models")

text = ["""2. DEFINITION.
For purposes of this Agreement, the following terms have the meanings ascribed thereto in this Section 1 and 2 Appointment as Reseller.
2.1 Appointment.
The Company hereby [***]. Allscripts may also disclose Company's pricing information relating to its Merchant Processing Services and facilitate procurement of Merchant Processing Services on behalf of Sublicensed Customers, including, without limitation by references to such pricing information and Merchant Processing Services in Customer Agreements. 6
2.2 Customer Agreements."""]

result = legal_pipeline.annotate(text)
```

</div>

## Results

```bash
| chunks | begin | end | entities |
|------------------------:|------:|----:|----------:|
| 2. DEFINITION | 0 | 12 | HEADER |
| 2.1 Appointment | 154 | 168 | SUBHEADER |
| 2.2 Customer Agreements | 530 | 552 | SUBHEADER |
```

{:.model-param}
## Model Information

{:.table-model}
|---|---|
|Model Name:|legpipe_header_subheader|
|Type:|pipeline|
|Compatibility:|Legal NLP 1.0.0+|
|License:|Licensed|
|Edition:|Official|
|Language:|en|
|Size:|27.1 KB|

## Included Models

- DocumentAssembler
- SentenceDetector
- TokenizerModel
- RegexMatcherModel
- RegexMatcherModel
- ContextualParserModel
- ChunkMergeModel