Summary of the invention
The present invention provides a kind of digital publication guide to visitors catalogue treating method and apparatus, to solve existing digital publishing
The low problem of object guide to visitors catalogue treatment effeciency.
The present invention provides a kind of digital publication guide to visitors catalogue processing method, comprising:
Candidate topics set is determined in word content within the scope of specified page number;
The corresponding theme of weight limit value is determined as by the weight for calculating separately each theme in the candidate topics set
The theme of word content within the scope of the specified page number;
According to the theme of the determination, the weight of each picture within the scope of the specified page number is calculated separately, it will be maximum
The corresponding picture of weighted value is determined as and the matched picture of the theme of the determination;
The theme and corresponding picture of the specified page number range and the determination are generated the digital publication to lead
Look at catalogue.
The present invention provides a kind of digital publication guide to visitors catalogue processing unit, comprising:
First determining module, for determining candidate topics set in the word content within the scope of specified page number;
First computing module, for calculating separately each theme in the candidate topics set that first determining module determines
Weight;
Second determining module, the corresponding theme of weight limit value for calculating first computing module are determined as institute
State the theme of the word content within the scope of specified page number;
Second computing module, the theme for being determined according to second determining module, calculates separately the specified page number
The weight of each picture in range;
Third determining module, the corresponding picture of weight limit value for calculating second computing module be determined as with
The matched picture of the theme of the determination;
Generation module, the theme and third for determining the specified page number range and second determining module are true
The picture that cover half block determines generates the digital publication guide to visitors catalogue.
The present invention is by determining candidate topics set in the word content within the scope of specified page number;Calculate separately the time
The weight for selecting each theme in theme set, the text corresponding theme of weight limit value being determined as within the scope of the specified page number
The theme of word content;According to the theme of the determination, the weight of each picture within the scope of the specified page number is calculated separately, it will
The corresponding picture of weight limit value is determined as and the matched picture of the theme of the determination;By the specified page number range and described
Determining theme and corresponding picture generate the digital publication guide to visitors catalogue.It can be according to the text within the scope of specified page number
Word content automatically generates digital publication guide to visitors catalogue, improves digital publication guide to visitors catalogue treatment effeciency, can solve existing
The low problem of some digital publication guide to visitors catalogue treatment effeciencies.
Specific embodiment
The object of the present invention is to provide a kind of method of intelligent extraction digital publication guide to visitors catalogue, this method passes through automatic
Theme and figure are extracted, the automatic hyperlink relation for safeguarding guide to visitors catalogue and body matter can greatly promote digital publication
The producing efficiency of guide to visitors catalogue reduces manufacture difficulty.
Fig. 1 is the flow chart of digital publication guide to visitors catalogue processing method embodiment of the present invention, as shown in Figure 1, this implementation
Example method may include:
101, candidate topics set is determined in the word content within the scope of specified page number;
It for example, is more than frequency threshold value by frequency of occurrence in the word content within the scope of the specified page number
Text or word or sentence as candidate topics, form candidate topics set, wherein frequency threshold value can be according to different literals
Content is specifically arranged.
102, the weight for calculating separately each theme in the candidate topics set, the corresponding theme of weight limit value is true
It is set to the theme of the word content within the scope of the specified page number;
When specific implementation, the weight of each theme in the candidate topics set is calculated separately, comprising:
According to formula:It calculates separately in the candidate topics set
The weight of each theme, wherein the number of words that N is the theme;Or
According to formula R2=L2, calculate separately the weight of each theme in the candidate topics set, wherein what L was the theme
Font size height;Or
According to formula:It calculates separately in the candidate topics set
The weight of each theme, N be the theme number of words, the font size height that L is the theme.
It should be noted that the number 10 in above-mentioned formula is preferred customized number, it is also possible to other numbers, this
Invention is not construed as limiting this.
It should be noted that after calculating the weight of each theme in the candidate topics set, it can be by each master
Topic is ranked up according to the size of respective weighted value, and the corresponding theme of weight limit value is determined as within the scope of the specified page number
Word content theme.
103, according to the theme of the determination, the weight of each picture within the scope of the specified page number is calculated separately, it will
The corresponding picture of weight limit value is determined as and the matched picture of the theme of the determination;
Optionally, according to the theme of the determination, the weight of each picture within the scope of the specified page number is calculated separately,
Include:
According to formula:Calculate separately each figure within the scope of the specified page number
The weight of piece, wherein H indicates that picture height, W indicate that picture width, S indicate between the boundary of picture and the theme of the determination
Minimum distance, unit is millimeter.
It, can will be each it should be noted that after calculating the weight of each picture within the scope of the specified page number
Picture is ranked up according to the size of respective weighted value, and the corresponding picture of weight limit value is determined as to the master with the determination
Inscribe matched picture.
104, the theme and corresponding picture of the specified page number range and the determination are generated into the digital publishing
Object guide to visitors catalogue.
Wherein, the digital publication guide to visitors catalogue is for example comprising theme, figure, page number range, can also belonging to
Column etc..
For example, the logical format of the digital publication guide to visitors catalogue of the present embodiment for example can be described as: < guide to visitors mesh
Record >
<catalogue column=" news " title=" news 1 " figure=page number=" 10 " " picture 1.jpg ">
<catalogue column=" amusement " title=" film information " figure=page number=" 12 " " picture 2.jpg ">
……
</guide directory >
Optionally, the present embodiment can also show the generation digital publication guide to visitors catalogue, and Fig. 3 is the embodiment of the present invention
Presentation effect picture of the digital publication guide to visitors catalogue on tablet computer, as shown in figure 3, completing number at reader end
The presentation and operation of word publication guide to visitors catalogue.On tablet computer, it may be convenient to the bullet of touch control manner completion guide to visitors catalogue
Out, roll screen, selection, blanking provide the operating experience of hommization for user.
Wherein, the digital publication guide to visitors catalogue of the present embodiment for example can be stored in number according to preset logical construction
In the data packet of publication.When the user clicks after the button in reader upper, tool item, guide to visitors catalogue will be presented.The tool of presentation
Body effect can be determined by reader.The sequence of guide to visitors catalogue is presented generally according to the sequence of column or the page number, works as mesh
When recording excessive catalogue can be moved with rubber sleeve.It generally should include theme, figure, name of tv column in catalogue.When reader clicks
When catalogue, corresponding text page can be jumped to.
It should be noted that can prompt the user whether to open when first time making digital publication guide to visitors catalogue
Dynamic intelligent digital publication guide to visitors catalogue systematic function.Function and a certain range that whole book intelligently generates guide to visitors catalogue should be provided
The page intelligently generate guide to visitors catalogue function.
The collection of candidate topics is had to comprehensively, including the text in title block, first segment text in text block, at
The text in Ziwen block in chunking, the text in table gauge outfit or the first row.Some character blocks are converted for polar plot
Shape or picture should record its original word attribute as its adeditive attribute after conversion.Extract guide to visitors catalogue when
Time can use these adeditive attributes.It, can be by the filename of master map if there is no any text, only picture in a space of a whole page
As theme.
Candidate topics and matched picture (referred to as figure) are ranked up in software for composing.Sequence should be retained
As a result.If user is modified document, after optimal theme and figure are changed or are deleted, it should
Theme and figure are changed, or with the replacement of suboptimum.The hyperlink relation of guide to visitors catalogue and text page should retain,
After user increases, deletes the page, it is able to maintain correct hyperlink relation.
The present embodiment also provides visual operation interface, and the result of intelligent extraction is checked convenient for user.It is also convenient for user
It modifies to the result of intelligent extraction.Visual operation interface should be most with the effect of the guide to visitors catalogue presented on reader
Amount is consistent.Fig. 4 is that digital publication guide to visitors catalogue processing method described in the embodiment of the present invention makes in software for composing
The interfacial effect of column.By intelligent extraction, theme text, figure can be obtained, name of tv column can be specified by user's batch.
Column also includes the corresponding text page number.By the expanded menu on interface, column can be deleted, added, be modified,
Corresponding text page can also be jumped to.After small change occurs for the space of a whole page, the correctness of directory information can be safeguarded automatically, tieed up
Eye protection records the hyperlink relation with text page.
It should be noted that technical solution described in the present embodiment can be led according to the digital publication that needs to design of product
Look at the logical construction of catalogue.The logical construction has versatility, unrelated with the data format of specific software.With specific software phase
In conjunction with can design the data structure of software for composing operation, design the data structure of the digital publication of output, design number goes out
The user interface of version object guide to visitors catalogue.And the method described according to above-described embodiment, intelligent extraction whole document or portion
The guide to visitors catalogue theme of single cent shelves, and be filled into guide to visitors directory data structure.
By user interface, other data are filled in.User interface also provides and is edited, increased to guide to visitors catalogue
The ability add, deleted;When user modifies to the space of a whole page, the correctness of guide to visitors directory information is safeguarded.Including theme
Update, the update of figure, the update of the hyperlink page.When user exports digital publication data packet, number is obtained
Publication guide to visitors catalogue data, according to the call format of data packet, to the digital publication guide to visitors catalogue data in software for composing
Tissue is carried out, the digital publication guide to visitors catalogue data format for meeting specification is formed and is filled into data packet.
Fig. 2 is the flow chart of digital publication guide to visitors catalogue processing device embodiment of the present invention, as shown in Figure 2, comprising:
First determining module 21, for determining candidate topics set in the word content within the scope of specified page number;
First computing module 22, for calculating separately each master in the candidate topics set that first determining module determines
The weight of topic;
Second determining module 23, the corresponding theme of weight limit value for calculating first computing module are determined as
The theme of word content within the scope of the specified page number;
Second computing module 24, the theme for being determined according to second determining module, calculates separately the specific page
The weight of each picture in code range;
Third determining module 25, the corresponding picture of weight limit value for calculating second computing module are determined as
With the matched picture of theme of the determination;
Generation module 26, theme and third for determining the specified page number range and second determining module
The picture that determining module determines generates the digital publication guide to visitors catalogue.
Optionally, first computing module 22 is used for:
According to formula:It calculates separately in the candidate topics set
The weight of each theme, wherein the number of words that N is the theme.
Optionally, first computing module 22, is also used to according to formula R2=L2, calculate separately the candidate topics collection
The weight of each theme in conjunction, wherein the font size height that L is the theme.
Optionally, first computing module 22, is also used to according to formula:
Calculate separately each theme in the candidate topics set
Weight, the number of words that N is the theme, the font size height that L is the theme.
Optionally, second computing module 24, for according to formula:Respectively
Calculate the weight of each picture within the scope of the specified page number, wherein H indicates that picture height, W indicate that picture width, S indicate
Minimum distance between the boundary of picture and the theme of the determination, unit are millimeter.
Optionally, the device further include:
Display module 27, the digital publication guide to visitors catalogue generated for showing the generation module.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 1, realization principle and skill
Art effect is similar, and details are not described herein again.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or
The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.