Text this: Deep neural networks and humans both benefit from compositional language structure