CN103077160B - Electronic document comment method, the method and device of access electronic document comment - Google Patents

Electronic document comment method, the method and device of access electronic document comment Download PDF

Info

Publication number
CN103077160B
CN103077160B CN201210585282.7A CN201210585282A CN103077160B CN 103077160 B CN103077160 B CN 103077160B CN 201210585282 A CN201210585282 A CN 201210585282A CN 103077160 B CN103077160 B CN 103077160B
Authority
CN
China
Prior art keywords
content
annotation
positional information
document
history archive
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
CN201210585282.7A
Other languages
Chinese (zh)
Other versions
CN103077160A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201210585282.7A priority Critical patent/CN103077160B/en
Publication of CN103077160A publication Critical patent/CN103077160A/en
Application granted granted Critical
Publication of CN103077160B publication Critical patent/CN103077160B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a kind of electronic document comment method, the method and device of access electronic document comment, with the problem solving to check annotation content based on documents location in background technology.A kind of electronic document comment method includes: receive the annotation content for selected reading range input;The document position information corresponding with selected reading range is generated according to described selected reading range;By document position information corresponding for same selected reading range and annotation content uploading.The electronic document comment method that the embodiment of the present invention provides, reading range can be selected flexibly, annotate for concrete statement, and can be by annotation content uploading based on document position information, other users can download this annotation content based on documents location.

Description

