File size: 1,944 Bytes
4a73a68
 
 
e033a72
 
 
 
 
 
 
 
 
 
 
 
 
d55d41c
 
e234b4a
 
d55d41c
8e208cf
e033a72
8e208cf
 
 
 
d55d41c
8e208cf
 
 
 
 
 
 
 
849d371
 
 
 
 
 
 
1e786e3
849d371
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
license: apache-2.0
---

# Constitution Multi Lang

A collection of multiple nation, constitutional legal documents, with their official language translation.

## Rationale behind this

This project aims to get the official translation pairs of various **non-english** constitutions, of various nations.
Due to the importance of such documents on a nation, it is expected that the translation pairs are of high quality.
Additional in many cases, official goverment documents are "copyright free", removing any legal issues in the training process.

This also provides an easy scalable way to get reliable translation pairs for AI training.

## Repo links

- Github: https://github.com/PicoCreator/constitution-multi-lang
- Huggingface: https://huggingface.co/datasets/picocreator/constitution-multi-lang

## How to contribute (a public contributor)

1) Obtain official copies, and/or links and place them within the respective country folder in `raw-copies`

2) Cleanup and convert raw copies, into language markdown pairs. Line number content must 1:1 match one another into the `cleaned` folder.

3) Submit a pull request - via github

## How to followup with a completed contribution

1) Validate the cleaned markdown pairs, and ensure they are 1:1 match with the official copies.

2) Convert into translation training pairs, on the "vocab", "section", and "document" level. Generate the .jsonl files into the `parsed` folder.

3) Split out some vocab and section pairs, for them to be used in validation dataset.

## Example

Canada
- has an english copy : https://laws-lois.justice.gc.ca/eng/const/FullText.html
- and a french copy : https://laws-lois.justice.gc.ca/fra/const/TexteComplet.html

The (incompleted) converted markdown pairs (for en/fr) would be:
- https://github.com/PicoCreator/constitution-multi-lang/blob/main/cleaned/canada/fr.md
- https://github.com/PicoCreator/constitution-multi-lang/blob/main/cleaned/canada/fr.md