Files changed (1) hide show
  1. README.md +39 -25
README.md CHANGED
@@ -4,33 +4,37 @@ language:
4
  - fr
5
  task_categories:
6
  - image-to-text
7
- pretty_name: PyLaia RIMES
8
-
 
9
  dataset_info:
10
  features:
11
- - name: image
12
- dtype: image
13
- - name: text
14
- dtype: string
15
  splits:
16
- - name: train
17
- num_examples: 10188
18
- - name: validation
19
- num_examples: 1138
20
- - name: test
21
- num_examples: 778
22
  dataset_size: 12104
 
 
23
  ---
24
 
25
- # PyLaia RIMES Dataset
26
 
27
  ## Table of Contents
28
- - [PyLaia RIMES Dataset](#pylaia-rimes-dataset)
29
  - [Table of Contents](#table-of-contents)
30
  - [Dataset Description](#dataset-description)
31
  - [Dataset Summary](#dataset-summary)
32
  - [Languages](#languages)
33
  - [Dataset Structure](#dataset-structure)
 
34
  - [Data Instances](#data-instances)
35
  - [Data Fields](#data-fields)
36
  - [Data Splits](#data-splits)
@@ -43,7 +47,13 @@ dataset_info:
43
 
44
  ### Dataset Summary
45
 
46
- Briefly summarize the dataset, its intended use and the supported tasks. Give an overview of how and why the dataset was created. The summary should explicitly mention the **languages** present in the dataset (possibly in broad terms, e.g. *translations between several pairs of European languages*), and describe the domain, topic, or genre covered.
 
 
 
 
 
 
47
 
48
  ### Languages
49
 
@@ -51,9 +61,19 @@ All the documents in the dataset are written in French.
51
 
52
  ## Dataset Structure
53
 
54
- ### Data Instances
 
 
55
 
 
 
 
56
  ```
 
 
 
 
 
57
  {
58
  'image': <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=2560x128 at 0x1A800E8E190,
59
  'text': 'Comme indiqué dans les conditions particulières de mon contrat d'assurance'
@@ -62,19 +82,13 @@ All the documents in the dataset are written in French.
62
 
63
  ### Data Fields
64
 
65
-
66
- - `image`: A PIL.Image.Image object containing the image. Note that when accessing the image column: dataset[0]["image"] the image file is automatically decoded. Decoding of a large number of image files might take a significant amount of time. Thus it is important to first query the sample index before the "image" column, i.e. dataset[0]["image"] should always be preferred over dataset["image"][0].
67
  - `text`: the label transcription of the image.
68
 
69
  ### Data Splits
70
 
71
- Describe and name the splits in the dataset if there are more than one.
72
-
73
- Describe any criteria for splitting the data, if used. If there are differences between the splits (e.g. if the training annotations are machine-generated and the dev and test ones are created by humans, or if different numbers of annotators contributed to each example), describe them here.
74
-
75
- Provide the sizes of each split. As appropriate, provide any descriptive statistics for the features, such as average length. For example:
76
 
77
  | | train | validation | test |
78
  |-------------------------|------:|-----------:|-----:|
79
- | Input Sentences | | | |
80
- | Average Sentence Length | | | |
 
4
  - fr
5
  task_categories:
6
  - image-to-text
7
+ pretty_name: RIMES-2011-Lines
8
+ tags:
9
+ - Handwritten Text Recognition
10
  dataset_info:
11
  features:
12
+ - name: image
13
+ dtype: image
14
+ - name: text
15
+ dtype: string
16
  splits:
17
+ - name: train
18
+ num_examples: 10188
19
+ - name: validation
20
+ num_examples: 1138
21
+ - name: test
22
+ num_examples: 778
23
  dataset_size: 12104
24
+ size_categories:
25
+ - 10K<n<100K
26
  ---
27
 
28
+ # RIMES-2011-Lines Dataset
29
 
30
  ## Table of Contents
31
+ - [RIMES-2011-Lines Dataset](#pylaia-rimes-dataset)
32
  - [Table of Contents](#table-of-contents)
33
  - [Dataset Description](#dataset-description)
34
  - [Dataset Summary](#dataset-summary)
35
  - [Languages](#languages)
36
  - [Dataset Structure](#dataset-structure)
37
+ - [Data Loading](#data-loading)
38
  - [Data Instances](#data-instances)
39
  - [Data Fields](#data-fields)
40
  - [Data Splits](#data-splits)
 
47
 
48
  ### Dataset Summary
49
 
50
+ The RIMES (Reconnaissance et Indexation de données Manuscrites et de fac similÉS) database has been created to evaluate automatic recognition and indexing systems for handwritten documents. Of particular interest are cases such as those sent by mail or fax from individuals to companies or administrations.
51
+
52
+ The database was collected by asking volunteers to write handwritten letters in exchange for gift certificates. Volunteers were given a fictitious identity (same gender as the real one) and up to 5 scenarios. Each scenario was chosen from among 9 realistic topics: change of personal data (address, bank account), request for information, opening and closing (customer account), change of contract or order, complaint (poor quality of service...), payment difficulties (request for delay, tax exemption...), reminder, complaint with other circumstances and a target (administrations or service providers (telephone, electricity, bank, insurance). The volunteers wrote a letter with this information in their own words. The layout was free and the only request was to use white paper and write legibly in black ink.
53
+
54
+ The campaign was a success, with more than 1,300 people contributing to the RIMES database by writing up to 5 letters. The resulting RIMES database contains 12,723 pages, corresponding to 5605 mails of two to three pages each.
55
+
56
+ Note that all images are resized to a fixed height of 128 pixels.
57
 
58
  ### Languages
59
 
 
61
 
62
  ## Dataset Structure
63
 
64
+ ### Data Loading
65
+
66
+ The dataset can be loaded using this simple code:
67
 
68
+ ```py
69
+ from datasets import load_dataset
70
+ dataset = load_dataset("Teklia/rimes-2011-lines")
71
  ```
72
+
73
+ ### Data Instances
74
+
75
+ Each instance represents an image and its transcription:
76
+ ```json
77
  {
78
  'image': <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=2560x128 at 0x1A800E8E190,
79
  'text': 'Comme indiqué dans les conditions particulières de mon contrat d'assurance'
 
82
 
83
  ### Data Fields
84
 
85
+ - `image`: A PIL.Image.Image object containing the image. Note that when accessing the image column: `dataset[0]["image"]` the image file is automatically decoded. Decoding of a large number of image files might take a significant amount of time. Thus it is important to first query the sample index before the "image" column, i.e. `dataset[0]["image"]` should always be preferred over `dataset["image"][0]`.
 
86
  - `text`: the label transcription of the image.
87
 
88
  ### Data Splits
89
 
90
+ Three sets are available: train, validation and test.
 
 
 
 
91
 
92
  | | train | validation | test |
93
  |-------------------------|------:|-----------:|-----:|
94
+ | Number of Lines | 10188 | 1138 | 778 |