Learning Multi-Way Relations via Tensor Decomposition With Neural Networks