Electronic document comment method, the method and device of access electronic document comment
Technical field
The present invention relates to electronic document technical field, particularly relate to a kind of electronic document comment method, visit Ask the method and device of electronic document comment.
Background technology
Nowadays e-book is increasingly referred to as an important application of internet, and user is to read electronic documents Time functional requirement more and more higher, it is desirable to electronic document can be carried out while read electronic documents Annotation, more thirsts for learning other users annotation to this electronic document.
The annotation method of electronic document can only annotate for whole electronic document at present, and user cannot pin Concrete paragraph or statement are annotated, also cannot learn other users language concrete to this electronic document The annotation of sentence.
Summary of the invention
The present invention provides a kind of electronic document comment method, accesses the method and device of electronic document comment, With the problem solving to check annotation content based on documents location in background technology.
In order to solve the problems referred to above, the invention discloses a kind of electronic document comment method, including:
Receive the annotation content for selected reading range input;
The documents location letter corresponding with selected reading range is generated according to described selected reading range Breath;
By document position information corresponding for same selected reading range and annotation content uploading.
Alternatively, described document position information includes:
The original position of document and end position.
Alternatively, the original position of described document includes:
Initial section number, initial paragraph and starting content skew number of words in paragraph;Or,
Start page and the starting content skew number of words in described start page;Or,
Starting content overall offset number of words in a document;
The end position of described document includes:
Terminate section number, terminate paragraph and terminate content skew number of words in paragraph;Or,
Sign-off sheet and end content skew number of words in described sign-off sheet;Or,
Terminate content overall offset number of words in a document.
The invention also discloses a kind of method accessing electronic document comment, including:
Send annotation access request;
Receive the history archive positional information and described history archive returned for described annotation access request The annotation content that positional information is corresponding;
Show the annotation content that described history archive positional information is corresponding with described history archive positional information.
Alternatively, the described annotation access request that sends includes:
Selected reading range, generates current document positional information according to described selected reading range;
Send the annotation access request comprising described current document positional information;
Then receive for described annotation access request return relevant to described current document positional information The annotation content that history archive positional information is corresponding with described history archive positional information.
Alternatively, described current document positional information includes:
The original position of current document and end position;
Described history archive positional information includes:
The original position of history archive and end position.
Alternatively, described display described history archive positional information is corresponding with described history archive positional information Annotation content before, also include:
Calculate the degree of correlation of described current document positional information and described history archive positional information;
According to the described degree of correlation, described annotation content is carried out descending sort;
Described step display is the annotation content after showing described descending sort and corresponding history archive position Confidence ceases.
Alternatively, also include:
Receive the degree of feedback returned for described annotation access request and annotation time, the wherein said degree of feedback Including annotation quantity and ack/nack number of times;
The annotation that described display described history archive positional information is corresponding with described history archive positional information Before content, also include:
According to the described degree of feedback and/or annotation time, described annotation content is carried out descending sort.
Alternatively, the phase of described calculating described current document positional information and described history archive positional information Guan Du includes:
Calculate between original position and the end position of the current document in described current document positional information Content-length, be designated as Current Content length;
Calculate the content-length between original position and the end position of described history archive, be designated as in history Hold length;
Calculate the overlay content length of described historical content length and described Current Content length;
The ratio of described overlay content length Yu described Current Content length is designated as the degree of correlation;Or,
Effective word number of described overlay content length is designated as relevant to the ratio of described Current Content length Degree.
Alternatively, described display described history archive positional information is corresponding with described history archive positional information Annotation content include:
Content is being annotated described in described current document position display.
Alternatively, the original position of described document includes:
Initial section number, initial paragraph and starting content skew number of words in paragraph;Or,
Start page and the starting content skew number of words in described start page;Or,
Starting content overall offset number of words in a document;
The end position of described document includes:
Terminate section number, terminate paragraph and terminate content skew number of words in paragraph;Or,
Sign-off sheet and end content skew number of words in described sign-off sheet;Or,
Terminate content overall offset number of words in a document.
The invention discloses a kind of electronic document comment device, including:
Receiver module, for receiving the annotation content for selected reading range input;
Position generation module, for generating and the reading range selected according to described selected reading range Corresponding document position information;
Upper transmission module, for by document position information corresponding for same selected reading range and annotation content Upload.
The invention discloses a kind of device accessing electronic document comment, including:
Access request module, is used for sending annotation access request;
Receiver module, for receive for described annotation access request return history archive positional information and The annotation content that described history archive positional information is corresponding;
Display module, is used for showing described history archive positional information and described history archive positional information pair The annotation content answered.
Alternatively, described access request module includes:
Position generates submodule, is used for selecting reading range, generates according to described selected reading range and works as Front document position information;
Send submodule, for sending the annotation access request comprising described current document positional information;
Then receiver module, for receive for described annotation access request return with described current document position The history archive positional information annotation content corresponding with described history archive positional information that confidence manner of breathing closes.
Alternatively, described current document positional information includes:
The original position of current document and end position;
Described history archive positional information includes:
The original position of history archive and end position.
Alternatively, also include:
Relatedness computation module, is used for calculating described current document positional information and described history archive position The degree of correlation of information;
Relevancy ranking module, for carrying out descending sort according to the described degree of correlation to described annotation content;
Described display module annotation content after showing described descending sort.
Alternatively, described receiver module for receive for described annotation access request return the degree of feedback and The annotation time, the wherein said degree of feedback includes annotating quantity and ack/nack number of times;
Described device also includes:
The degree of feedback/annotation time-sequencing module, for according to the described degree of feedback and/or annotation the time to described Annotation content carries out descending sort.
Compared with background technology, the present invention includes techniques below effect:
The electronic document comment method that the embodiment of the present invention provides, can select reading range flexibly, for Concrete statement annotates, and can be by document position information and annotation content uploading, other users This annotation content based on documents location can be downloaded.
The method of the access electronic document comment that the embodiment of the present invention provides, can download based on document batch Note content, checks solution other users annotation content to same electronic document, and can select concrete Associated annotation content checked in statement, in being not limited to check the annotation of whole electronic document Hold.Contribute to being better understood from electronic document content, meet people in reading process with other users Carry out the demand exchanging, discussing.
Accompanying drawing explanation
Fig. 1 is the flow chart of the embodiment of the present invention a kind of electronic document comment method;
Fig. 2 is the schematic diagram that the embodiment of the present invention selectes reading range;
Fig. 3 is the flow chart of a kind of method accessing electronic document comment of the embodiment of the present invention;
Fig. 4 is the flow chart of a kind of method accessing electronic document comment of another embodiment of the present invention;
Fig. 5 is the flow chart of a kind of method accessing electronic document comment of another embodiment of the present invention;
Fig. 6 is the structured flowchart of the embodiment of the present invention a kind of electronic document comment device;
Fig. 7 is the structured flowchart of a kind of device accessing electronic document comment of the embodiment of the present invention;
Fig. 8 is the structured flowchart of a kind of device accessing electronic document comment of the preferred embodiment of the present invention.
Detailed description of the invention
Understandable, below in conjunction with the accompanying drawings for enabling the above-mentioned purpose of the present invention, feature and advantage to become apparent from The present invention is further detailed explanation with detailed description of the invention.
Embodiment one:
With reference to Fig. 1, it is shown that the flow chart of the present invention a kind of electronic document comment method, the present embodiment has Body may comprise steps of:
Step 100, receives the annotation content for selected reading range input;
In the present embodiment, described selected reading range can be read original position and end position it Between the content of electronic document, can be specifically whole electronic document, it is also possible to be a certain of electronic document Chapters and sections, a certain page, a certain paragraph or a certain statement.That is user can be by whole electronic document Select and annotate, it is also possible to the concrete selected a certain chapters and sections of electronic document, a certain page, a certain paragraph Or a certain statement annotates, it might even be possible to be specific to certain word and certain word annotates, The invention is not limited in this regard.
Annotation content in the present embodiment specifically may include that comment, puts question to, discusses or reply.
I.e. annotation content can be carry out for selected reading range comment, carry for selected reading range The problem that goes out, discuss or for returning that selected reading range is carried out for what selected reading range was carried out Multiple etc., can also be currently other annotations carried out for selected reading range, this is not done by the present embodiment Limit.
As in figure 2 it is shown, the reading range that user selectes is: Sun Microsystems, in the annotation of input Appearance is that " whom the founder of Sun Microsystems is?”.
Step 102, generates the literary composition corresponding with selected reading range according to described selected reading range File location information;
The document position information corresponding with selected reading range that this step generates includes: rising of document Beginning position and end position.
Original position and end position can be represented by various ways, and the form difference of electronic document is also Original position and end position can be represented to use different forms.Specific as follows:
For the electronic document of ePub form, the original position of document includes: initiates section number, initiate Paragraph and the starting content skew number of words in paragraph;The end position of described document includes: terminate chapter Section number, end paragraph and end content skew number of words in paragraph;
For the electronic document of PDF, the original position of document includes: start page and starting content Skew number of words in described start page;The end position of document includes: sign-off sheet and end content are in institute State the skew number of words in sign-off sheet;
For the electronic document of TXT form, the original position of document includes: starting content is in a document Overall offset number of words;The end position of document includes: terminate content overall offset number of words in a document.
Such as, the electronic document shown in Fig. 2 is ePub form, the reading range " sun that Fig. 2 selectes Microsystems " original position be " the 30th the 2nd section of chapter the 42nd word ", wherein " the 30th chapter " is Initial section number, " the 2nd section " is initial paragraph, and " the 42nd word " is that starting content is in paragraph Skew number of words.The end position of the reading range " Sun Microsystems " that Fig. 2 selectes is the " the 30th The 2nd section of the 49th word of chapter ", similarly, " the 30th chapter " is initial section number, and " the 2nd section " is initial Paragraph, " the 40th word " is starting content skew number of words in paragraph.
The document position information that selected reading range " Sun Microsystems " shown in Fig. 2 generates is Interval [the 30th the 2nd section of chapter the 42nd word, the 30th the 2nd section of chapter the 49th word].
Step 104, by document position information corresponding for same selected reading range and annotation content uploading.
In step 100, the annotation content of input is corresponding with selected reading range, raw in step 102 The document position information become also is corresponding with selected reading range, so for same selected reading Scope just has document position information and annotation content to correspond.
By the annotation content in step 100, " whom the founder of Sun Microsystems is?" and step 102 The document position information [the 30th the 2nd section of chapter the 42nd word, the 30th the 2nd section of chapter the 49th word] of middle generation is made Uploading onto the server storage for endorsement information, other users can download this endorsement information and check based on literary composition The annotation content of file location.
It should be noted that step 100 receives annotation content and step 102 only generates document position information Merely to distinguish two different steps, not sequencings, can first hold the when of implementing Row step 102 generates document position information, then performs step 100 reception annotation content;Can also first hold Row step 100 receives annotation content, then performs step 102 and generate document position information;Can also be simultaneously Perform above-mentioned steps 100 and step 102.
The electronic document comment method that the embodiment of the present invention provides, can select reading range flexibly, for Concrete statement annotates, and can be by document position information and annotation content uploading, other users This annotation content based on documents location can be downloaded.
Above-described embodiment is the method for the electronic document comment being described based on annotation side, based on above-mentioned reality Executing the content of example, the present embodiment correspondence provides a kind of access electronic document comment based on the annotation side of checking Method, specific as follows:
With reference to Fig. 3, it is shown that the flow chart of a kind of method accessing electronic document comment of the present invention, this reality Execute example specifically to may comprise steps of:
Step 300, sends annotation access request;
Step 302, receives the history archive positional information and described returned for described annotation access request The annotation content that history archive positional information is corresponding;
The endorsement information returned in the present embodiment can be all endorsement information for annotation access request, It can also be part endorsement information.
Step 304, shows that described history archive positional information is corresponding with described history archive positional information Annotation content.
With sample embodiment can show whole endorsement information, it is also possible to display part divides endorsement information.Aobvious Show that part endorsement information is described in detail in a preferred embodiment.
Content based on above-described embodiment, present invention also offers a kind of preferred embodiment, as shown in Figure 4, Selected reading range, generates current document positional information according to described selected reading range;Transmission comprises The annotation access request of described current document positional information;The endorsement information of the most described return is to work as with described The history archive positional information that front document position information is relevant is corresponding with described history archive positional information Annotation content, this preferred embodiment specifically includes following steps: step 400, transmission comprises current document The annotation access request of positional information is to server;
In the present embodiment, current document positional information includes: the original position of current document and end position.
The original position of current document and end position can be represented by various ways, electronic document Form difference can also use different forms to represent original position and end position.Specific as follows:
For the electronic document of ePub form, the original position of document includes: initiates section number, initiate Paragraph and the starting content skew number of words in paragraph;The end position of described document includes: terminate chapter Section number, end paragraph and end content skew number of words in paragraph;
For the electronic document of PDF, the original position of document includes: start page and starting content Skew number of words in described start page;The end position of document includes: sign-off sheet and end content are in institute State the skew number of words in sign-off sheet;
For the electronic document of TXT form, the original position of document includes: starting content is in a document Overall offset number of words;The end position of document includes: terminate content overall offset number of words in a document.
Such as, the electronic document shown in Fig. 2 is ePub form, selected " Sun Microsystems " The original position of corresponding current document is " the 30th the 2nd section of chapter the 42nd word ", wherein " the 30th chapter " For initial section number, " the 2nd section " is initial paragraph, and " the 42nd word " is that starting content is in paragraph Skew number of words;The end position of corresponding current document is " the 30th the 2nd section of chapter the 49th word ", with Sample ground, " the 30th chapter " is initial section number, and " the 2nd section " is initial paragraph, and " the 40th word " is Starting content skew number of words in paragraph.Comprise the original position of above-mentioned current document and end position Current document positional information is interval [the 30th the 2nd section of chapter the 42nd word, the 30th the 2nd section of chapter the 49th word].
The annotation access request comprising above-mentioned current document positional information is sent to server by this step, Request accesses the annotation relevant to current document positional information.
Step 402, receive server return endorsement information, described endorsement information include with described currently Criticize corresponding with described history archive positional information of history archive positional information that document position information is relevant Note content;
After server receives annotation access request, endorsement information can be returned.The annotation that server returns Information comprise to the relevant history archive positional information of current document positional information sent in step 400 and Corresponding annotation content.
Such as, the current document positional information in the annotation accessing request information sent in step 400 is [the The 2nd section of the 42nd word of 30 chapters, the 30th the 2nd section of chapter the 49th word], associated the going through that server returns History document position information is [the 30th the 2nd section of chapter the 42nd word, the 30th the 2nd section of chapter the 59th word], corresponding Annotation content be " founder of Sun Microsystems is XXX ".
In the present embodiment, historic document information includes original position and the end position of history archive, start bit Put the representation with end position similar to the original position of current document and end position, the present embodiment Do not repeat at this.
Step 404, shows described endorsement information.
The endorsement information received in step 402 is shown by this step, the when of being particularly shown, Can be in endorsement information described in current document position display.
The method of the access electronic document comment that the present embodiment provides, can download endorsement information, check solution Other users annotation content to same electronic document, and concrete statement can be selected and check phase therewith The endorsement information closed, is not limited to check the endorsement information of whole electronic document.Contribute to preferably Understand electronic document content, meet people and carry out with other users exchanging in reading process, discuss Demand.
In a preferred embodiment of the present invention shown in Fig. 5, step 404 shows described endorsement information The most also include calculating the degree of correlation and sequence step, specific as follows:
Step 500, sends and comprises the annotation access request of current document positional information to server;
Step 502, receive server return endorsement information, described endorsement information include with described currently Criticize corresponding with described history archive positional information of history archive positional information that document position information is relevant Note content;
Step 504, calculates described current document positional information and the history archive position in described endorsement information The degree of correlation of confidence breath;
Current document positional information and history archive positional information all comprise original position and end position, this Step calculates current document positional information and the degree of correlation of history archive positional information.
The present embodiment calculates described current document positional information and the history archive in described endorsement information The degree of correlation of positional information includes following sub-step:
Sub-step 1, calculates original position and the end of current document in described current document positional information Content-length between position, is designated as Current Content length;
Such as current document positional information is [the 30th the 2nd section of chapter the 42nd word, the 30th the 2nd section the 49th of chapter Word], the original position of current document is " the 30th the 2nd section of chapter the 42nd word ", the stop bits of current document It is set to " the 30th the 2nd section of chapter the 49th word ", interior between original position and the end position of current document Hold a length of 8.
Sub-step 2, calculates between original position and the end position of the history archive in described endorsement information Content-length, be designated as historical content length;
Such as history archive positional information is [the 30th the 2nd section of chapter the 42nd word, the 30th the 2nd section the 59th of chapter Word], the original position of history archive is " the 30th the 2nd section of chapter the 42nd word ", the stop bits of history archive It is set to " the 30th the 2nd section of chapter the 59th word ", interior between original position and the end position of history archive Hold a length of 18.
Sub-step 3, calculates the overlay content length of described historical content length and described Current Content length;
Overlay content length described in the present embodiment, i.e. historical content length overlap with Current Content length The content-length of part.
The when of calculating overlay content length, if the original position of history archive and current document is initial Position is identical, then by " position that the end position of history archive is forward with the end position of current document " Do difference with " history archive and the identical original position of current document ", result as historical content length with The overlay content length of Current Content length.
The when of calculating overlay content length, if the original position of history archive and current document is initial Position is different, then by " position that the end position of history archive is forward with the end position of current document " Difference, result is done with " rearward position in the original position of history archive and the original position of current document " Overlay content length as historical content length Yu Current Content length.
The most above-mentioned historical content length 18 and the overlay content a length of 8 of Current Content length 8.
Sub-step 4, is designated as the degree of correlation by the ratio of described overlay content length Yu described Current Content length; Or, effective word number of described overlay content length is designated as relevant to the ratio of described Current Content length Degree.
The ratio of described overlay content length with described Current Content length can be designated as by the present embodiment The degree of correlation, it is also possible to by the ratio of effective word number of described overlay content length Yu described Current Content length It is designated as the degree of correlation.
Such as, by the ratio of overlay content length 8 calculated in sub-step 3 with Current Content length 8 Value 1, i.e. 100% is designated as the degree of correlation.
Effective word number in the present embodiment can be the number of notional word, such as overlay content " Sun Microsystems Company " in notional word number be 1, in Current Content " Sun Microsystems ", notional word number is 1, two The ratio 1 of person, i.e. 100% is designated as the degree of correlation.
The present embodiment only lists the method that above two calculates the degree of correlation, currently can also take other The method calculating the degree of correlation, for example, it is possible to by overlay content length and " in Current Content length and history Hold in length less " it to be divided by, business is as the degree of correlation;Can also use history archive original position, End position, the relation of reading range of centre position and current document carry out calculating the degree of correlation, such as, History centre position, then foundation can be calculated according to the original position of history archive and end position It is calculated current intermediate position till the original position of current document and end, then calculates described history The deviation of centre position and current intermediate position is as the degree of correlation.Additive method currently can also be used to calculate The degree of correlation, the method for relatedness computation is not limited by the present embodiment.
Step 506, carries out descending sort according to the described degree of correlation to described endorsement information;
Phase according to current document positional information calculated in step 504 with history archive positional information Endorsement information is ranked up by Guan Du, and the degree of correlation high endorsement information is come the low endorsement information of the degree of correlation Above.
It should be noted that in one preferred embodiment of the invention, it is also possible to step 504 is fallen into a trap The degree of correlation obtained carries out following discrete processes:
By the degree of correlation higher than 80% be designated as 5;
By the degree of correlation be 60%~80% be designated as 4;
By the degree of correlation be 40%~60% be designated as 3;
By the degree of correlation be 20%~40% be designated as 2;
By the degree of correlation be 1%~20% be designated as 1;
Other be designated as 0.
Then descending sort is continued according to the degree of correlation after discrete.
It should be noted that in another preferred embodiment of the invention, endorsement information also includes: anti- Feedback degree and annotation time, wherein the degree of feedback includes annotating quantity and ack/nack number of times.
According to the degree of feedback and/or annotation time, endorsement information can be carried out descending sort.Here and/or The meaning is, only according to the degree of feedback, endorsement information can be carried out descending sort, it is also possible to during only according to annotation Between endorsement information is carried out descending sort, it is also possible to according to the degree of feedback and annotation time, endorsement information is carried out Sequence.
The when of implementing can in conjunction with above-mentioned method endorsement information being ranked up according to the degree of correlation, Using the degree of correlation as main sequence, the degree of feedback or annotation time are carried out descending row as auxiliary ordered pair endorsement information Sequence.Can certainly use other sort methods, this is not restricted by the present embodiment.
Step 508, shows the endorsement information after described descending sort.
Endorsement information after step 506 descending sort is shown, can be in current document position display Endorsement information after described sequence.
The method of the access electronic document comment that the embodiment of the present invention provides, can download based on document batch Note content, checks solution other users annotation content to same electronic document, and can select concrete Associated annotation content checked in statement, in being not limited to check the annotation of whole electronic document Hold.Contribute to being better understood from electronic document content, meet people in reading process with other users Carry out the demand exchanging, discussing.
The description of embodiment based on above-mentioned electronic document comment method, the invention provides corresponding electronics The embodiment of document annotation device, specific as follows:
With reference to Fig. 6, it is shown that the structured flowchart of the present invention a kind of electronic document comment device, the present embodiment Specifically can include receiver module 10, position generation module 12 and upper transmission module 14, wherein:
Receiver module 10, for receiving the annotation content for selected reading range input;
In the present embodiment, the selected reading range received by receiver module 10 can be whole electronics Document is selected to be annotated, it is also possible to be a certain chapters and sections of electronic document, a certain page, a certain paragraph or A certain statement, it might even be possible to specific to certain word and certain word, the invention is not limited in this regard.
Position generation module 12, generates and the reading range pair selected according to described selected reading range The document position information answered;
The document position information that this step location generation module 12 generates according to selected reading range includes: The original position of document and end position.
Original position and end position can be represented by various ways, and the form difference of electronic document is also Original position and end position can be represented to use different forms.Specific as follows:
For the electronic document of ePub form, the original position of document includes: initiates section number, initiate Paragraph and the starting content skew number of words in paragraph;The end position of described document includes: terminate chapter Section number, end paragraph and end content skew number of words in paragraph;
For the electronic document of PDF, the original position of document includes: start page and starting content Skew number of words in described start page;The end position of document includes: sign-off sheet and end content are in institute State the skew number of words in sign-off sheet;
For the electronic document of TXT form, the original position of document includes: starting content is in a document Overall offset number of words;The end position of document includes: terminate content overall offset number of words in a document.
Upper transmission module 14, for by document position information corresponding for same selected reading range and annotation Appearance is uploaded.
Described document position information and described annotation content are uploaded to by upper transmission module 14 as endorsement information Server stores, and other users can download in this endorsement information checks annotation based on documents location Hold.
The electronic document comment device that the present embodiment provides, can select reading range, flexibly for specifically Statement annotate, and can by document position information and annotation content uploading, other users are permissible Download this annotation content based on documents location.
For device embodiment, due to itself and embodiment of the method basic simlarity, so the comparison described Simply, the part of the embodiment of the method that relevant part is shown in Figure 1 illustrates.
The description of embodiment based on above-mentioned access electronic document comment method, the invention provides corresponding Access the device embodiment of electronic document comment, specific as follows:
With reference to Fig. 7, it is shown that the structured flowchart of a kind of device accessing electronic document comment of the present invention, this Embodiment specifically can include access request module 20, receiver module 22 and display module 24, wherein:
Access request module 20, is used for sending annotation access request;
Described access request module specifically can include following submodule:
Position generates submodule, is used for selecting reading range, generates according to described selected reading range and works as Front document position information;
Send submodule, for sending the annotation access request comprising described current document positional information;
In the present embodiment, current document positional information includes: the original position of current document and end position.
The original position of current document and end position can be represented by various ways, electronic document Form difference can also use different forms to represent original position and end position.Specific as follows:
For the electronic document of ePub form, the original position of document includes: initiates section number, initiate Paragraph and the starting content skew number of words in paragraph;The end position of described document includes: terminate chapter Section number, end paragraph and end content skew number of words in paragraph;
For the electronic document of PDF, the original position of document includes: start page and starting content Skew number of words in described start page;The end position of document includes: sign-off sheet and end content are in institute State the skew number of words in sign-off sheet;
For the electronic document of TXT form, the original position of document includes: starting content is in a document Overall offset number of words;The end position of document includes: terminate content overall offset number of words in a document.
Receiver module 22, receiver module, for receiving the history literary composition returned for described annotation access request The annotation content that file location information is corresponding with described history archive positional information;
The annotation comprising described current document positional information can be sent based on above-mentioned access request module 20 Access request, the endorsement information of the most described return of receiver module 22 is and described current document positional information The annotation content that relevant history archive positional information is corresponding with described history archive positional information.
After server receives annotation access request, endorsement information can be returned.The annotation that server returns Information comprises the history archive position relevant to the current document positional information of access request module 20 transmission Information and corresponding annotation content.
In the present embodiment, historic document information includes original position and the end position of history archive, start bit Put the representation with end position similar to the original position of current document and end position, the present embodiment Do not repeat at this.
Display module 24, is used for showing described history archive positional information and described history archive positional information Corresponding annotation content.
In the present embodiment, the endorsement information that receiver module 22 receives is shown by display module 24, tool The when of body display, can be in endorsement information described in current document position display.
The device of the access electronic document comment that the present embodiment provides, can download in annotation based on document Hold, check solution other users annotation content to same electronic document, and concrete statement can be selected Check associated annotation content, be not limited to check the annotation content of whole electronic document.Have Help be better understood from electronic document content, meet people and hand over other users in reading process Stream, the demand discussed.
In a preferred embodiment of the present invention shown in Fig. 8, also include access request module 30, connect Receive module 32, relatedness computation module 34, relevancy ranking module 36 and display module 38, wherein:
Access request module 30, for sending the annotation access request comprising current document positional information to clothes Business device;
Receiver module 32, for receiving the endorsement information that server returns, described endorsement information includes and institute State the relevant history archive positional information of current document positional information and described history archive positional information pair The annotation content answered;
Relatedness computation module 34, is used for calculating in described current document positional information and described endorsement information The degree of correlation of history archive positional information;
Current document positional information and history archive positional information all comprise original position and end position, phase Pass degree computing module 34 calculates the degree of correlation of current document positional information and history archive positional information.
In the present embodiment, relatedness computation module 34 includes following submodule:
Submodule 1, for calculate current document in described current document positional information original position and Content-length between end position, is designated as Current Content length;
Such as current document positional information is [the 30th the 2nd section of chapter the 42nd word, the 30th the 2nd section the 49th of chapter Word], the original position of current document is " the 30th the 2nd section of chapter the 42nd word ", the stop bits of current document It is set to " the 30th the 2nd section of chapter the 49th word ", interior between original position and the end position of current document Hold a length of 8.
Submodule 2, for calculating original position and the end position of the history archive in described endorsement information Between content-length, be designated as historical content length;
Such as history archive positional information is [the 30th the 2nd section of chapter the 42nd word, the 30th the 2nd section the 59th of chapter Word], the original position of history archive is " the 30th the 2nd section of chapter the 42nd word ", the stop bits of history archive It is set to " the 30th the 2nd section of chapter the 59th word ", interior between original position and the end position of history archive Hold a length of 18.
Submodule 3, for calculating the overlay content of described historical content length and described Current Content length Length;
Overlay content length described in the present embodiment, i.e. historical content length overlap with Current Content length The content-length of part.
The when of calculating overlay content length, if the original position of history archive and current document is initial Position is identical, then by " position that the end position of history archive is forward with the end position of current document " Do difference with " history archive and the identical original position of current document ", result as historical content length with The overlay content length of Current Content length.
The when of calculating overlay content length, if the original position of history archive and current document is initial Position is different, then by " position that the end position of history archive is forward with the end position of current document " Difference, result is done with " rearward position in the original position of history archive and the original position of current document " Overlay content length as historical content length Yu Current Content length.
Submodule 4, for being designated as phase by the ratio of described overlay content length with described Current Content length Guan Du;Or, the ratio of effective word number of described overlay content length with described Current Content length is designated as The degree of correlation.
The ratio of described overlay content length with described Current Content length can be designated as by the present embodiment The degree of correlation, it is also possible to by the ratio of effective word number of described overlay content length Yu described Current Content length It is designated as the degree of correlation.
Relevancy ranking module 36, for carrying out descending row according to the described degree of correlation to described endorsement information Sequence;
Relevancy ranking module 36 is according to current document position calculated in relatedness computation module 34 Endorsement information is ranked up by information with the degree of correlation of history archive positional information, by degree of correlation height annotation letter Breath comes before the endorsement information that the degree of correlation is low.
It should be noted that in one preferred embodiment of the invention, it is also possible to by relatedness computation mould In block 34, the calculated degree of correlation carries out following discrete processes:
By the degree of correlation higher than 80% be designated as 5;
By the degree of correlation be 60%~80% be designated as 4;
By the degree of correlation be 40%~60% be designated as 3;
By the degree of correlation be 20%~40% be designated as 2;
By the degree of correlation be 1%~20% be designated as 1;
Other be designated as 0.
Then descending sort is continued according to the degree of correlation after discrete.
It should be noted that in another preferred embodiment of the invention, endorsement information also includes: anti- Feedback degree and annotation time, wherein the degree of feedback includes annotating quantity and ack/nack number of times, described access electronics The device of document annotation also includes:
The degree of feedback/annotation time-sequencing module, for according to the described degree of feedback and/or annotation the time to described Endorsement information carries out descending sort.
Endorsement information can be entered by the degree of feedback/annotation time-sequencing module according to the degree of feedback and/or annotation time Row descending sort.Here and/or the meaning be only according to the degree of feedback, endorsement information can be carried out descending row Sequence, it is also possible to endorsement information is carried out descending sort only according to the annotation time, it is also possible to according to the degree of feedback and Endorsement information is ranked up by the annotation time.
The when of implementing can in conjunction with above-mentioned method endorsement information being ranked up according to the degree of correlation, Using the degree of correlation as main sequence, the degree of feedback or annotation time are carried out descending row as auxiliary ordered pair endorsement information Sequence.Can certainly use other sort methods, this is not restricted by the present embodiment.
Display module 38, the endorsement information after showing described descending sort.
Endorsement information after step relevancy ranking module 36 descending sort is demonstrated by display module 38 Come, can be in the endorsement information after sequence described in current document position display.
The electronic document comment device that this preferred embodiment provides, before reality endorsement information, to annotation The positional information of the history archive comprised in information and the positional information of the current current document read Carry out the calculating of the degree of correlation, and according to the degree of correlation, endorsement information has been carried out descending sort, finally shown In endorsement information out, before what the degree of correlation was high be positioned at, it is possible to use family obtains rapidly highly desirable to be seen Endorsement information.
For device embodiment, due to itself and embodiment of the method basic simlarity, so the comparison described Simply, relevant part sees the part of Fig. 3 embodiment of the method and illustrates.
Each embodiment in this specification all uses the mode gone forward one by one to describe, and each embodiment stresses Be all the difference with other embodiments, between each embodiment, identical similar part sees mutually ?.
Those skilled in the art will be readily apparent: any combination of each embodiment above-mentioned is applied all It is feasible, therefore any combination between each embodiment above-mentioned is all the embodiment of the application, But this specification details the most one by one at this as space is limited,.
Those skilled in the art it should be appreciated that embodiments herein can be provided as method, system or Computer program.Therefore, the application can use complete hardware embodiment, complete software implementation, Or combine the form of embodiment in terms of software and hardware.And, the application can use one or more The computer-usable storage medium wherein including computer usable program code (includes but not limited to disk Memory, CD-ROM, optical memory etc.) form of the upper computer program implemented.
The application is with reference to method, equipment (system) and the computer program according to the embodiment of the present application The flow chart of product and/or block diagram describe.It should be understood that flow process can be realized by computer program instructions Stream in each flow process in figure and/or block diagram and/or square frame and flow chart and/or block diagram Journey and/or the combination of square frame.These computer program instructions can be provided to all-purpose computer, dedicated computing The processor of machine, Embedded Processor or other programmable data processing device, to produce a machine, makes Must be produced for real by the instruction that the processor of computer or other programmable data processing device performs Now one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame are specified The device of function.
These computer program instructions may be alternatively stored in and computer or other programmable datas can be guided to process In the computer-readable memory that equipment works in a specific way so that be stored in the storage of this computer-readable Instruction in device produces the manufacture including command device, and this command device realizes in one flow process of flow chart Or the function specified in multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, Make on computer or other programmable devices, perform sequence of operations step to realize to produce computer Process, thus on computer or other programmable devices perform instruction provide for realize in flow process The function specified in one flow process of figure or multiple flow process and/or one square frame of block diagram or multiple square frame Step.
Although having been described for the preferred embodiment of the application, but those skilled in the art once knowing Basic creative concept, then can make other change and amendment to these embodiments.So, appended power Profit requires to be intended to be construed to include preferred embodiment and fall into all changes and the amendment of the application scope.
Above to a kind of electronic document comment method provided by the present invention, the side of access electronic document comment Method and device, be described in detail, and specific case used herein is to the principle of the present invention and enforcement Mode is set forth, and the explanation of above example is only intended to help to understand method and the core thereof of the present invention Thought is thought;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, concrete real Executing and all will change in mode and range of application, in sum, this specification content should not be construed as Limitation of the present invention.

Claims (10)

1. the method accessing electronic document comment, it is characterised in that including:
Send annotation access request;Described annotation access request comprises current document positional information;
Receive the history archive positional information and described history archive returned for described annotation access request The annotation content that positional information is corresponding;
Show the annotation content that described history archive positional information is corresponding with described history archive positional information;
Wherein, corresponding with described history archive positional information in described display described history archive positional information Annotation content before, also include:
Calculate the degree of correlation of described current document positional information and described history archive positional information;
According to the described degree of correlation, described annotation content is carried out descending sort;
Described step display is the annotation content after showing described descending sort and corresponding history archive position Confidence ceases;
Wherein, described calculating described current document positional information is relevant to described history archive positional information The step of degree includes:
Calculate between original position and the end position of the current document in described current document positional information Content-length, be designated as Current Content length;
Calculate the content-length between original position and the end position of described history archive, be designated as in history Hold length;
Calculate the overlay content length of described historical content length and described Current Content length;
The ratio of described overlay content length Yu described Current Content length is designated as the degree of correlation;Or,
Effective word number of described overlay content length is designated as relevant to the ratio of described Current Content length Degree.
Method the most according to claim 1, it is characterised in that described transmission annotation access request Including:
Selected reading range, generates current document positional information according to described selected reading range;
Send the annotation access request comprising described current document positional information;
Then receive for described annotation access request return relevant to described current document positional information The annotation content that history archive positional information is corresponding with described history archive positional information.
Method the most according to claim 2, it is characterised in that:
Described current document positional information includes:
The original position of current document and end position;
Described history archive positional information includes:
The original position of history archive and end position.
Method the most according to claim 1, it is characterised in that also include:
Receive the degree of feedback returned for described annotation access request and annotation time, the wherein said degree of feedback Including annotation quantity and ack/nack number of times;
The annotation that described display described history archive positional information is corresponding with described history archive positional information Before content, also include:
According to the described degree of feedback and/or annotation time, described annotation content is carried out descending sort.
Method the most according to claim 1, it is characterised in that the described history archive of described display The positional information annotation content corresponding with described history archive positional information includes:
Content is being annotated described in described current document position display.
Method the most according to claim 3, it is characterised in that:
The original position of described document includes:
Initial section number, initial paragraph and starting content skew number of words in paragraph;Or,
Start page and the starting content skew number of words in described start page;Or,
Starting content overall offset number of words in a document;
The end position of described document includes:
Terminate section number, terminate paragraph and terminate content skew number of words in paragraph;Or,
Sign-off sheet and end content skew number of words in described sign-off sheet;Or,
Terminate content overall offset number of words in a document.
7. the device accessing electronic document comment, it is characterised in that including:
Access request module, is used for sending annotation access request;Described annotation access request comprises ought be above File location information;
Receiver module, for receive for described annotation access request return history archive positional information and The annotation content that described history archive positional information is corresponding;
Display module, is used for showing described history archive positional information and described history archive positional information pair The annotation content answered;
Relatedness computation module, is used for calculating described current document positional information and described history archive position The degree of correlation of information;
Relevancy ranking module, for carrying out descending sort according to the described degree of correlation to described annotation content;
Described display module annotation content after showing described descending sort;
Wherein said relatedness computation module farther includes:
Submodule 1, for calculate current document in described current document positional information original position and Content-length between end position, is designated as Current Content length;
Submodule 2, for calculating the content-length between the original position of history archive and end position, It is designated as historical content length;
Submodule 3, for calculating the overlay content of described historical content length and described Current Content length Length;
Submodule 4, for being designated as phase by the ratio of described overlay content length with described Current Content length Guan Du;Or, the ratio of effective word number of described overlay content length with described Current Content length is designated as The degree of correlation.
Device the most according to claim 7, it is characterised in that described access request module includes:
Position generates submodule, is used for selecting reading range, generates according to described selected reading range and works as Front document position information;
Send submodule, for sending the annotation access request comprising described current document positional information;
Then receiver module, for receive for described annotation access request return with described current document position The history archive positional information annotation content corresponding with described history archive positional information that confidence manner of breathing closes.
Device the most according to claim 8, it is characterised in that:
Described current document positional information includes:
The original position of current document and end position;
Described history archive positional information includes:
The original position of history archive and end position.
Device the most according to claim 7, it is characterised in that described receiver module is used for receiving The degree of feedback returned for described annotation access request and annotation time, the wherein said degree of feedback includes annotation Quantity and ack/nack number of times;
Described device also includes:
The degree of feedback/annotation time-sequencing module, for according to the described degree of feedback and/or annotation the time to described Annotation content carries out descending sort.
CN201210585282.7A 2012-12-28 2012-12-28 Electronic document comment method, the method and device of access electronic document comment Active CN103077160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210585282.7A CN103077160B (en) 2012-12-28 2012-12-28 Electronic document comment method, the method and device of access electronic document comment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210585282.7A CN103077160B (en) 2012-12-28 2012-12-28 Electronic document comment method, the method and device of access electronic document comment

