|
Carrot2 Framework
API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RawCluster
A cluster object holds a list of RawDocumentreferences and possibly
a list of sub-clusters.
Classes marked with this interface form clusers of raw documents.
The raw interfaces should be gradually refactor to use
carrot2-tokenizer component .
A cluster may have additional name-value properties available via getProperty(String) method.
| Field Summary | |
|---|---|
static String |
PROPERTY_JUNK_CLUSTER
Algorithms may set this property to a non- null value for
a cluster to suggest that the cluster contains e.g. |
static String |
PROPERTY_SCORE
Score of this cluster, if available. |
| Method Summary | |
|---|---|
List |
getClusterDescription()
Returns phrases denoting this cluster's description. |
List |
getDocuments()
|
Object |
getProperty(String propertyName)
Returns a named property of this cluster. |
List |
getSubclusters()
|
Object |
setProperty(String propertyName,
Object value)
Sets a value for a named property in this cluster. |
| Field Detail |
|---|
static final String PROPERTY_SCORE
Double.
static final String PROPERTY_JUNK_CLUSTER
null value for
a cluster to suggest that the cluster contains e.g. unrelated or
unassigned documents. Presentation layer can use this information to
suppress displaying such clusters and cluster metrics can exclude them
from assessment.
| Method Detail |
|---|
List getClusterDescription()
String objects representing phrases. The
list can be empty, but is never null.List getSubclusters()
RawCluster.List getDocuments()
RawDocument.Object getProperty(String propertyName)
propertyName - Name of the property to retrieve.
null if this property
is not available for this cluster.
Object setProperty(String propertyName,
Object value)
propertyName - Name of the property to set.value - The new value of the property.
null.
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||