Developing hierarchical anticipations via neural network-based event segmentation