Python3 module inferring Abstract Syntax Trees (AST) representing regular expressions (RE) given a set of positive examples.
Project description
fAST (find Abstract Syntax Tree)
Overview
find-abstract-syntax-tree is a Python 3 implemention of the fAST algorithm. This algorithm aims at inferring a regular expression from a finite set of positive examples.
The fAST algorithm is described in:
[ICGI'2023] fAST: regular expression inference from positive examples using Abstract Syntax Trees, Maxime Raynal, Marc-Olivier Buob, Georges Quénot.
This module is built on top of:
Quick start
Install the package through PIP:
pip3 install find-abstract-syntax-tree
In your python interpreter, run:
from fast import fast
results = fast(["abc", "abcabc", "abcabcabc"])
for (score, ast) in results:
print(score, ast.to_infix_regexp_str())
Links
License
This project is licensed under the BSD-3-Clause license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file find_abstract_syntax_tree-0.2.1.tar.gz.
File metadata
- Download URL: find_abstract_syntax_tree-0.2.1.tar.gz
- Upload date:
- Size: 30.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.13 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23776c3cdb97b2ef582b3d80a97d1209fd1d34f9bbefe794d8f08168f0b00e3d
|
|
| MD5 |
29734dc0adeafbf5fbb334495c77ea22
|
|
| BLAKE2b-256 |
111748be70f291cc1fa520bb2498f9c7484f308b0c0c6e1cb138440336beca54
|
File details
Details for the file find_abstract_syntax_tree-0.2.1-py3-none-any.whl.
File metadata
- Download URL: find_abstract_syntax_tree-0.2.1-py3-none-any.whl
- Upload date:
- Size: 35.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.13 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
235fd560d09abc1b67fe0e051634ee0bfa39cfdad145656856331adf859cb2e5
|
|
| MD5 |
8db2e2f8534393eb5bdddd7e7ee40cf8
|
|
| BLAKE2b-256 |
2dce0d5b755c71512521c8e676bb3f49620eb601dfb29cf4a3a11720a22e3298
|