public class SpotManager extends Object
Constructor and Description |
---|
SpotManager()
Generates a new pipeline
|
SpotManager(Pipe<String> pipe)
Creates a spot manager performing the cleaning
described in the given pipe.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Function<String> fun)
Adds a new function to the pipeline
|
String |
clean(String spot)
Cleans an anchor, i.e., performs over the text only the
cleaners
previously added to the pipe. |
static String |
cleanText(String text)
Uses the standard cleaner to clean a given text
|
Set<String> |
getAllSpots(it.cnr.isti.hpc.wikipedia.article.Article a)
Given a Wikipedia
article returns a set containing all the processed anchors
in the article. |
static SpotManager |
getStandardSpotCleaner()
Returns a StandardSpotCleaner used by Dexter to clean the anchors.
|
static SpotManager |
getStandardSpotManager()
Returns a StandardSpotManager used by Dexter to process the anchors.
|
protected boolean |
isFilter(String s) |
Set<String> |
process(String spot) |
public static String cleanText(String text)
public static SpotManager getStandardSpotManager()
public static SpotManager getStandardSpotCleaner()
public String clean(String spot)
cleaners
previously added to the pipe.protected boolean isFilter(String s)
public Set<String> getAllSpots(it.cnr.isti.hpc.wikipedia.article.Article a)
article
returns a set containing all the processed anchors
in the article.Copyright © 2013. All rights reserved.