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 object

  • include_case_attributes (bool) – (boolean) include or not the attributes at the case level

  • include_event_attributes (bool) – (boolean) include or not the attributes at the event level

  • include_timestamp (bool) – (boolean) include or not the event timestamp in the abstraction

  • include_header (bool) – (boolean) includes the header of the response

  • activity_key (str) – the column to be used as activity

  • timestamp_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]))