Imported from https://github.com/stonybrooknlp/event-tensors