Model Training in Document Understanding