Webpage core block determining method based on DOM (Document Object Model) node text density
A determination method and DOM tree technology, applied in the field of webpage core block determination algorithm, can solve problems such as easy loss of density, inability to completely extract the content of core blocks, and inability to completely eliminate the impact, etc., to achieve the effect of good discrimination
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0054] The preferred embodiments of the present invention will be described in detail below with reference to the drawings.
[0055] This embodiment uses an actual page of New York Times as an example. In the page, there are many pictures, text and links. The specific article contained in the page is the core content of the page.
[0056] First parse it into a DOM tree. Select a piece of code as an example, as follows:
[0057]
[0058]
[0059] The ellipsis in the code represents some other node information. For simplicity, it is replaced by an ellipsis. Parse it into a DOM tree such as figure 1 Shown.
[0060] Then calculate the DOM tree of the entire page to get the text density value of each node and the density sum of its child nodes. The results are as follows:
[0061] : Chars=6094, Tags=541, LinkChars=3243, LinkTags=445, Density=4.18771, densitySum=4.18549
[0062] : Chars=6094, Tags=533, LinkChars=3243, LinkTags=444, Density=4.18549, densitySum=4.41271
[0063] : Chars=44, T...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com