Downloads · 30 days
22
31% of all-time downloads
mrseongminkim/ReSyn-Set2Regex
ReSyn-Set2Regex is a text generation model from mrseongminkim. Use it when you need the model to write or continue text. It is set up for resyn. The card lists the license as apache-2.0.
This repository contains the pre-trained Set2Regex model presented in the paper ReSyn: A Generalized Recursive Regular Expression Synthesis Framework.
Downloads · 30 days
22
31% of all-time downloads
All-time downloads
72
Public
Parameters
10.1M
40.3 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors40.3 MB · 100%
From the Hugging Face model README
This repository contains the pre-trained Set2Regex model presented in the paper ReSyn: A Generalized Recursive Regular Expression Synthesis Framework.
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).
Set2Regex is the core neural synthesizer. Given a set of positive and negative example strings, it autoregressively generates a regular expression that matches every positive string and rejects every negative string. It encodes the example set with a hierarchical (character-level then string-level) Transformer and decodes the regex with set- and string-conditioned Transformer decoders. Greedy, top-k/top-p sampling, and beam search decoding are supported (see predict).
These are custom PyTorch models that use PyTorchModelHubMixin. The model class is defined in the GitHub repository; clone it first so that the ReSyn package is importable, then:
from ReSyn.model import Set2Regex
model = Set2Regex.from_pretrained("mrseongminkim/ReSyn-Set2Regex").eval()
See ReSyn/server.py for the full input encoding / output decoding used at inference time.
If you find this work useful, please cite:
@inproceedings{kim2026resyn,
title={ReSyn: A Generalized Recursive Regular Expression Synthesis Framework},
author={Kim, Seongmin and Cheon, Hyunjoon and Kim, Su-Hyeon and Han, Yo-Sub and Ko, Sang-Ki},
booktitle={Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence (IJCAI-26)},
year={2026}
}