The invention relates to processing of data during semantic analysis of text data and building of document semantic models. The method consists of two main steps. In step one, an ontology is extracted from external information sources that contain descriptions of particular domain objects. In step two, the text information in the document is linked to ontology concepts and a document semantic model is built. Electronic resources that may or may not be connected through a hyperlink structure are used as information sources. The technical result is achieved, in particular, by identifying all terms in the document and linking them to ontology concepts, so that each term correlates to one concept (its meaning), and then ranking term meanings by importance to the document.