Class CETR
- java.lang.Object
-
- com.datumbox.framework.applications.nlp.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCETR.ParametersThe object with the Parameters of the Algorithm.
-
Constructor Summary
Constructors Constructor Description CETR(com.datumbox.framework.common.Configuration configuration)Constructor for the CETR class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringextract(String html, CETR.Parameters parameters)Extracts the main content for an HTML page.
-
-
-
Method Detail
-
extract
public String extract(String html, CETR.Parameters parameters)
Extracts the main content for an HTML page.- Parameters:
html-parameters-- Returns:
-
-