A restoration model for damaged Joseon Dynasty records using document context and historical archives.