Publications (2)

Publication Number Publication Date
CN103077160A CN103077160A (en) 2013-05-01
CN103077160B true CN103077160B (en) 2016-08-17

Family

ID=48153691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210585282.7A Active CN103077160B (en) 2012-12-28 2012-12-28 Electronic document comment method, the method and device of access electronic document comment

Country Status (1)

Country Link
CN (1) CN103077160B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281618B (en) * 2013-07-10 2018-01-02 英业达科技有限公司 The foundation of data and share system and its method in e-file
CN104090969A (en) * 2014-07-17 2014-10-08 可牛网络技术(北京)有限公司 Data processing method and device
CN104933020A (en) * 2015-07-17 2015-09-23 北京奇虎科技有限公司 Method and device for generating target documents based on template
CN106598522A (en) * 2016-12-16 2017-04-26 广州市勤思网络科技有限公司 Mobile pen online marking-based real-time decision making method
CN110956023B (en) * 2018-09-25 2024-06-18 珠海金山办公软件有限公司 Annotation display method and device
CN111832265A (en) * 2019-04-22 2020-10-27 珠海金山办公软件有限公司 Method and device for rapidly exporting annotations in document, electronic equipment and storage medium
CN113885763A (en) * 2021-09-30 2022-01-04 掌阅科技股份有限公司 Electronic book page display method, electronic equipment and computer storage medium
CN116402026B (en) * 2023-04-13 2023-12-19 广州文石信息科技有限公司 Application content annotating method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858786A (en) * 2006-06-09 2006-11-08 宋丽娟 Electronic file formatting annotate and comment system and method
CN101206640A (en) * 2006-12-22 2008-06-25 深圳市学之友教学仪器有限公司 Method and system for annotations and commentaries of electric data in portable electronic equipment
CN101916245A (en) * 2010-08-30 2010-12-15 中国电信股份有限公司 Method and device for realizing e-book annotation on electronic reader
CN102541832A (en) * 2011-12-19 2012-07-04 无敌科技(西安)有限公司 Real-time mark and annotation system and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9275052B2 (en) * 2005-01-19 2016-03-01 Amazon Technologies, Inc. Providing annotations of a digital work
CN102819531B (en) * 2011-06-10 2016-03-09 北大方正集团有限公司 A kind of cloud reading service system, cloud reading service method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858786A (en) * 2006-06-09 2006-11-08 宋丽娟 Electronic file formatting annotate and comment system and method
CN101206640A (en) * 2006-12-22 2008-06-25 深圳市学之友教学仪器有限公司 Method and system for annotations and commentaries of electric data in portable electronic equipment
CN101916245A (en) * 2010-08-30 2010-12-15 中国电信股份有限公司 Method and device for realizing e-book annotation on electronic reader
CN102541832A (en) * 2011-12-19 2012-07-04 无敌科技(西安)有限公司 Real-time mark and annotation system and method

