Skip to content

Use Python read XES file, to transfer XES' trace information into Python dict

Notifications You must be signed in to change notification settings

FrankBGao/read_xes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

read_xes

Use Python read XES file, to transfer XES' trace information into Python dict. This program is aiming at providing a way for Python disposal XES data.

This file just a simple function for transfer XES' trace and event information into two python dicts. One is 'trace_attri', it is the information of trace which are gained from tag and the tags which are not event and in tag. Other is trace_event, it is the information of evnet which are gained for tag.

After you gain those two dict, you could transfer them into pandas DataFrame, or you could insert them into MonogoDB. I think that may more convenience for further usage.

The major problem is speed, this program is much slower than ProM's import. I think it may comes from anaylze XML and loops in program. If I have time I may could find out more effienct method. Therefore, if your XES file is really big, I think this program may consumes significant time.

At last, many thinks xmltodict(https://github.com/martinblech/xmltodict), xmltodict makes this program much easier.

About

Use Python read XES file, to transfer XES' trace information into Python dict

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages