org.carrot2.filter.facet
Class ByUrlFacetGenerator
java.lang.Object
org.carrot2.filter.facet.ByUrlFacetGenerator
- All Implemented Interfaces:
- FacetGenerator
public class ByUrlFacetGenerator
- extends Object
- implements FacetGenerator
Divides input documents accodrding to the different domains and part of URL that point
to them. This class is thread-safe.
- Author:
- Stanislaw Osinski
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final ByUrlFacetGenerator INSTANCE
ByUrlFacetGenerator
public ByUrlFacetGenerator()
generateFacets
public List generateFacets(List rawDocuments)
- Description copied from interface:
FacetGenerator
- Returns a list of
RawClusters corresponding to the facets
discovered in input documents.
- Specified by:
generateFacets in interface FacetGenerator
- Returns:
- the list of facets discovered in the input documents
buildUrlParts
String[][] buildUrlParts(RawDocument[] documents)
Copyright (c) Dawid Weiss, Stanislaw Osinski