Class DocumentTitleMatchClassifier
- java.lang.Object
-
- de.l3s.boilerpipe.filters.heuristics.DocumentTitleMatchClassifier
-
- All Implemented Interfaces:
BoilerpipeFilter
public final class DocumentTitleMatchClassifier extends java.lang.Object implements BoilerpipeFilter
MarksTextBlocks which contain parts of the HTML<TITLE>tag, using some heuristics which are quite specific to the news domain.
-
-
Constructor Summary
Constructors Constructor Description DocumentTitleMatchClassifier(java.lang.String title)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>getPotentialTitles()booleanprocess(TextDocument doc)Processes the given documentdoc.
-
-
-
Method Detail
-
getPotentialTitles
public java.util.Set<java.lang.String> getPotentialTitles()
-
process
public boolean process(TextDocument doc) throws BoilerpipeProcessingException
Description copied from interface:BoilerpipeFilterProcesses the given documentdoc.- Specified by:
processin interfaceBoilerpipeFilter- Parameters:
doc- TheTextDocumentthat is to be processed.- Returns:
trueif changes have been made to theTextDocument.- Throws:
BoilerpipeProcessingException
-
-