Search

CN-113139372-B - Information processing apparatus, storage medium, information processing method, and computer program product

CN113139372BCN 113139372 BCN113139372 BCN 113139372BCN-113139372-B

Abstract

An information processing apparatus includes a processor that determines a1 st sample document corresponding to a1 st document including a1 st document element and a2 nd sample document corresponding to a2 nd document including a2 nd document element when a relation is set between the 1 st document element and the 2 nd document element, sets a relation between a1 st sample element corresponding to the 1 st document element among document elements in the 1 st sample document and a2 nd sample element corresponding to the 2 nd document element among document elements in the 2 nd sample document, and generates a1 st copy document obtained by copying the 1 st sample document and a2 nd copy document obtained by copying the 2 nd sample document after setting the relation between the 1 st sample element and the 2 nd sample element.

Inventors

  • Kobayashi Zhenzhi

Assignees

  • 富士胶片商业创新有限公司

Dates

Publication Date
20260508
Application Date
20200901
Priority Date
20200120

Claims (6)

  1. 1. An information processing apparatus, comprising a processor, The processor performs the following processing: when a relation is set between a1 st document element and a2 nd document element, a1 st sample document corresponding to a1 st document containing the 1 st document element and a2 nd sample document corresponding to a2 nd document containing the 2 nd document element are determined, The relationship is set between a1 st sample element which is a document element corresponding to the 1 st document element in the 1 st sample document and a2 nd sample element which is a document element corresponding to the 2 nd document element in the 2 nd sample document, When a 1 st copy document in which the 1 st sample document is copied and a 2 nd copy document in which the 2 nd sample document is copied are generated after the relationship is set between the 1 st sample element and the 2 nd sample element, the relationship is set between a document element corresponding to the 1 st sample element in the 1 st copy document and a document element corresponding to the 2 nd sample element in the 2 nd copy document, The 1 st sample document is determined according to the number of times each document in the ancestor document set of the 1 st document is copied.
  2. 2. The information processing apparatus according to claim 1, wherein, When the relationship is set between the 1 st sample element and the 2 nd sample element, the processor sets the relationship between a document element corresponding to the 1 st sample element in an existing 3 rd document generated from the 1 st sample document and a document element corresponding to the 2 nd sample element in an existing 4 th document generated from the 2 nd sample document.
  3. 3. The information processing apparatus according to claim 1 or 2, wherein, In tracing the 1 st document one by one to the ancestor side, the ancestor side document when the similarity of the contents other than the text of the adjacent documents becomes a threshold or less is not selected as the 1 st sample document.
  4. 4. A storage medium storing a program for causing a computer to execute: When a relation is set between a1 st document element and a2 nd document element, determining a1 st sample document corresponding to a1 st document containing the 1 st document element and a2 nd sample document corresponding to a2 nd document containing the 2 nd document element; Setting the relationship between a1 st sample element, which is a document element corresponding to the 1 st document element, among document elements in the 1 st sample document, and a2 nd sample element, which is a document element corresponding to the 2 nd document element, among document elements in the 2 nd sample document; When a 1 st copy document in which the 1 st sample document is copied and a 2 nd copy document in which the 2 nd sample document is copied are generated after the relationship is set between the 1 st sample element and the 2 nd sample element, the relationship is set between a document element corresponding to the 1 st sample element in the 1 st copy document and a document element corresponding to the 2 nd sample element in the 2 nd copy document, The 1 st sample document is determined according to the number of times each document in the ancestor document set of the 1 st document is copied.
  5. 5. An information processing method, characterized by comprising the steps of: When a relation is set between a1 st document element and a2 nd document element, determining a1 st sample document corresponding to a1 st document containing the 1 st document element and a2 nd sample document corresponding to a2 nd document containing the 2 nd document element; Setting the relationship between a1 st sample element, which is a document element corresponding to the 1 st document element, among document elements in the 1 st sample document, and a2 nd sample element, which is a document element corresponding to the 2 nd document element, among document elements in the 2 nd sample document; When a 1 st copy document in which the 1 st sample document is copied and a 2 nd copy document in which the 2 nd sample document is copied are generated after the relationship is set between the 1 st sample element and the 2 nd sample element, the relationship is set between a document element corresponding to the 1 st sample element in the 1 st copy document and a document element corresponding to the 2 nd sample element in the 2 nd copy document, The 1 st sample document is determined according to the number of times each document in the ancestor document set of the 1 st document is copied.
  6. 6. A computer program product comprising a program for causing a computer to execute: When a relation is set between a1 st document element and a2 nd document element, determining a1 st sample document corresponding to a1 st document containing the 1 st document element and a2 nd sample document corresponding to a2 nd document containing the 2 nd document element; Setting the relationship between a1 st sample element, which is a document element corresponding to the 1 st document element, among document elements in the 1 st sample document, and a2 nd sample element, which is a document element corresponding to the 2 nd document element, among document elements in the 2 nd sample document; When a 1 st copy document in which the 1 st sample document is copied and a 2 nd copy document in which the 2 nd sample document is copied are generated after the relationship is set between the 1 st sample element and the 2 nd sample element, the relationship is set between a document element corresponding to the 1 st sample element in the 1 st copy document and a document element corresponding to the 2 nd sample element in the 2 nd copy document, The 1 st sample document is determined according to the number of times each document in the ancestor document set of the 1 st document is copied.

