Detailed Description
Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and intended to be illustrative of the present disclosure, and should not be construed as limiting the present disclosure.
A method, an apparatus, an electronic device, and a computer-readable storage medium for processing a multi-person collaborative document according to an embodiment of the present disclosure are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method of processing a multi-person collaborative document according to one embodiment of the present disclosure. It should be noted that the method for processing a multi-person collaborative document according to the embodiment of the present disclosure may be applied to a processing apparatus for a multi-person collaborative document according to the embodiment of the present disclosure, and the processing apparatus may be configured on an electronic device.
As shown in fig. 1, the method for processing a multi-person collaborative document may include the steps of:
step 101, acquiring the editing contents of a plurality of users aiming at a target document.
It can be understood that the target document is a document work edited by multiple persons in a collaborative manner. For example, a plurality of users may describe a certain business function through a document system supporting multi-user system editing, and the document system may collect descriptions of the business function by the plurality of users and collect the descriptions of the plurality of users into one document to obtain a multi-user collaborative document.
In the embodiment of the disclosure, when a multi-person collaborative document (the target document) is processed, it may be first obtained how many users are determined to participate in a document editing operation from the target document, and edited contents edited by the users may be obtained from the target document.
And step 102, determining role weight information of a plurality of users in editing the target document according to the editing contents of the plurality of users.
Optionally, after obtaining the editing contents of the multiple users for the target document, the role weight information of each user in the target document editing may be determined according to the editing contents of the multiple users, for example, information such as the contribution degree of each user to the target document, the amount of gold content, and the like.
And step 103, displaying the role weight information of a plurality of users in a content display page of the target document.
Optionally, after determining the role weight information of the users in editing the target document, the role weight information of the users may be displayed on a content display page of the target document according to a certain expression form, for example, the role weight information of the users may be displayed in a non-editing area of the target document according to a form of image-text expression.
According to the processing method of the multi-user collaborative document, the edited content of a plurality of users for the target document can be obtained, the role weight information of the plurality of users in the process of editing the target document is determined according to the edited content of the plurality of users, the role weight information of the plurality of users is displayed in the content display page of the target document, the weight of an editor in the process of editing the document can be visually embodied, certain visual reference significance is provided for multi-user editing with selecting or checking properties, and the use experience of the users is improved.
Fig. 2 is a flowchart of a method of processing a multi-person collaborative document according to another embodiment of the present disclosure.
In order to further improve the use experience of users and enrich the expression forms of multi-user collaborative documents, in the embodiment of the disclosure, the recognition degrees of readers for the edited contents of a plurality of users can be obtained, the role weight information of the users in editing the target document is determined according to the edited content weight values and the recognition degree information of the users, and the role weight information and the recognition degrees are both displayed in the content display page of the target document, so that more reference factors can be provided for the selection or the assessment function. Specifically, as shown in fig. 2, the method for processing a multi-person collaborative document may include the steps of:
in step 201, editing contents of a plurality of users for a target document are acquired.
Step 202, according to the editing contents of the multiple users, calculating the editing content weight values of the multiple users for the target document.
Optionally, according to the total word number of the content of the target document and the editing contents of the plurality of users, the editing content weight values of the plurality of users for the target document are calculated. For example, assuming that the total word count of the content of the target document is 100 words, and each word accounts for 100%/100 ═ 1%, the corresponding percentage is calculated according to the number of words edited by each user, for example, there are users A, B and C, and the number of words edited by each user is 50, 30 and 20, the weight values of the edited content of users A, B and C can be calculated as: 50%, 30% and 20%.
Step 203, obtaining the acceptance information of the reader for the edited contents of a plurality of users.
Optionally, the target document can be provided for multiple readers to browse and read, and the browsing and reading interface is provided with a rating selection control, and the rating selection control can comprise a "like" control and a "press and click" control, wherein the "like" represents like, and the "press and click" represents dislike. The reader can evaluate the target document through the evaluation selection control to express whether the reader likes the document.
In the embodiment of the disclosure, the acceptance information of the reader for the edited contents of a plurality of users can be obtained by counting the selection triggering condition of the reader for the evaluation selection control. As an example, the praise number of the edited content of the reader for each user may be obtained, the click number of the edited content of the reader for each user may be obtained, and the approval information of the edited content of the reader for each user may be obtained according to the praise number and click number of the edited content of the reader for each user.
For example, assume that the users of the target document have users A, B and C, respectively. When a reader browses and reads the multi-person collaborative document, when a mouse stays on a certain paragraph, a praise and click icon appears, and clicking can give praise +1 or step +1 to a current editor (wherein each reader can give praise only to one paragraph once). If, finally, users A, B and C get 20, 10 and 5 praise, respectively, and get 5, 0 and 10 steps, respectively, the recognition degrees of users A, B and C are finally found to be:
user a-20-5-15;
user B-10-0-10;
the user C is 5-10-5.
And step 204, determining role weight information of the multiple users in editing the target document according to the weight values of the edited contents of the multiple users and the recognition degree information of the multiple users.
Optionally, the corresponding score values are calculated according to the weight values of the edited contents of the plurality of users, the corresponding acceptance score values are determined according to the acceptance information of the plurality of users, and then the weight values of the roles of the plurality of users in editing the target document are calculated according to the score values and the acceptance score values corresponding to the weight values of the edited contents.
As an exemplary implementation manner, the basic scores of the users may be determined according to the edited content weight values of the users, the recognition percentages of the users may be respectively calculated according to the recognition information of the users, the recognition scores of the users may be determined according to the recognition percentages of the users, and the role weight information of the users in editing the target document may be calculated according to the basic scores of the users and the recognition scores of the users. For example, for each user, a sum between the base score and the recognition score of the user may be calculated and used as role weight information for the user in editing the target document.
For example, taking users of the target document as users A, B and C as examples, users A, B and C may be given a base score as a percentage of the edited content weight value, e.g., assuming that users A, B and C have edited content weight values of: 50%, 30%, and 20%, then the base scores for users A, B and C may be 50, 30, and 20, respectively. The recognition scores of user A, B and C are calculated according to the recognition information of user A, B and C. Assume that the recognition of users A, B and C are: 15. 10 and-5, where user C is calculable as 0, the percent endorsements by users A, B and C, respectively, are: user a is 15/(15+10) is 60%; user B is 10/(15+10) 40%; user C is 0, then the recognition scores for users A, B and C are: 60. 40 and 0. Then, according to the base score and the recognition score of each user, role weight information of each user in editing the target document can be calculated, for example, user a is 50+60 is 110; user B30 +40 70; the user C is 20+0 is 20.
Step 205, displaying the role weight information of a plurality of users and the recognition degree information of the plurality of users in the content display page of the target document.
Optionally, the role weight information and the recognition degree information of the plurality of users are displayed on the content display page of the target document according to a graphic expression form. For example, the distribution of the recognition degrees of each user may be represented by a histogram, or the weight value of the role of each user may be represented by a histogram.
According to the processing method of the multi-user collaborative document, the acceptance of the reader for the edited contents of the multiple users can be obtained, the role weight information of the multiple users in the target document editing process is determined according to the edited content weight values and the acceptance information of the multiple users, more reference factors can be provided for the selecting or checking function, the role weight information and the acceptance are displayed in the content display page of the target document, the expression form of the multi-user collaborative document can be enriched, and the use experience of the users is further improved.
Fig. 3 is a flowchart of a method of processing a multi-person collaborative document according to yet another embodiment of the present disclosure.
In order to further improve the use experience of users and provide more reference factors for the selection or assessment function, in the embodiment of the disclosure, the most popular paragraphs and user factors can be considered when determining the role weight information of a plurality of users in editing the target document. Specifically, as shown in fig. 3, the method for processing a multi-person collaborative document may include:
step 301, acquiring the editing contents of a plurality of users for a target document.
Step 302, according to the editing contents of a plurality of users, calculating the editing content weight values of the plurality of users for the target document.
Step 303, obtaining the praise number of the reader for the edited content of each user.
And step 304, acquiring the number of point steps of the contents edited by the reader for each user.
And 305, acquiring the acceptance information of the edited content of each user of the reader according to the praise number and the trample number of the edited content of each user of the reader.
Alternatively, the difference between the praise number and the tap number of the edited contents of the reader for each user is calculated and taken as the recognition information of the edited contents of the reader for each user.
And step 306, determining the most popular paragraphs of the readers from the target document according to the praise number of the readers aiming at the edited contents of each user.
For example, assuming that the target document is divided into several paragraphs, which paragraph corresponds to the largest number of praise, and the paragraph with the largest number of praise is the most popular paragraph for the reader.
And 307, determining the editing user most popular to the paragraph by the reader from the plurality of users according to the praise number of the reader for the editing content of each user.
Optionally, after determining the most popular with the reader, the editing user corresponding to the most popular with the reader can be determined.
Step 308, determining the additional weight value corresponding to the editing user of the most popular paragraph of the reader.
For example, after the editing user of the most popular paragraph is determined, an additional weight value, such as 20 points, may be assigned to the editing user of the most popular paragraph.
Step 309, determining role weight information of the multiple users in editing the target document according to the weight values of the edited content of the multiple users, the recognition information of the multiple users and the additional weight values corresponding to the edited users.
As an exemplary embodiment, the basic scores of the users may be determined according to the edited content weight values of the users, the recognition percentages of the users may be respectively calculated according to the recognition information of the users, the recognition scores of the users may be determined according to the recognition percentages of the users, and the role weight information of the users in editing the target document may be calculated according to the basic scores of the users, the recognition scores of the users, and the additional weight values of the editing users who are most popular to readers.
For example, taking users of the target document as users A, B and C as examples, users A, B and C may be given a base score as a percentage of the edited content weight value, e.g., assuming that users A, B and C have edited content weight values of: 50%, 30%, and 20%, then the base scores for users A, B and C may be 50, 30, and 20, respectively. The recognition scores of user A, B and C are calculated according to the recognition information of user A, B and C. Assume that the recognition of users A, B and C are: 15. 10 and-5, where user C is calculable as 0, the percent endorsements by users A, B and C, respectively, are: user a is 15/(15+10) is 60%; user B is 10/(15+10) 40%; user C is 0, then the recognition scores for users A, B and C are: 60. 40 and 0. Assuming that the user who obtains the "most popular with the reader paragraph" is user B, then an additional 20 points may be added for user B. Then, according to the base score, the recognition score and the additional weight value of each user, role weight information of each user in editing the target document can be calculated, for example, user a is 50+60 is 110; user B-30 +40+ 20-90; the user C is 20+0 is 20.
It should be noted that, in the embodiment of the present disclosure, an optimal user may be determined from a plurality of users according to role weight information of the plurality of users in editing a target document. For example, the role weight information of users A, B and C are 110, 90, and 20, respectively, it may be determined that the best user is user A, and the information of the best user may be embodied in the content presentation page of the target document.
Step 310, displaying the role weight information of a plurality of users and the recognition degree information of the plurality of users in a content display page of the target document.
Optionally, in one embodiment of the present disclosure, the most popular with readers paragraph may be displayed in the content presentation page of the target document. For example, after the most popular with the reader is determined from the target document, when the content of the target document is presented, a distinct background color may be added to the paragraph, and when the mouse is hovered over the paragraph, a prompt box "most popular with the reader" may pop up.
According to the processing method of the multi-user collaborative document, when the role weight information of a plurality of users in the target document editing process is determined, the most popular paragraphs and user factors can be considered, the calculated role weight of the editor has better explanatory power, more reference factors can be provided for the selection or assessment function, the optimal users, the most popular paragraphs and the role weight information are embodied in the content display page of the target document, so that corresponding information can be conveniently and quickly obtained when the user reads the content display page, and the use experience of the user is further improved.
Corresponding to the methods for processing a multi-person collaborative document provided in the foregoing embodiments, an embodiment of the present disclosure further provides a device for processing a multi-person collaborative document, and since the device for processing a multi-person collaborative document provided in the embodiment of the present disclosure corresponds to the methods for processing a multi-person collaborative document provided in the foregoing embodiments, the embodiments of the method for processing a multi-person collaborative document described above are also applicable to the device for processing a multi-person collaborative document provided in the embodiment, and will not be described in detail in the embodiment. Fig. 4 is a schematic structural diagram of a processing apparatus of a multi-person collaborative document according to an embodiment of the present disclosure. As shown in fig. 4, the processing apparatus 400 of the multi-person collaborative document may include: an editing content acquisition module 410, a character weight information determination module 420, and a display module 430.
Specifically, the editing content acquiring module 410 is configured to acquire editing contents of a target document by a plurality of users.
The role weight information determining module 420 is configured to determine role weight information of a plurality of users in editing a target document according to editing contents of the plurality of users. As an example, as shown in fig. 5, the role weight information determination module 420 may include: an editing content weight calculation unit 421, an acceptance acquisition unit 422, and a character weight information determination unit 423. The editing content weight calculation unit 421 is configured to calculate, according to the editing contents of multiple users, editing content weight values of the multiple users for the target document; the recognition degree obtaining unit 422 is configured to obtain recognition degree information of the edited content of the reader for a plurality of users; the role weight information determination unit 423 is used for determining role weight information of the plurality of users in editing the target document according to the editing content weight values of the plurality of users and the recognition degree information of the plurality of users.
As an example, the role weight information determination unit 423 may determine the basic scores of the users according to the edited content weight values of the users, calculate the recognition percentages of the users according to the recognition information of the users, determine the recognition scores of the users according to the recognition percentages of the users, and calculate the role weight information of the users in editing the target document according to the basic scores of the users and the recognition scores of the users.
In an embodiment of the present disclosure, the approval degree obtaining unit 422 may obtain the number of likes of the edited content of the reader for each user, obtain the number of clicks of the edited content of the reader for each user, and obtain the approval degree information of the edited content of the reader for each user according to the number of likes and the number of clicks of the edited content of the reader for each user.
In an embodiment of the disclosure, the role weight information determining unit 423 may determine, according to the number of praise of the content edited by the reader for each user, a paragraph most popular with the reader from the target document, and according to the number of praise of the content edited by the reader for each user, determine, from the plurality of users, an editing user of the paragraph most popular with the reader, and then determine an additional weight value corresponding to the editing user of the paragraph most popular with the reader, and determine, according to the weight values of the content edited by the plurality of users, the recognition information of the plurality of users, and the additional weight value corresponding to the editing user, the role weight information of the plurality of users in editing the target document.
The display module 430 is configured to display the role weight information of the plurality of users in a content presentation page of the target document.
In order to enrich the representation form of the multi-person collaborative document, optionally, in an embodiment of the present disclosure, the display module 430 may display the role weight information and the recognition degree information of the plurality of users in a content presentation page of the target document.
According to the processing device of the multi-user collaborative document, the editing content of a plurality of users for the target document can be obtained through the editing content obtaining module, the role weight information determining module determines the role weight information of the users in editing the target document according to the editing content of the users, the display module displays the role weight information of the users in the content display page of the target document, the weight of an editor in editing the document can be visually represented, certain visual reference significance is provided for multi-user editing with selecting or checking properties, and the use experience of the users is improved.
In order to implement the foregoing embodiments, an embodiment of the present disclosure further provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, when executing the computer program, for:
acquiring the editing contents of a plurality of users aiming at a target document; determining role weight information of the users in editing the target document according to the editing contents of the users; and displaying the role weight information of the plurality of users in a content display page of the target document.
To achieve the above embodiments, the present disclosure also proposes a non-transitory computer-readable storage medium having stored thereon a computer program, which is executed by a processor to:
acquiring the editing contents of a plurality of users aiming at a target document; determining role weight information of the users in editing the target document according to the editing contents of the users; and displaying the role weight information of the plurality of users in a content display page of the target document.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device of a method for processing a multi-person collaborative document according to an embodiment of the present disclosure. Referring now to fig. 6, a schematic diagram of an electronic device (e.g., a terminal device or a server) 600 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".