Text this: Structural analysis learnt by example :