pm4py.llm.abstract_case#
- pm4py.llm.abstract_case(case: Trace, include_case_attributes: bool = True, include_event_attributes: bool = True, include_timestamp: bool = True, include_header: bool = True, activity_key: str = 'concept:name', timestamp_key: str = 'time:timestamp') str [source]#
Textually abstracts a case
- Parameters:
case (
Trace
) – case objectinclude_case_attributes (
bool
) – (boolean) include or not the attributes at the case levelinclude_event_attributes (
bool
) – (boolean) include or not the attributes at the event levelinclude_timestamp (
bool
) – (boolean) include or not the event timestamp in the abstractioninclude_header (
bool
) – (boolean) includes the header of the responseactivity_key (
str
) – the column to be used as activitytimestamp_key (
str
) – the column to be used as timestamp
- Return type:
str
import pm4py log = pm4py.read_xes("tests/input_data/roadtraffic100traces.xes", return_legacy_log_object=True) print(pm4py.llm.abstract_case(log[0]))