LugolBis commited on
Commit
59d0dee
·
1 Parent(s): 7b0ac7e

Init the project

Browse files
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ *.csv filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,129 @@
1
  ---
 
2
  license: gpl-3.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language: fr
3
  license: gpl-3.0
4
+ tags:
5
+ - keyword-extraction
6
+ - french-nlp
7
+ - prompt-engineering
8
+ - information-retrieval
9
+ - generative-ai
10
+ pretty_name: French Keyword Extraction Trio (Prompt / Sentences / Searching)
11
+ task_categories:
12
+ - text-generation
13
+ - text-retrieval
14
+ - token-classification
15
+ size_categories:
16
+ - n<1K
17
+ source_datasets:
18
+ - original
19
  ---
20
+
21
+ # French Keyword Extraction
22
+
23
+ ## Dataset Description
24
+
25
+ This dataset is a collection of **French phrase–keyword pairs** designed for training and evaluating keyword extraction models, prompt engineering, or query expansion systems. It is composed of three distinct subsets (configurations), each reflecting a specific linguistic register and use case.
26
+
27
+ All inputs are in **French** and contain between 1 and 5 sentences, offering varied contextual lengths. The dataset was generate with `Claude Sonnet 5` (`High` / `Medium`).
28
+
29
+ ### Supported Configurations
30
+
31
+ | Config Name | Description | Input Length | Keyword Separator |
32
+ | :--- | :--- | :--- | :--- |
33
+ | `prompt` | Prompts addressed to AI assistants (interrogative/imperative forms). | 1 to 5 sentences | `", "` (comma + space) |
34
+ | `sentences` | Affirmative or declarative statements, not necessarily questions. | 1 to 5 sentences | `", "` (comma + space) |
35
+ | `searching` | Internet search queries, often containing significant background context. | 1 to 4 sentences (dense context) | `" "` (simple space) |
36
+
37
+ ---
38
+
39
+ ## Dataset Structure
40
+
41
+ ### Data Fields
42
+
43
+ All configurations share the same two-column CSV structure:
44
+
45
+ - **`Input`** (`string`): The original French text (prompt, sentence, or search query).
46
+ - **`Output`** (`string`): The list of extracted keywords.
47
+
48
+ > **Important**: Pay attention to the keyword separator for each config:
49
+ > - `prompt` & `sentences` → keywords are separated by a **comma and a space** (e.g., `"intelligence artificielle, éthique, régulation"`).
50
+ > - `searching` → keywords are separated by a **simple space** (e.g., `"meilleur restaurant paris 2024"`).
51
+
52
+ ### Data Splits
53
+
54
+ Currently, this dataset is provided as a **single split** (`train`) per configuration. If you wish to create train/validation splits, we recommend doing so locally using `datasets` or `sklearn.model_selection`.
55
+
56
+ ---
57
+
58
+ ## Usage Example (Python)
59
+
60
+ Load a specific configuration using the 🤗 `datasets` library:
61
+
62
+ ```python
63
+ from datasets import load_dataset
64
+
65
+ # Load the "prompt" subset
66
+ dataset_prompt = load_dataset("LugolBis/KeywordsExtraction", "prompt", split="train")
67
+
68
+ # Load the "sentences" subset
69
+ dataset_sentences = load_dataset("LugolBis/KeywordsExtraction", "sentences", split="train")
70
+
71
+ # Load the "searching" subset
72
+ dataset_searching = load_dataset("LugolBis/KeywordsExtraction", "searching", split="train")
73
+
74
+ # Explore an example
75
+ print(dataset_prompt[0])
76
+ # Output example:
77
+ # {'Input': 'Quels sont les impacts du réchauffement climatique sur la biodiversité marine ?',
78
+ # 'Output': 'réchauffement climatique, biodiversité marine, impacts'}
79
+ ```
80
+
81
+ ---
82
+
83
+ ## Dataset Creation
84
+
85
+ ### Curation Rationale
86
+
87
+ The dataset was built to cover three distinct modalities of natural language queries:
88
+ 1. **Prompts**: Capturing the instructional/inquisitive tone used when interacting with Large Language Models.
89
+ 2. **Sentences**: Covering descriptive and factual statements to extract core concepts.
90
+ 3. **Searching**: Mimicking real-world search engine behaviors where context is key, and keywords often act as boolean/concatenated phrases (hence the space separator).
91
+
92
+ ### Source Data
93
+
94
+ All the `Input` sentences (prompts, qearch queries, etc.) were generated with an _LLM_ : `Claude Sonnet 5` (`High` / `Medium`).
95
+
96
+ ### Annotations
97
+
98
+ All the `Output` keywords extracted from the sentences were generated with an _LLM_ : `Claude Sonnet 5` (`High` / `Medium`).
99
+
100
+ ---
101
+
102
+ ## Considerations for Using the Data
103
+
104
+ ### Social Impact & Limitations
105
+
106
+ - The dataset is exclusively in **French**, making it suitable for Francophone NLP applications but limited for multilingual models.
107
+ - The keyword extraction logic might carry inherent biases depending on the annotator or the LLM used for generation.
108
+ - The `searching` subset uses space-separated keywords, which might represent query expansion tokens rather than strict semantic concepts.
109
+
110
+ ### Recommended Use Cases
111
+
112
+ - Fine-tuning small/medium LLMs for **French keyword generation**.
113
+ - Training **embedding models** for document retrieval.
114
+ - Evaluating **prompt engineering** techniques for summarization.
115
+ - Building **query suggestion** systems for search engines.
116
+
117
+ ## Citation
118
+
119
+ If you use this dataset in your research, please cite it as follows :
120
+
121
+ ```bibtex
122
+ @misc{your_name_2024_french_keywords,
123
+ author = {LugolBis},
124
+ title = {French Keyword Extraction},
125
+ year = {2024},
126
+ publisher = {Hugging Face},
127
+ howpublished = {\url{https://huggingface.co/datasets/LugolBis/KeywordsExtraction}}
128
+ }
129
+ ```
data/prompts/dataset_phrases_mots_cles_5.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b82a72b36ea8970a9d9b1627dab8a7f52d77c303a7bd64d998a4a84cad4eff1
3
+ size 100628
data/prompts/dataset_phrases_mots_cles_6.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56f6210419d0da05041d129100898b6e7a9682ae3251209004d496ea04e03590
3
+ size 112154
data/prompts/dataset_phrases_mots_cles_7.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07dec520551d8507c56f2640cf1d52173a3a74b977219693ee507e8a9da21191
3
+ size 112906
data/prompts/dataset_phrases_mots_cles_8.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d5f01d17678be6de0c099a7a5d2a6fadb4d410310859c7da850752a93951d8a
3
+ size 110370
data/prompts/dataset_phrases_mots_cles_9.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c11c13c43df533ae71f1480669b29caea4783964758689f4ad4563e392b60ed3
3
+ size 115158
data/searching/dataset_recherche_contextuelle_10.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca7b5df38d7efdcd4b8e07fbea83bb7b5ba75732a112c9862516f004a146632e
3
+ size 54092
data/searching/dataset_recherche_contextuelle_11.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e7587d18acd2642d60fc491385e0f17db4d464d7434021c3029cd8fdfb0d6b9
3
+ size 26090
data/searching/dataset_recherche_contextuelle_12.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba6558ba650454141d7c36d7a327d479da1cd2df6337a8f334d0078ca3b8cd8b
3
+ size 88216
data/searching/dataset_recherche_contextuelle_13.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03e155f358ccd0dd7e5c78a948429ba9d51459a0a87020ba4d16e92a26ea69d0
3
+ size 123812
data/searching/dataset_recherche_contextuelle_14.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a433d7640400f8ba67beb25981aad3b23d8861be92a76d32c2216e893e49d43
3
+ size 149475
data/searching/dataset_recherche_contextuelle_15.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2eb2f7b3911921a44b60f4eabc85f79c2d246beca5fd259537817df1f8c57a1
3
+ size 166202
data/searching/dataset_recherche_contextuelle_16.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4cecdccf92eb9003e23eb6a569e98fbce368b19ba2d6c18b885cf4e26a69208
3
+ size 182033
data/sentences/dataset_phrases_mots_cles_1.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aede72819d08f91bf48a9bc78d1a28f85ab1d7e74dbd3b80d5338a9f8bf097b5
3
+ size 92078
data/sentences/dataset_phrases_mots_cles_2.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20e931119c7e558b1bf168f90653dced3b99009b9ee9ae7d52410ed482440f70
3
+ size 59299
data/sentences/dataset_phrases_mots_cles_3.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d175b2faca2ec6e2f8b4b0843a168a828d2cda1e161db1a08f836a3ff7fd8cd
3
+ size 36415
data/sentences/dataset_phrases_mots_cles_4.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec4cf956a053490cf98ec3369215ceb07be262e97f2e8ce08e16d0d13a966cc3
3
+ size 127667
dataset_infos.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prompt": {
3
+ "description": "French prompts to AI (1-5 sentences). Keywords separated by ', '.",
4
+ "splits": {
5
+ "train": {
6
+ "name": "train",
7
+ "num_bytes": 0,
8
+ "num_examples": 0
9
+ }
10
+ }
11
+ },
12
+ "sentences": {
13
+ "description": "French affirmative sentences (not necessarily questions). Keywords separated by ', '.",
14
+ "splits": {
15
+ "train": {
16
+ "name": "train",
17
+ "num_bytes": 0,
18
+ "num_examples": 0
19
+ }
20
+ }
21
+ },
22
+ "searching": {
23
+ "description": "Internet search queries (1-4 sentences, with context). Keywords separated by ' ' (space).",
24
+ "splits": {
25
+ "train": {
26
+ "name": "train",
27
+ "num_bytes": 0,
28
+ "num_examples": 0
29
+ }
30
+ }
31
+ }
32
+ }