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