- CRX: direct CHARE inference (Algorithm 7, TODS 2010) - iDRegEx: k-ORE inference (Algorithm 4, arXiv 2010) - RWR₀: SORE repair (Algorithm 6, TODS 2010) - rwr²: k-ORE extraction (Algorithm 3, arXiv 2010) - SOA, k-OA, iKoa, 2T-INF, Baum-Welch - Ansible role grammar adapter - Generic YAML key-path converter - 28 tests, all passing
26 lines
784 B
Python
26 lines
784 B
Python
"""
|
|
bex — Paper-faithful implementation of BEX inference algorithms.
|
|
|
|
Papers:
|
|
- Bex et al. 2010 (TODS): Inference of Concise Regular Expressions and DTDs
|
|
- Bex et al. 2010 (arXiv 1004.2372): Learning Deterministic Regular Expressions
|
|
|
|
Algorithms implemented:
|
|
TODS 2010: 2T-INF, REWRITE, RWR, RWR², RWR₀, CRX
|
|
arXiv 2010: iKoa, Disambiguate, rwr², iDRegEx
|
|
"""
|
|
|
|
from .soa import SOA
|
|
from .twotinf import build_soa
|
|
from .rwr0 import rwr0
|
|
from .crx import CRX
|
|
from .ikoa import ikoa
|
|
from .rwrsq import rwr_sq
|
|
from .idregex import idregex
|
|
from .koa import KOA, build_complete_koa
|
|
from .expr import concat, disj, star, optional, alphabet, strip_k
|
|
from .marking import mark_koa
|
|
from .tokenizer import YAMLTokenizer
|
|
from .template import generate_template
|
|
|
|
__version__ = "0.2.0"
|