pm4py.llm.abstract_temporal_profile#
- pm4py.llm.abstract_temporal_profile(temporal_profile: Dict[Tuple[str, str], Tuple[float, float]], include_header: bool = True) str [source]#
Abstracts a temporal profile model to a string.
- Parameters:
temporal_profile – temporal profile model
include_header (
bool
) – includes an header in the response, describing the temporal profile
- Return type:
str
import pm4py log = pm4py.read_xes("tests/input_data/roadtraffic100traces.xes", return_legacy_log_object=True) temporal_profile = pm4py.discover_temporal_profile(log) text_abstr = pm4py.llm.abstract_temporal_profile(temporal_profile, include_header=True) print(text_abstr)