parse an external corpus