CN112651215B - Method and device for determining document map, electronic equipment and storage medium - Google Patents

Method and device for determining document map, electronic equipment and storage medium Download PDF

Info

Publication number
CN112651215B
CN112651215B CN202011627547.6A CN202011627547A CN112651215B CN 112651215 B CN112651215 B CN 112651215B CN 202011627547 A CN202011627547 A CN 202011627547A CN 112651215 B CN112651215 B CN 112651215B
Authority
CN
China
Prior art keywords
document
picture
target document
preset
pictures
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011627547.6A
Other languages
Chinese (zh)
Other versions
CN112651215A (en
Inventor
周超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202011627547.6A priority Critical patent/CN112651215B/en
Publication of CN112651215A publication Critical patent/CN112651215A/en
Application granted granted Critical
Publication of CN112651215B publication Critical patent/CN112651215B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a method, a device, electronic equipment and a storage medium for determining a document map, wherein the method comprises the following steps: obtaining a target document to which a matching chart needs to be added; obtaining the number of document contents included in the target document, wherein; obtaining the number of pictures included in a preset picture library; calculating the number of the document contents and the number of the pictures by using a preset calculation mode to obtain a first calculation result; and selecting a picture matched with the first calculation result from a preset picture library, and determining the picture as a matching picture of the target document. The application can determine the map matching of the target document according to the number of the document contents included in the target document and the number of the pictures included in the preset picture library, and the map matching of the document is recommended to the user on the premise of not depending on the system attribute of an operating system or an operating platform.

Description

Method and device for determining document map, electronic equipment and storage medium
Technical Field
The present application relates to the field of document processing technologies, and in particular, to a method and apparatus for determining a document map, an electronic device, and a storage medium.
Background
With the wide development of internet applications, the internet users in China have come close to 10 billion, and social network services (Social Networking Services, SNS) for promoting communication among users are generated, and the manifestations include software applications such as BBS forums, blogs, bar sticks, interaction communities and the like. In order to enrich the interactive content, the SNS community typically performs processes such as map matching, html presentation optimization, etc. for user articles.
In order to avoid adverse effects caused by illegal pictures, and reduce picture auditing work of management staff, an SNS community usually adopts a mode of designating a picture distribution set to deliver solutions such as selecting an article picture distribution picture to a customer. Over time, a random scheme for mapping articles appears, which generally uses time or system attributes as a random factor to generate random numbers as a mapping basis. But such a map random scheme relies on system attributes (e.g., system time, random number seed) of the operating system or running platform.
Disclosure of Invention
The embodiment of the application aims to provide a method, a device, electronic equipment and a storage medium for determining document map matching, so that the document map matching is recommended to a user on the premise of not depending on system attributes of an operating system or an operating platform. The specific technical scheme is as follows:
a document map determining method, comprising:
obtaining a target document to which a matching chart needs to be added;
obtaining the number of document contents included in the target document, wherein the number of document contents included in the target document includes: at least one of the number of characters included in the target document, the number of paragraphs included in the target document, the number of lines included in the target document, and the number of pictures included in the target document;
obtaining the number of pictures included in a preset picture library;
calculating the number of the document contents and the number of the pictures by using a preset calculation mode to obtain a first calculation result;
and selecting a picture matched with the first calculation result from the preset picture library, and determining the picture as the matching picture of the target document.
Optionally, the calculating the number of the document contents and the number of the pictures by using a preset calculating mode to obtain a first calculation result includes:
when the number of the document contents included in the target document comprises at least two numbers, performing integration calculation on the at least two numbers to obtain a first number, wherein the integration calculation is as follows: an average operation or a summation operation;
and performing modular operation on the first quantity and the picture quantity to obtain a first calculation result.
Optionally, the performing a modulo operation on the first number and the number of pictures to obtain a first calculation result includes:
by the formula
S mod N=I
Calculating to obtain a first calculation result I, wherein I is the first calculation result, S is the first number, and N is the number of pictures.
Optionally, the calculating the number of the document contents and the number of the pictures by using a preset calculating mode to obtain a first calculation result includes:
and when the number of the document contents included in the target document comprises one number, performing modular operation on the number of the document contents and the number of the pictures to obtain a first calculation result.
Optionally, the method further comprises:
displaying the determined map of the target document at a first preset position inside the target document;
or displaying the determined map of the target document at a second preset position around the target document.
Optionally, the selecting a picture matched with the first calculation result from the preset picture library, and determining the picture as the matching picture of the target document includes:
determining a picture identifier matched with the first calculation result from the preset picture library, and determining a picture with the determined picture identifier as a matching picture of the target document;
or alternatively, the process may be performed,
and selecting pictures with the arrangement sequence number identical to that of the first calculation result from the preset picture library, and determining the pictures as the configuration picture of the target document, wherein each picture in the preset picture library is provided with the arrangement sequence number set according to the preset arrangement sequence.
Optionally, the method further comprises:
determining a document type of the target document;
the obtaining the number of the pictures included in the preset picture library includes:
obtaining the number of pictures included in a preset picture library matched with the document type;
the selecting the picture matched with the first calculation result from the preset picture library, and determining the picture as the matching picture of the target document comprises the following steps:
and selecting a picture matched with the first calculation result from the preset picture library matched with the document type, and determining the picture as the matching picture of the target document.
A document map determining apparatus comprising: a document obtaining unit, a content number obtaining unit, a picture number obtaining unit, a calculating unit and a map making determining unit,
the document obtaining unit is configured to obtain a target document to which a matching diagram needs to be added;
the content number obtaining unit is configured to perform obtaining a number of document contents included in the target document, wherein the number of document contents included in the target document includes: at least one of the number of characters included in the target document, the number of paragraphs included in the target document, the number of lines included in the target document, and the number of pictures included in the target document;
the picture quantity obtaining unit is configured to obtain the picture quantity included in a preset picture library;
the computing unit is configured to execute computing on the number of the document contents and the number of the pictures by using a preset computing mode to obtain a first computing result;
the map matching determination unit is configured to perform selecting a picture matched with the first calculation result from the preset picture library, and determine a map matching of the target document.
Optionally, the computing unit includes: an integration subunit and a first modulus subunit,
the integration subunit is configured to perform, when the number of document contents included in the target document includes at least two numbers, an integration calculation on the at least two numbers to obtain a first number, where the integration calculation is: an average operation or a summation operation;
the first modulus taking unit is configured to perform modulus taking operation on the first number and the picture number to obtain a first calculation result.
Optionally, the first modulus unit is specifically configured to perform:
by the formula
S mod N=I
Calculating to obtain a first calculation result I, wherein I is the first calculation result, S is the first number, and N is the number of pictures.
Optionally, the computing unit is specifically configured to perform:
and when the number of the document contents included in the target document comprises one number, performing modular operation on the number of the document contents and the number of the pictures to obtain a first calculation result.
Optionally, the document map determining apparatus further includes: a first display unit or a second display unit,
the first display unit is configured to execute the first preset position for displaying the determined matching diagram of the target document in the target document;
the second display unit is configured to display the determined map of the target document at a second preset position around the target document.
Optionally, the map determining unit is configured to perform:
determining a picture identifier matched with the first calculation result from the preset picture library, and determining a picture with the determined picture identifier as a matching picture of the target document;
or alternatively, the process may be performed,
and selecting pictures with the arrangement sequence number identical to that of the first calculation result from the preset picture library, and determining the pictures as the configuration picture of the target document, wherein each picture in the preset picture library is provided with the arrangement sequence number set according to the preset arrangement sequence.
Optionally, the document map determining apparatus further includes: a type determining unit configured to perform determination of a document type of the target document;
the picture number obtaining unit is specifically configured to perform: obtaining the number of pictures included in a preset picture library matched with the document type;
the map determining unit is specifically configured to perform: and selecting a picture matched with the first calculation result from the preset picture library matched with the document type, and determining the picture as the matching picture of the target document.
A storage medium having stored thereon a program which, when executed by a processor, implements any of the document map determining methods described above.
An electronic device comprising at least one processor, and at least one memory, bus connected to the processor; the processor and the memory complete communication with each other through the bus; the processor is used for calling a program in the memory, and the program is at least used for realizing any of the document map determining methods.
The method, the device, the electronic equipment and the storage medium for determining the document map can obtain the target document to which the map is added; obtaining the number of document contents included in the target document, wherein; obtaining the number of pictures included in a preset picture library; calculating the number of the document contents and the number of the pictures by using a preset calculation mode to obtain a first calculation result; and selecting a picture matched with the first calculation result from a preset picture library, and determining the picture as a matching picture of the target document. The application can determine the map matching of the target document according to the number of the document contents included in the target document and the number of the pictures included in the preset picture library, and the map matching of the document is recommended to the user on the premise of not depending on the system attribute of an operating system or an operating platform.
Of course, it is not necessary for any one product or method of practicing the application to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for determining a document map according to an embodiment of the present application;
FIG. 2 is a flowchart of another method for determining a document map according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a document map determining apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
As shown in fig. 1, a method for determining a document map provided by an embodiment of the present application may include:
s100, obtaining a target document to which the matching chart needs to be added.
Among them, the target document may have various document types, such as: novels, motels, comment articles, advertisements, news, reports, etc.
S200, obtaining the number of document contents included in the target document, wherein the number of document contents included in the target document comprises the following steps: at least one of the number of characters included in the target document, the number of paragraphs included in the target document, the number of lines included in the target document, and the number of pictures included in the target document.
Alternatively, the present disclosure may identify and count the number of document content through existing document content statistics techniques. For example: many document editing software have self-contained document content statistical methods which can be called by the application to count the number of document contents.
S300, obtaining the number of pictures included in a preset picture library.
Alternatively, the execution sequence of the step S300 and the steps S100 and S200 may be various, which is not limited in the present application. Step S300 need only be performed before step S400.
Alternatively, the preset picture library may have one or more. In an alternative embodiment, the present application may create a preset picture library for each document type that matches the document type.
The pictures included in the preset picture library can be selected and processed in advance, and after the preset picture library is created, the pictures in the preset picture library can be managed according to actual needs, for example: deleting part of the pictures, adding the pictures into a picture library or modifying the pictures in the picture library, and the like. Of course, the application can also avoid adjusting the pictures in the picture library after presetting the picture library so as to keep the stability of the picture library.
S400, calculating the number of the document contents and the number of the pictures by using a preset calculation mode to obtain a first calculation result.
The above-mentioned preset calculation modes may be various, for example: residual operation, modulo operation, multiplication, exponential operation, etc.
Optionally, step S400 may specifically include:
when the number of the document contents included in the target document comprises at least two numbers, performing integration calculation on the at least two numbers to obtain a first number, wherein the integration calculation is as follows: an average operation or a summation operation;
and performing modular operation on the first quantity and the picture quantity to obtain a first calculation result.
Optionally, performing a modulo operation on the first number and the number of pictures to obtain a first calculation result includes:
by the formula
S mod N=I
And calculating to obtain a first calculation result I, wherein I is the first calculation result, S is the first number, and N is the number of pictures.
Optionally, in other embodiments, step S400 may specifically include:
when the number of the document contents included in the target document includes a number, performing modulo operation on the number of the document contents and the number of the pictures to obtain a first calculation result.
Modulo the number of document contents and the number of pictures may use the formula M mod n=i, where I is the first calculation result, M is the number of document contents, and N is the number of pictures.
S500, selecting a picture matched with the first calculation result from a preset picture library, and determining the picture as a matching picture of the target document.
Alternatively, there may be one or more pictures that match the first calculation result.
In practical application, the picture identifier of the picture matched with the first calculation result may be matched with the first calculation result, or the arrangement sequence number of the picture matched with the first calculation result may be matched with the first calculation result. The meaning of the above-mentioned matching may be: equal to or different from the preset value.
Optionally, step S500 may specifically include:
determining a picture identifier matched with the first calculation result from a preset picture library, and determining a picture with the determined picture identifier as a picture allocation of the target document;
or alternatively, the process may be performed,
and selecting pictures with the same arrangement sequence number as the first calculation result from a preset picture library, and determining the pictures as the configuration picture of the target document, wherein each picture in the preset picture library is provided with the arrangement sequence number set according to the preset arrangement sequence.
The document map determining method provided by the embodiment of the application can obtain the target document to be added with the map; obtaining the number of document contents included in the target document, wherein; obtaining the number of pictures included in a preset picture library; calculating the number of the document contents and the number of the pictures by using a preset calculation mode to obtain a first calculation result; and selecting a picture matched with the first calculation result from a preset picture library, and determining the picture as a matching picture of the target document. The application can determine the map matching of the target document according to the number of the document contents included in the target document and the number of the pictures included in the preset picture library, and the map matching of the document is recommended to the user on the premise of not depending on the system attribute of an operating system or an operating platform.
Meanwhile, the distribution diagram determined by the application is determined by the quantity of the document contents included in the document, and the distribution diagram determined by the application has randomness and is not determined by objective conditions such as time, sequence and the like because the quantity of the document contents included in different documents is different. The map distribution determined by the method has randomness, and one map distribution can be selected as much as possible according to the basically same probability. Meanwhile, the map determined by the method has repeatability, and for a document, the map determined by the method is the same by executing the method twice under the condition that the preset picture library is unchanged. When the preset calculation mode used in the application is modular operation, the algorithm is simple, and the calculated amount is effectively reduced. In addition, the application can also find the abnormal document content from the abnormal distribution diagram to a certain extent, for example, if the content of a plurality of adjacent documents is empty, the number of the obtained document content is 0, the situation that the distribution diagram is the same can occur, and the abnormal document content of the person pouring water or the system loading article can be found in time.
Alternatively, when the number of document contents obtained in step S200 is 0, the present application may directly select a default picture as the map of the target document. When the number of document contents obtained in step S200 is not 0, step S300 and the subsequent steps are performed again.
Optionally, the method shown in fig. 1 may further include:
displaying the determined map of the target document at a first preset position inside the target document;
or displaying the determined map of the target document at a second preset position around the target document.
After the map is displayed, the user can select the map for use.
Optionally, as shown in fig. 2, another method for determining a document map provided in an embodiment of the present application may include:
s100, obtaining a target document to which the matching chart needs to be added.
S110, determining the document type of the target document.
S200, obtaining the number of document contents included in the target document, wherein the number of document contents included in the target document comprises the following steps: at least one of the number of characters included in the target document, the number of paragraphs included in the target document, the number of lines included in the target document, and the number of pictures included in the target document.
S310, obtaining the number of pictures included in a preset picture library matched with the document type.
Step S310 is a specific implementation procedure of step S300 shown in fig. 1.
S400, calculating the number of the document contents and the number of the pictures by using a preset calculation mode to obtain a first calculation result.
S510, selecting a picture matched with the first calculation result from a preset picture library matched with the document type, and determining the picture as a map of the target document.
Step S510 is a specific implementation procedure of step S500 shown in fig. 1.
The embodiment shown in fig. 2 can effectively improve the matching degree of the matching diagram and the document, so that the matching diagram determined by the application is matched with the document type.
The steps S100, S200, S400 are identical to the corresponding steps in fig. 1, and are not repeated.
Corresponding to the embodiment of the method, the application also provides a document map determining device.
As shown in fig. 3, the embodiment of the present application further provides a document map determining apparatus, which may include: a document obtaining unit 100, a content number obtaining unit 200, a picture number obtaining unit 300, a calculating unit 400 and a map making determining unit 500,
a document obtaining unit 100 configured to perform obtaining a target document to which a matching drawing is to be added;
a content number obtaining unit 200 configured to perform obtaining a number of document contents included in a target document, wherein the number of document contents included in the target document includes: at least one of the number of characters included in the target document, the number of paragraphs included in the target document, the number of lines included in the target document, and the number of pictures included in the target document;
a picture number obtaining unit 300 configured to perform obtaining a number of pictures included in a preset picture library;
a calculating unit 400 configured to perform calculation of the number of document contents and the number of pictures using a preset calculation manner, to obtain a first calculation result;
the map determining unit 500 is configured to perform selecting a picture matching the first calculation result from a preset picture library, and determine a map of the target document.
Optionally, the computing unit 400 includes: an integration subunit and a first modulus subunit,
an integration subunit configured to perform an integration calculation on at least two quantities to obtain a first quantity when the quantity of document content included in the target document includes at least two quantities, wherein the integration calculation is: an average operation or a summation operation;
the first module taking unit is configured to perform module taking operation on the first number and the picture number to obtain a first calculation result.
Optionally, the first modulus unit is specifically configured to perform:
by the formula
S mod N=I
And calculating to obtain a first calculation result I, wherein I is the first calculation result, S is the first number, and N is the number of pictures.
Optionally, the computing unit 400 is specifically configured to perform:
when the number of the document contents included in the target document includes a number, performing modulo operation on the number of the document contents and the number of the pictures to obtain a first calculation result.
Optionally, the document map determining apparatus shown in fig. 3 may further include: a first display unit or a second display unit,
a first display unit configured to perform displaying of the determined map of the target document at a first preset position inside the target document;
and a second display unit configured to perform displaying the determined map of the target document at a second preset position around the target document.
Optionally, the map determining unit 500 is configured to perform:
determining a picture identifier matched with the first calculation result from a preset picture library, and determining a picture with the determined picture identifier as a picture allocation of the target document;
or alternatively, the process may be performed,
and selecting pictures with the same arrangement sequence number as the first calculation result from a preset picture library, and determining the pictures as the configuration picture of the target document, wherein each picture in the preset picture library is provided with the arrangement sequence number set according to the preset arrangement sequence.
Optionally, the document map determining apparatus shown in fig. 3 may further include: a type determining unit configured to perform determination of a document type of the target document;
the picture-number obtaining unit 300 is specifically configured to perform: and obtaining the number of pictures included in a preset picture library matched with the document type.
The map determining unit 500 is specifically configured to perform: and selecting a picture matched with the first calculation result from the preset picture library matched with the document type, and determining the picture as the matching picture of the target document.
The document map determining apparatus includes a processor and a memory, the document obtaining unit, the content number obtaining unit, the picture number obtaining unit, the calculating unit, the map determining unit, and the like are stored as program units in the memory, and the processor executes the program units stored in the memory to realize the corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel may be provided with one or more of which the map is determined by adjusting the kernel parameters.
The embodiment of the application provides a storage medium, on which a program is stored, which when executed by a processor, implements the document map determining method.
The embodiment of the application provides a processor which is used for running a program, wherein the method for determining the document map is executed when the program runs.
As shown in fig. 4, an embodiment of the present application provides an electronic device 70, where the electronic device 70 includes at least one processor 701, and at least one memory 702 and a bus 703 connected to the processor 701; wherein, the processor 701 and the memory 702 complete communication with each other through the bus 703; the processor 701 is configured to invoke the program instructions in the memory 702 to perform the document map determining method described above. The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform a program initialized with the steps comprised in the above-mentioned document map determining method when executed on a data processing device.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, the device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (4)

1. A document map making determination method, characterized by comprising:
obtaining a target document to which a matching chart needs to be added;
obtaining the number of document contents included in the target document, wherein the number of document contents included in the target document includes: at least one of the number of characters included in the target document, the number of paragraphs included in the target document, the number of lines included in the target document, and the number of pictures included in the target document;
obtaining the number of pictures included in a preset picture library;
calculating the number of the document contents and the number of the pictures by using a preset calculation mode to obtain a first calculation result;
selecting a picture matched with the first calculation result from the preset picture library, and determining the picture as a matching picture of the target document;
the calculating the number of the document contents and the number of the pictures by using a preset calculating mode to obtain a first calculating result comprises the following steps:
when the number of the document contents included in the target document comprises at least two numbers, performing integration calculation on the at least two numbers to obtain a first number, wherein the integration calculation is as follows: an average operation or a summation operation;
performing modular operation on the first quantity and the picture quantity to obtain a first calculation result;
performing modulo operation on the first number and the number of pictures to obtain a first calculation result, including:
by the formula
S mod N=I
Calculating to obtain a first calculation result I, wherein I is the first calculation result, S is the first number, and N is the number of pictures;
the document map determining method further comprises the following steps:
displaying the determined map of the target document at a first preset position inside the target document;
or displaying the determined map of the target document at a second preset position around the target document;
the document map determining method further comprises the following steps:
determining a document type of the target document;
the obtaining the number of the pictures included in the preset picture library includes:
obtaining the number of pictures included in a preset picture library matched with the document type;
the selecting the picture matched with the first calculation result from the preset picture library, and determining the picture as the matching picture of the target document comprises the following steps:
selecting a picture matched with the first calculation result from the preset picture library matched with the document type, and determining the picture as a matching picture of the target document;
or alternatively, the process may be performed,
determining a picture identifier matched with the first calculation result from the preset picture library, and determining a picture with the determined picture identifier as a matching picture of the target document;
or alternatively, the process may be performed,
and selecting pictures with the arrangement sequence number identical to that of the first calculation result from the preset picture library, and determining the pictures as the configuration picture of the target document, wherein each picture in the preset picture library is provided with the arrangement sequence number set according to the preset arrangement sequence.
2. A document map determining apparatus for implementing the document map determining method of claim 1, the document map determining apparatus comprising: a document obtaining unit, a content number obtaining unit, a picture number obtaining unit, a calculating unit and a map making determining unit,
the document obtaining unit is configured to obtain a target document to which a matching diagram needs to be added;
the content number obtaining unit is configured to perform obtaining a number of document contents included in the target document, wherein the number of document contents included in the target document includes: at least one of the number of characters included in the target document, the number of paragraphs included in the target document, the number of lines included in the target document, and the number of pictures included in the target document;
the picture quantity obtaining unit is configured to obtain the picture quantity included in a preset picture library;
the computing unit is configured to execute computing on the number of the document contents and the number of the pictures by using a preset computing mode to obtain a first computing result;
the map matching determination unit is configured to perform selecting a picture matched with the first calculation result from the preset picture library, and determine a map matching of the target document.
3. A storage medium having stored thereon a program which, when executed by a processor, implements the document map determining method of claim 1.
4. An electronic device comprising at least one processor, and at least one memory, bus coupled to the processor; the processor and the memory complete communication with each other through the bus; the processor is configured to invoke a program in the memory, the program being configured to implement at least the document map determining method of claim 1.
CN202011627547.6A 2020-12-31 2020-12-31 Method and device for determining document map, electronic equipment and storage medium Active CN112651215B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011627547.6A CN112651215B (en) 2020-12-31 2020-12-31 Method and device for determining document map, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011627547.6A CN112651215B (en) 2020-12-31 2020-12-31 Method and device for determining document map, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112651215A CN112651215A (en) 2021-04-13
CN112651215B true CN112651215B (en) 2023-11-03

Family

ID=75366761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011627547.6A Active CN112651215B (en) 2020-12-31 2020-12-31 Method and device for determining document map, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112651215B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11175519A (en) * 1997-12-09 1999-07-02 Fuji Xerox Co Ltd Method for analyzing document and device therefor
CA2528506A1 (en) * 2004-11-30 2006-05-30 Oculus Info Inc. System and method for interactive multi-dimensional visual representation of information content and properties
WO2007023993A1 (en) * 2005-08-23 2007-03-01 Ricoh Company, Ltd. Data organization and access for mixed media document system
CN103186654A (en) * 2011-12-31 2013-07-03 北大方正集团有限公司 Processing method and processing device for images embedded in document
CN109144954A (en) * 2018-09-18 2019-01-04 天津字节跳动科技有限公司 Edit resource recommendation method, device and the electronic equipment of document
WO2020015220A1 (en) * 2018-07-19 2020-01-23 平安科技(深圳)有限公司 Method and apparatus for downloading data based on pdf document, and storage medium and terminal
CN111222303A (en) * 2018-11-23 2020-06-02 珠海金山办公软件有限公司 Method, system, terminal and medium for obtaining size of picture converted from document

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11175519A (en) * 1997-12-09 1999-07-02 Fuji Xerox Co Ltd Method for analyzing document and device therefor
CA2528506A1 (en) * 2004-11-30 2006-05-30 Oculus Info Inc. System and method for interactive multi-dimensional visual representation of information content and properties
WO2007023993A1 (en) * 2005-08-23 2007-03-01 Ricoh Company, Ltd. Data organization and access for mixed media document system
CN103186654A (en) * 2011-12-31 2013-07-03 北大方正集团有限公司 Processing method and processing device for images embedded in document
WO2020015220A1 (en) * 2018-07-19 2020-01-23 平安科技(深圳)有限公司 Method and apparatus for downloading data based on pdf document, and storage medium and terminal
CN109144954A (en) * 2018-09-18 2019-01-04 天津字节跳动科技有限公司 Edit resource recommendation method, device and the electronic equipment of document
CN111222303A (en) * 2018-11-23 2020-06-02 珠海金山办公软件有限公司 Method, system, terminal and medium for obtaining size of picture converted from document

Also Published As

Publication number Publication date
CN112651215A (en) 2021-04-13

Similar Documents

Publication Publication Date Title
CN107038186A (en) Generate title, search result displaying, the method and device of title displaying
CN104182403B (en) A kind of loading method and equipment of pictorial information
KR102632194B1 (en) Resource allocation methods and apparatus, devices, and storage media
CN108184170B (en) Data processing method and device
KR20190094235A (en) Custom digital components
CN104680395A (en) Audience segment estimation
US10917399B2 (en) Method and device for distributing service objects
US20150073932A1 (en) Strength Based Modeling For Recommendation System
CN108600780B (en) Method for pushing information, electronic device and computer readable medium
CN110866040A (en) User portrait generation method, device and system
CN112434015A (en) Data storage method and device, electronic equipment and medium
US9934292B2 (en) Dynamic presentation of a results set by a form-based software application
CN104991935B (en) A kind for the treatment of method and apparatus of website attention rate
CN109426998B (en) Information pushing method and device
CN112651215B (en) Method and device for determining document map, electronic equipment and storage medium
CN111143546A (en) Method and device for obtaining recommendation language and electronic equipment
CN107391533A (en) Generate the method and device of graphic data base Query Result
CN109614548B (en) Information display method and device based on service user number change rate and storage medium
US9230022B1 (en) Customizable result sets for application program interfaces
CN110020129B (en) Click rate correction method, prediction method, device, computing equipment and storage medium
CN111177093A (en) Method, device and medium for sharing scientific and technological resources
CN106294700A (en) The storage of a kind of daily record and read method and device
US10044823B2 (en) Social content aggregation
CN108171559B (en) User level processing and target object pushing method and device
CN110968819A (en) Data processing method, device and machine readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant