Abstract
A method, a system, and a computer program product for generation of templates for electronic documents. A first template is generated based on a plurality of electronic documents. The first template defines a first structural arrangement of one or more portions extracted from the electronic documents and includes one or more portions. A machine learning model determines the first structural arrangement. An update to at least one portion is received. A second template is generated based on the first template and the received update. The second template defines a second structural arrangement of the portions as determined based on the first structural arrangement and the received update. An object model representative of at least one of: the first template, the second template, and a difference between the first and second templates is stored.