A computer-implemented method and apparatus for optimizing markup language text

A markup language and computer technology, applied in computing, special data processing applications, instruments, etc., can solve the problems of HTML content destruction, HTML tag content optimization, etc., to improve the accuracy of optimization, improve accessibility and maintainability Effect

Active Publication Date: 2017-03-15
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The existing technology mainly utilizes the method of regular expression matching to optimize processing such as HTML text to reduce its text size, but this method can only remove limited redundant content in HTML text, such as newlines, comments, etc., and cannot modify HTML tags. The content in is optimized, and the optimization using regular expression matching may lead to damage to the HTML content

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A computer-implemented method and apparatus for optimizing markup language text
  • A computer-implemented method and apparatus for optimizing markup language text

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The present invention will be described in further detail below in conjunction with the accompanying drawings.

[0021] figure 1 A schematic diagram of an apparatus for optimizing markup language text according to one aspect of the present invention is shown. The optimization device 1 includes a text acquisition unit 11 , a lexical analysis unit 12 , an optimization unit 13 and an optimized text acquisition unit 14 . Here, the optimization device 1 includes, but is not limited to, a computer, a network host, a single network server, a set of multiple network servers, or a cloud formed by multiple servers. Here, the cloud is composed of a large number of computers or network servers based on cloud computing (Cloud Computing), wherein cloud computing is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computer sets.

[0022] Specifically, the text obtaining means 11 obtains the markup language text to be processed. More s...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention aims at providing a computer-realized method and equipment for optimizing markup language texts. The method comprises the following steps of: acquiring a markup language text to be processed through optimization equipment; carrying out participle processing on the markup language text based on lexical analysis of the markup language text so as to obtain one or more single word sequences corresponding to the markup language text; carrying out optimization processing on the single word sequences so as to obtain optimized single word sequences corresponding to the single word sequences; and combining the optimized single word sequences so as to obtain a markup language optimization text corresponding to the markup language text. Compared with the prior art, under the condition of ensuring that the content logic of the markup language text is correct, more contents are optimized, the high-speed loading of pages is realized on the basis of improving the optimization accuracy, and furthermore the accessibility and maintainability of the pages are improved.

Description

technical field [0001] The invention relates to the field of network optimization calculation, in particular to a technology for optimizing markup language text. Background technique [0002] With the development and application of Internet technology, people have higher requirements for the download speed of web pages, so the optimization technology of markup language text, such as HTML, has received more and more attention and has been developed to a certain extent. Because many markup language texts contain a lot of redundant information, these redundant information add unnecessary burden to the page that should be kept as lightweight as possible and occupy a large amount of storage space, slow down the page loading speed, and then reduce the page load. Accessibility and ease of maintenance. The existing technology mainly utilizes the method of regular expression matching to optimize processing such as HTML text to reduce its text size, but this method can only remove li...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
Inventor 李成银
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products