pm4py.llm.abstract_ocel#
- pm4py.llm.abstract_ocel(ocel: OCEL, include_timestamps: bool = True) str [source]#
Obtains the abstraction of an object-centric event log, including the list of events and the objects of the OCEL.
- Return type:
str
- Parameters:
ocel (
OCEL
) – The object-centric event log to abstract.include_timestamps (
bool
) – Whether to include timestamp information in the abstraction.
- Returns:
The OCEL abstraction as a string.
import pm4py ocel = pm4py.read_ocel("tests/input_data/ocel/example_log.jsonocel") print(pm4py.llm.abstract_ocel(ocel))