Implementation of the computational components to the paper "How To Infer Events From Observations"