Document analysis training