eaguaida commited on
Commit
d041b93
·
verified ·
1 Parent(s): b51738a

Upload processed TeleLogs dataset with MCQ format

Browse files
INSTRUCTIONS.md ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TeleLogs Dataset Extraction Instructions
2
+
3
+ ## Problem
4
+ The current environment has network restrictions that block access to HuggingFace. The dataset cannot be downloaded automatically from `netop/TeleLogs`.
5
+
6
+ ## Solutions
7
+
8
+ ### Option 1: Run Locally (Recommended)
9
+
10
+ Run the extraction script on your local machine where you have internet access to HuggingFace:
11
+
12
+ ```bash
13
+ # Make sure you're in the project root
14
+ cd /path/to/Telecom-Bench
15
+
16
+ # Install dependencies
17
+ pip install -e .
18
+
19
+ # Set your HuggingFace token as an environment variable
20
+ export HF_TOKEN=your_huggingface_token_here
21
+
22
+ # Run the extraction script
23
+ python extract_telelogs.py
24
+ ```
25
+
26
+ The script will:
27
+ 1. Download the TeleLogs dataset from HuggingFace (using the provided token)
28
+ 2. Process the test split
29
+ 3. Transform the data:
30
+ - Remove 'C' prefix from answers (C4 → 4)
31
+ - Extract 8 choices into an array
32
+ - Clean the questions by removing template text
33
+ 4. Save to `telelogs/` folder in multiple formats (CSV, JSON, Parquet)
34
+
35
+ ### Option 2: Manual Download and Transform
36
+
37
+ 1. Download the dataset manually from https://huggingface.co/datasets/netop/TeleLogs
38
+ 2. Place the files in this `telelogs` folder
39
+ 3. Run a simplified transformation script (to be created if needed)
40
+
41
+ ### Option 3: Use Alternative Environment
42
+
43
+ Run this in an environment without proxy restrictions:
44
+ - Google Colab
45
+ - Local Jupyter notebook
46
+ - Any machine with direct internet access
47
+
48
+ ## Dataset Transformation Details
49
+
50
+ The script performs these transformations on the test split:
51
+
52
+ 1. **Answer column**: Strips 'C' prefix and converts to 0-based index
53
+ - Before: `C1` -> After: `0`
54
+ - Before: `C4` -> After: `3`
55
+ - Before: `C8` -> After: `7`
56
+ - This matches the array indexing of the choices
57
+
58
+ 2. **Choices column** (new): Extracts 8 choices cleanly from question text
59
+ - Parses choices formatted as `C1: content`, `C2: content`, ..., `C8: content`
60
+ - For C8, stops at `\n\n` which separates the choice from actual question data
61
+ - Creates array: `["choice1", "choice2", ..., "choice8"]`
62
+ - Choices are indexed 0-7 in the array
63
+
64
+ 3. **Question column**: Extracts actual question data only
65
+ - **Removes** the instruction template completely (e.g., "Analyze the 5G wireless network...")
66
+ - **Removes** the choice listing (C1-C8)
67
+ - **Keeps only** the actual question data after `\n\n` following C8
68
+ - Typically starts with "Given:" and includes all data tables
69
+
70
+ ## Output Files
71
+
72
+ After successful extraction, you'll have:
73
+ - `telelogs_test.csv` - CSV format
74
+ - `telelogs_test.json` - JSON format
75
+ - `telelogs_test.parquet` - Parquet format (most efficient)
76
+ - `README.md` - Dataset documentation
77
+
78
+ ## HuggingFace Authentication
79
+
80
+ You'll need a HuggingFace token with access to the `netop/TeleLogs` dataset. Set it as an environment variable:
81
+
82
+ ```bash
83
+ export HF_TOKEN=your_huggingface_token_here
84
+ ```
85
+
86
+ Alternatively, you can use `huggingface-cli login` if you have the HuggingFace CLI installed.
87
+
88
+ ## Next Steps
89
+
90
+ Once you've extracted the dataset:
91
+ 1. Commit the processed files to the repository
92
+ 2. The data will be available for the LLM evaluation pipeline
93
+ 3. You can work with the dataset in MCQ format
README.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TeleLogs Dataset (Processed)
2
+
3
+ This dataset has been extracted from HuggingFace and processed into MCQ format.
4
+
5
+ ## Transformations Applied
6
+
7
+ 1. **Answer column**: Removed 'C' prefix, keeping only the number (C4 -> 4)
8
+ 2. **Choices column**: Extracted 8 choices from questions into an array
9
+ 3. **Question column**: Removed template text and choice options
10
+
11
+ ## Dataset Info
12
+
13
+ - Number of samples: 864
14
+ - Columns: question, answer, choices
15
+
16
+ ## Files
17
+
18
+ - `telelogs_test.csv`: CSV format
19
+ - `telelogs_test.json`: JSON format
20
+ - `telelogs_test.parquet`: Parquet format (recommended for large datasets)
telelogs_test.csv ADDED
The diff for this file is too large to render. See raw diff
 
telelogs_test.json ADDED
The diff for this file is too large to render. See raw diff
 
telelogs_test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04aaa5e54662c62dfd756613cf03f7af4fb5a23bd660a9b73a8c06e0641626dd
3
+ size 390128