Description

Information processing apparatus, storage medium, information processing method, and computer program product Technical Field The present invention relates to an information processing apparatus, a storage medium, an information processing method, and a computer program product. Background As a method of creating an electronic document such as a document file, a method of adding a record or change to a sample (i.e., a template) is often used. In addition to sample data prepared in the form of sample-specific data, a copy of an existing document is sometimes used as a sample. Information on the relationship between a document or a document element and another document or a document element is recorded and used. In other words, a document is composed of 1 or more document elements. In the system disclosed in patent document 1, when a user selects a document of a copy source, a copy source document group to which the selected document belongs is compared with a subsequent document group created based on the copy source document group. Further, in addition to the image representing the structure of the copy source document group, the difference in structure of the document group of the copy source document group and the subsequent document group is symbolically displayed. The user selects a desired document therefrom and presses a registration button. Thus, the document group is duplicated to include the association between the documents. Patent document 1 shows, as an example of the association between documents, an association between documents such as when an ISO document group is constituted of a plurality of documents in a certain structure. Patent document 1 Japanese patent laid-open No. 2007-323441 Disclosure of Invention The object of the present invention is to reflect, when document elements between documents have a relationship with each other, the same relationship in sample documents of these documents, even if the relationship is not explicitly set in the corresponding document elements within documents copied from these sample documents. The invention according to claim 1 is an information processing apparatus comprising a processor that, when a relation is set between a1 st document element and a 2 nd document element, determines a1 st sample document corresponding to a1 st document including the 1 st document element and a 2 nd sample document corresponding to a 2 nd document including the 2 nd document element, sets the relation between a1 st sample element, which is a document element corresponding to the 1 st document element, in the 1 st sample document and a 2 nd sample element, which is a document element corresponding to the 2 nd document element, in the 2 nd sample document, in the document elements in the 1 st sample document, and when the relation is set between the 1 st sample element and the 2 nd sample element, and then generates a1 st copy document in which the 1 st sample document is copied and a 2 nd copy document in which the 2 nd sample document is copied, sets the relation between the 1 st sample element in the 1 st copy document and the 2 nd sample element in the 2 nd copy document. An invention according to claim 2 is the information processing apparatus according to claim 1, wherein when the relation is set between the 1 st sample element and the 2 nd sample element, the processor sets the relation between a document element corresponding to the 1 st sample element in an existing 3 rd document generated from the 1 st sample document and a document element corresponding to the 2 nd sample element in an existing 4 th document generated from the 2 nd sample document. The invention according to claim 3 is the information processing apparatus according to claim 1 or 2, wherein the 1 st sample document is determined from the document group of ancestor of the 1 st document according to the number of times of copying. In the information processing apparatus according to any one of claims 1 to 3, in the process of tracing the 1 st document one by one to the ancestor side, the ancestor side document in which the similarity of contents other than the body of adjacent documents becomes a threshold or less is not selected as the 1 st sample document. The invention according to claim 5 is a storage medium storing a program for causing a computer to execute, when a relation is set between a 1 st document element and a 2 nd document element, determining a 1 st sample document corresponding to a 1 st document including the 1 st document element and a 2 nd sample document corresponding to a 2 nd document including the 2 nd document element, setting the relation between a 1 st sample element corresponding to the 1 st document element among document elements in the 1 st sample document and a 2 nd sample element corresponding to the 2 nd document element among document elements in the 2 nd sample document, and after the relation is set between the 1 st sample element and the 2 nd sample elemen