Upload README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,90 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
---
|
4 |
+
# Model Card for Model ID
|
5 |
+
|
6 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
7 |
+
|
8 |
+
industry-bert-contracts-v0.1 is part of a series of industry-fine-tuned sentence_transformer embedding models.
|
9 |
+
|
10 |
+
## Model Details
|
11 |
+
|
12 |
+
### Model Description
|
13 |
+
|
14 |
+
<!-- Provide a longer summary of what this model is. -->
|
15 |
+
|
16 |
+
industry-bert-contracts-v0.1 is a domain fine-tuned BERT-based 768-parameter Sentence Transformer model, intended to as a "drop-in"
|
17 |
+
substitute for contractual and legal domains. This model was trained on a wide range of publicly available commercial contracts,
|
18 |
+
including open source contract datasets.
|
19 |
+
|
20 |
+
- **Developed by:** llmware
|
21 |
+
- **Model type:** BERT-based Industry domain fine-tuned Sentence Transformer architecture
|
22 |
+
- **Language(s) (NLP):** English
|
23 |
+
- **License:** Apache 2.0
|
24 |
+
- **Finetuned from model [optional]:** BERT-based model, fine-tuning methodology described below.
|
25 |
+
|
26 |
+
## Model Use
|
27 |
+
|
28 |
+
from transformers import AutoTokenizer, AutoModel
|
29 |
+
|
30 |
+
tokenizer = AutoTokenizer.from_pretrained("llmware/industry-bert-contracts-v0.1")
|
31 |
+
model = AutoModel.from_pretrained("llmware/industry-bert-contracts-v0.1")
|
32 |
+
|
33 |
+
|
34 |
+
## Bias, Risks, and Limitations
|
35 |
+
|
36 |
+
This is a semantic embedding model, fine-tuned on public domain contracts and related documents. Results may vary if used outside of this
|
37 |
+
domain, and like any embedding model, there is always the potential for anomalies in the vector embedding space. No specific safeguards have
|
38 |
+
put in place for safety or mitigate potential bias in the dataset.
|
39 |
+
|
40 |
+
### Training Procedure
|
41 |
+
|
42 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
43 |
+
|
44 |
+
This model was fine-tuned using a custom self-supervised procedure and custom dataset that combined contrastive techniques
|
45 |
+
with stochastic injections of distortions in the samples. The methodology was derived, adapted and inspired primarily from
|
46 |
+
three research papers cited below: TSDAE (Reimers), DeClutr (Giorgi), and Contrastive Tension (Carlsson).
|
47 |
+
|
48 |
+
|
49 |
+
## Citation [optional]
|
50 |
+
|
51 |
+
Custom self-supervised training protocol used to train the model, which was derived and inspired by the following papers:
|
52 |
+
|
53 |
+
@article{wang-2021-TSDAE,
|
54 |
+
title = "TSDAE: Using Transformer-based Sequential Denoising Auto-Encoderfor Unsupervised Sentence Embedding Learning",
|
55 |
+
author = "Wang, Kexin and Reimers, Nils and Gurevych, Iryna",
|
56 |
+
journal= "arXiv preprint arXiv:2104.06979",
|
57 |
+
month = "4",
|
58 |
+
year = "2021",
|
59 |
+
url = "https://arxiv.org/abs/2104.06979",
|
60 |
+
}
|
61 |
+
|
62 |
+
@inproceedings{giorgi-etal-2021-declutr,
|
63 |
+
title = {{D}e{CLUTR}: Deep Contrastive Learning for Unsupervised Textual Representations},
|
64 |
+
author = {Giorgi, John and Nitski, Osvald and Wang, Bo and Bader, Gary},
|
65 |
+
year = 2021,
|
66 |
+
month = aug,
|
67 |
+
booktitle = {Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},
|
68 |
+
publisher = {Association for Computational Linguistics},
|
69 |
+
address = {Online},
|
70 |
+
pages = {879--895},
|
71 |
+
doi = {10.18653/v1/2021.acl-long.72},
|
72 |
+
url = {https://aclanthology.org/2021.acl-long.72}
|
73 |
+
}
|
74 |
+
|
75 |
+
@article{Carlsson-2021-CT,
|
76 |
+
title = {Semantic Re-tuning with Contrastive Tension},
|
77 |
+
author= {Fredrik Carlsson, Amaru Cuba Gyllensten, Evangelia Gogoulou, Erik Ylipää Hellqvist, Magnus Sahlgren},
|
78 |
+
year= {2021},
|
79 |
+
month= {"January"}
|
80 |
+
Published: 12 Jan 2021, Last Modified: 05 May 2023
|
81 |
+
}
|
82 |
+
|
83 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
84 |
+
|
85 |
+
|
86 |
+
## Model Card Contact
|
87 |
+
|
88 |
+
Darren Oberst @ llmware
|
89 |
+
|
90 |
+
|