org.carrot2.filter.facet
Class ByUrlFacetGenerator

java.lang.Object
  extended by 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

Field Summary
static ByUrlFacetGenerator INSTANCE
           
 
Constructor Summary
ByUrlFacetGenerator()
           
 
Method Summary
(package private)  String[][] buildUrlParts(RawDocument[] documents)
           
 List generateFacets(List rawDocuments)
          Returns a list of RawClusters corresponding to the facets discovered in input documents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final ByUrlFacetGenerator INSTANCE
Constructor Detail

ByUrlFacetGenerator

public ByUrlFacetGenerator()
Method Detail

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