|
Carrot2 Framework
API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.filter.stc.algorithm.BaseCluster
public final class BaseCluster
A base cluster in the STC algorithm. A base cluster is basically a Node in suffix tree with an associated score and assigned later links to other nodes in base clusters graph.
| Field Summary | |
|---|---|
protected int |
id
id number assigned by the creator of this object |
protected List |
neighbors
Base clusters this object has links to in base clusters graph |
protected Phrase |
phrase
This node's phrase |
protected float |
score
Score of this base cluster (passed to constructor) |
| Constructor Summary | |
|---|---|
BaseCluster(PhraseNode node,
float score)
Public constructor for BaseCluster requires a node and precalculated score |
|
| Method Summary | |
|---|---|
void |
addLink(BaseCluster neighbor)
Adds a link to another BaseCluster (used when constructing base clusters graph |
int |
getId()
getter for id |
List |
getNeighborsList()
Retrieves the list of neighbors of this base cluster |
PhraseNode |
getNode()
Getter for node variable |
Phrase |
getPhrase()
Getter for this base cluster's phrase object |
float |
getScore()
Getter for score variable |
boolean |
isMerged()
|
void |
setId(int id)
Setter for id |
void |
setMerged(boolean merged)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected float score
protected List neighbors
protected int id
protected Phrase phrase
| Constructor Detail |
|---|
public BaseCluster(PhraseNode node,
float score)
| Method Detail |
|---|
public PhraseNode getNode()
public float getScore()
public void setId(int id)
public int getId()
public void addLink(BaseCluster neighbor)
public List getNeighborsList()
public Phrase getPhrase()
public void setMerged(boolean merged)
public boolean isMerged()
|
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 | ||||||||