Add model card
Browse files
README.md
CHANGED
|
@@ -1,14 +1,54 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
library_name: resyn
|
|
|
|
| 3 |
tags:
|
| 4 |
-
-
|
|
|
|
|
|
|
| 5 |
- pytorch
|
|
|
|
| 6 |
- pytorch_model_hub_mixin
|
| 7 |
-
- regex-synthesis
|
| 8 |
- router
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
library_name: resyn
|
| 4 |
+
pipeline_tag: text-classification
|
| 5 |
tags:
|
| 6 |
+
- regex
|
| 7 |
+
- regex-synthesis
|
| 8 |
+
- program-synthesis
|
| 9 |
- pytorch
|
| 10 |
+
- model_hub_mixin
|
| 11 |
- pytorch_model_hub_mixin
|
|
|
|
| 12 |
- router
|
| 13 |
+
datasets:
|
| 14 |
+
- mrseongminkim/ReSyn
|
| 15 |
---
|
| 16 |
|
| 17 |
+
# ReSyn — Router
|
| 18 |
+
|
| 19 |
+
This repository contains the pre-trained **Router** model presented in the paper [ReSyn: A Generalized Recursive Regular Expression Synthesis Framework](https://huggingface.co/papers/2603.24624).
|
| 20 |
+
|
| 21 |
+
ReSyn is a synthesizer-agnostic divide-and-conquer framework that decomposes complex regular expression synthesis problems into manageable sub-problems by adaptively predicting whether to split examples sequentially (Concatenation) or group them by structural similarity (Union).
|
| 22 |
+
|
| 23 |
+
**Router** decides *how* to decompose a synthesis problem. Given a set of positive example strings, it classifies the set into one of three actions — **Concat**, **Union**, or **No-Op** — telling the framework whether to split the examples sequentially, group them by structural similarity, or synthesize them directly without further decomposition.
|
| 24 |
+
|
| 25 |
+
## Links
|
| 26 |
+
|
| 27 |
+
- **Paper:** [ReSyn: A Generalized Recursive Regular Expression Synthesis Framework](https://huggingface.co/papers/2603.24624)
|
| 28 |
+
- **GitHub Repository:** [mrseongminkim/ReSyn](https://github.com/mrseongminkim/ReSyn)
|
| 29 |
+
- **Dataset:** [mrseongminkim/ReSyn](https://huggingface.co/datasets/mrseongminkim/ReSyn)
|
| 30 |
+
|
| 31 |
+
## Usage
|
| 32 |
+
|
| 33 |
+
These are custom PyTorch models that use [`PyTorchModelHubMixin`](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin). The model class is defined in the [GitHub repository](https://github.com/mrseongminkim/ReSyn); clone it first so that the `ReSyn` package is importable, then:
|
| 34 |
+
|
| 35 |
+
```python
|
| 36 |
+
from ReSyn.model import Router
|
| 37 |
+
|
| 38 |
+
model = Router.from_pretrained("mrseongminkim/ReSyn-Router").eval()
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
See [`ReSyn/server.py`](https://github.com/mrseongminkim/ReSyn/blob/main/ReSyn/server.py) for the full input encoding / output decoding used at inference time.
|
| 42 |
+
|
| 43 |
+
## Citation
|
| 44 |
+
|
| 45 |
+
If you find this work useful, please cite:
|
| 46 |
+
|
| 47 |
+
```bibtex
|
| 48 |
+
@inproceedings{kim2026resyn,
|
| 49 |
+
title={ReSyn: A Generalized Recursive Regular Expression Synthesis Framework},
|
| 50 |
+
author={Kim, Seongmin and Cheon, Hyunjoon and Kim, Su-Hyeon and Han, Yo-Sub and Ko, Sang-Ki},
|
| 51 |
+
booktitle={Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence (IJCAI-26)},
|
| 52 |
+
year={2026}
|
| 53 |
+
}
|
| 54 |
+
```
|