Class CETR


  • public class CETR
    extends Object
    The CETR class (Content Extraction with Tag Ratios) enables you to extract the content text from HTML pages. It uses the tag ratios of each line and performs clustering to separate the real text of the page from menus, footers and headers. References: http://www.cs.uiuc.edu/~hanj/pdf/www10_tweninger.pdf http://web.engr.illinois.edu/~weninge1/cetr/
    Author:
    Vasilis Vryniotis
    • Constructor Detail

      • CETR

        public CETR​(com.datumbox.framework.common.Configuration configuration)
        Constructor for the CETR class.
        Parameters:
        configuration -
    • Method Detail

      • extract

        public String extract​(String html,
                              CETR.Parameters parameters)
        Extracts the main content for an HTML page.
        Parameters:
        html -
        parameters -
        Returns: