Text this: Deep learning of contagion dynamics on complex networks