Also Published As

Publication number Publication date
CN103077160A (en) 2013-05-01

Similar Documents

Publication Publication Date Title
CN103077160B (en) Electronic document comment method, the method and device of access electronic document comment
KR102448389B1 (en) Attention-based sequence transduction neural networks
EP3089159B1 (en) Correcting voice recognition using selective re-speak
US8209271B1 (en) Predictive model training on large datasets
EP3422216A1 (en) Interleaving search results
TW201835818A (en) Implementing neural networks in fixed point arithmetic computing systems
US20120290509A1 (en) Training Statistical Dialog Managers in Spoken Dialog Systems With Web Data
US10324993B2 (en) Predicting a search engine ranking signal value
US11487757B2 (en) Assistive browsing using context
WO2013062622A2 (en) Methods and apparatus for constructing and analyzing component-based models of engineering systems
WO2012158571A2 (en) Training statistical dialog managers in spoken dialog systems with web data
US20120331038A1 (en) Systems and methods for processing web service piped network requests
US9720914B2 (en) Navigational aid for electronic books and documents
EP3079083A1 (en) Providing app store search results
CN108228557B (en) Sequence labeling method and device
US20150089667A1 (en) Dynamic network construction
JP7029204B1 (en) Technical survey support equipment, technical survey support methods, and technical survey support programs
US9767157B2 (en) Predicting site quality
CN111368050A (en) Document page pushing method and device
JP6868062B2 (en) Methods and devices for updating information
US10528564B2 (en) Identifying teachable moments for contextual search
Liu et al. Multiple sequence alignment based on deep reinforcement learning with self-attention and positional encoding
CN111597311B (en) Method and device for outputting information
US20220374683A1 (en) Selecting points in continuous spaces using neural networks
Kader Bug/Issue Tracker

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Beijing Xiaomi Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant