pm4py.llm.abstract_declare#
- pm4py.llm.abstract_declare(declare_model, include_header: bool = True) str [source]#
Textually abstracts a DECLARE model.
- Return type:
str
- Parameters:
declare_model – The DECLARE model to abstract.
include_header (
bool
) – Whether to include a header in the abstraction.
- Returns:
The DECLARE model abstraction as a string.
import pm4py log = pm4py.read_xes("tests/input_data/roadtraffic100traces.xes", return_legacy_log_object=True) log_ske = pm4py.discover_declare(log) print(pm4py.llm.abstract_declare(log_ske))