Text this: Structural phase transitions in neural networks