louisbrulenaudet commited on
Commit
7255615
1 Parent(s): b8aa404

readme update

Browse files
Files changed (1) hide show
  1. README.md +28 -5
README.md CHANGED
@@ -8,11 +8,16 @@ tags:
8
 
9
  ---
10
 
11
- # Domain-adapted BERT for General Legal Practice
 
 
 
12
 
13
  This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
14
 
15
- <!--- Describe your model here -->
 
 
16
 
17
  ## Usage (Sentence-Transformers)
18
 
@@ -33,8 +38,6 @@ embeddings = model.encode(sentences)
33
  print(embeddings)
34
  ```
35
 
36
-
37
-
38
  ## Usage (HuggingFace Transformers)
39
  Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
40
 
@@ -99,6 +102,25 @@ Parameters of the fit()-Method:
99
  }
100
  ```
101
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
 
103
  ## Full Model Architecture
104
  ```
@@ -115,8 +137,9 @@ If you use this code in your research, please use the following BibTeX entry.
115
  ```BibTeX
116
  @misc{louisbrulenaudet2023,
117
  author = {Louis Brulé Naudet},
118
- title = {Tranformer-based Denoising AutoEncoder for tax practice},
119
  year = {2023}
 
120
  }
121
  ```
122
 
 
8
 
9
  ---
10
 
11
+ # Domain-adapted mBERT for French Legal Practice
12
+
13
+ [![Python](https://img.shields.io/pypi/pyversions/tensorflow.svg)](https://badge.fury.io/py/tensorflow)
14
+ ![Maintainer](https://img.shields.io/badge/maintainer-@louisbrulenaudet-blue)
15
 
16
  This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
17
 
18
+ Pretrained transformers model on the top 102 languages with the largest Wikipedia using a masked language modeling (MLM) objective, fitted using Transformer-based Sequential Denoising Auto-Encoder for unsupervised sentence embedding learning with one objective : domain adaptation.
19
+
20
+ This way, the model learns an inner representation of the french legal language in the training set that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the model as inputs.
21
 
22
  ## Usage (Sentence-Transformers)
23
 
 
38
  print(embeddings)
39
  ```
40
 
 
 
41
  ## Usage (HuggingFace Transformers)
42
  Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
43
 
 
102
  }
103
  ```
104
 
105
+ ### Training data
106
+
107
+ The training database consisted of 100,000 random sentences, each over 40 characters long, from the :
108
+ - French Intellectual Property Code (Code de la propriété intellectuelle)
109
+ - French Civil Code (Code civil)
110
+ - French Labor Code (Code du travail)
111
+ - French Monetary and Financial Code (Code monétaire et financier)
112
+ - French Commercial Code (Code de commerce)
113
+ - French Penal Code (Code pénal)
114
+ - French Consumer Code (Code de la consommation)
115
+ - French Environment Code (Code de l'environnement)
116
+ - French General Tax Code (Code général des Impôts)
117
+ - French Code of civil procedure (Code de procédure civile)
118
+
119
+ The number of sentences per code may not exceed 15,000.
120
+
121
+ The `DenoisingAutoEncoderDataset` is crafted to provide pairs of noisy and clean data instances. This arrangement allows the denoising autoencoder model to learn and enhance its ability to reconstruct or generate clean data from the corrupted versions provided in the dataset.
122
+
123
+ By providing pairs of noisy and clean data instances from legal texts, the denoising autoencoder can learn to reconstruct or denoise the noisy, domain-specific text, effectively capturing the intricate linguistic nuances and domain-specific features. This learning process assists in building a model that can generalize better to the legal domain, even when initially trained on more general or diverse datasets.
124
 
125
  ## Full Model Architecture
126
  ```
 
137
  ```BibTeX
138
  @misc{louisbrulenaudet2023,
139
  author = {Louis Brulé Naudet},
140
+ title = {Domain-adapted mBERT for French Legal Practice},
141
  year = {2023}
142
+ howpublished = {\url{https://huggingface.co/louisbrulenaudet/tsdae-lemone-mbert-base}},
143
  }
144
  ```
145