File size: 4,559 Bytes
5236e72 0d4e8c3 ead135d 0d4e8c3 5236e72 049826b 0d4e8c3 5236e72 049826b 5236e72 049826b 5236e72 049826b 5236e72 049826b 5236e72 049826b 5236e72 0d4e8c3 5236e72 049826b 8461940 049826b 8461940 d9ce73c 5236e72 0d4e8c3 5236e72 0d4e8c3 5236e72 |
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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
---
license: cc-by-4.0
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
- split: validation
path: data/validation-*
- split: test
path: data/test-*
dataset_info:
features:
- name: system
dtype: string
- name: in
dtype: string
- name: out
dtype: string
splits:
- name: train
num_bytes: 90555
num_examples: 279
- name: validation
num_bytes: 15237
num_examples: 46
- name: test
num_bytes: 74445
num_examples: 226
download_size: 21264
dataset_size: 180237
task_categories:
- text-generation
language:
- en
tags:
- code
- dsl
- recurrence
- temporal-reasoning
- structured-output
- low-resource
pretty_name: Mini recurrence converter DSL dataset
size_categories:
- n<1K
---
# mini-recurrence-converter-dsl-dataset
This dataset is used to prototype models for the [Mini Recurrence Converter DSL module](https://github.com/gh9869827/fifo-dev-dsl/tree/main/fifo_dev_dsl/domain_specific/mini_recurrence_converter_dsl).
It is provided for demonstration and experimentation purposes only.
It pairs English **recurrence expressions** (e.g., `"every Tuesday at 8am"`) with symbolic DSL function calls (e.g., `WEEKLY(1, [TU], TIME(8, 0))`) compatible with the module.
---
## 📦 Format
The dataset uses a **wide format** with the following three columns:
- `system` — the system prompt that defines the model's task
- `in` — the natural language **recurrence expressions** (e.g. `"every Tuesday at 8am"`)
- `out` — the corresponding DSL expression (e.g. `WEEKLY(1, [TU], TIME(8, 0))`)
Each entry consists of a `system`, `in`, and `out` field, forming a structured input-output example.
For all examples, the system prompt is set to:
```plaintext
You are a precise parser of recurring schedule expressions. Your only job is to translate natural language recurrence expressions into structured DSL function calls such as WEEKLY(...) or MONTHLY_BY_WEEKDAY(...). Do not explain or elaborate. Only return the code.
```
Example:
```plaintext
$ You are a precise parser of recurring schedule expressions. Your only job is to translate natural language recurrence expressions into structured DSL function calls such as WEEKLY(...) or MONTHLY_BY_WEEKDAY(...). Do not explain or elaborate. Only return the code.
> every second Tuesday of the month at 1pm
< MONTHLY_BY_WEEKDAY(1, TU, 2, TIME(13, 0))
```
---
## 🧠 DSL Interpreter Project
The DSL used in this dataset is implemented in the [Mini Recurrence Converter DSL module](https://github.com/gh9869827/fifo-dev-dsl/tree/main/fifo_dev_dsl/domain_specific/mini_recurrence_converter_dsl).
Example:
```python
from fifo_dev_dsl.domain_specific.mini_recurrence_converter_dsl.core import MiniRecurrenceConverterDSL
dsl = "WEEKLY(1, [MO, WE], TIME(10, 0))"
parsed = MiniRecurrenceConverterDSL().parse(dsl)
print(parsed)
# RecurrenceRule(unit=<RecurrenceUnit.WEEKLY>, frequency=1, days=[0, 2], day_of_month=None, month=None, occurrence=None, hour=10, minute=0)
```
---
## 🚀 Using the Dataset
To load the dataset:
```python
from fifo_tool_datasets.sdk.hf_dataset_adapters.dsl import DSLAdapter
dataset_dict = DSLAdapter().from_hub_to_dataset_dict("a6188466/mini-recurrence-converter-dsl-dataset")
print(dataset_dict["train"])
print(dataset_dict["validation"])
print(dataset_dict["test"])
```
---
## 🔧 Upload & Editing Tools
Uploaded via [`fifo-tool-datasets`](https://github.com/gh9869827/fifo-tool-datasets) using the `dsl` adapter.
You can edit or extend the dataset using its `.dat` format and CLI tools.
---
## ⚠️ Disclaimer & Limitations
This dataset is intended solely for prototyping models for the [Mini Recurrence Converter DSL module](https://github.com/gh9869827/fifo-dev-dsl/tree/main/fifo_dev_dsl/domain_specific/mini_recurrence_converter_dsl).
It does not cover all phrasings or edge cases of English **recurrence expressions**. Instead, it focuses on illustrative examples supported by [the module's DSL functions](https://github.com/gh9869827/fifo-dev-dsl/tree/main/fifo_dev_dsl/domain_specific/mini_recurrence_converter_dsl#-dsl-syntax-and-examples). The dataset should be independently evaluated and extended to meet the specific requirements of any use case.
This dataset is provided *as is*, without any warranties, express or implied. The authors and contributors assume no responsibility for its accuracy, completeness, or suitability for any purpose.
---
## 🪪 License
This dataset is licensed under **CC BY 4.0**. See [LICENSE](LICENSE) for details.
|