Automating knowledge distillation and representation from richly formatted data