org.knowceans.corpus
Interface ILabelCorpus

All Superinterfaces:
ICorpus
All Known Implementing Classes:
LabelNumCorpus

public interface ILabelCorpus
extends ICorpus

ILabelCorpus is a corpus with label information. It can be used to add an additional observed node to a topic model.

Author:
gregor

Field Summary
static int LAUTHORS
           
static int LCATEGORIES
           
static int LDOCS
           
static int LREFERENCES
           
static int LTAGS
           
static int LTERMS
           
static int LVOLS
           
static int LYEARS
           
 
Method Summary
 int[][] getDocLabels(int kind)
          array with label ids for documents
 int getLabelsV(int kind)
          get the number of distinct labels in the label field
 int getLabelsW(int kind)
          get the number of tokens in the label field
 
Methods inherited from interface org.knowceans.corpus.ICorpus
getDocWords, getDocWords, getNumDocs, getNumTerms, getNumWords
 

Field Detail

LDOCS

static final int LDOCS
See Also:
Constant Field Values

LTERMS

static final int LTERMS
See Also:
Constant Field Values

LAUTHORS

static final int LAUTHORS
See Also:
Constant Field Values

LCATEGORIES

static final int LCATEGORIES
See Also:
Constant Field Values

LVOLS

static final int LVOLS
See Also:
Constant Field Values

LREFERENCES

static final int LREFERENCES
See Also:
Constant Field Values

LTAGS

static final int LTAGS
See Also:
Constant Field Values

LYEARS

static final int LYEARS
See Also:
Constant Field Values
Method Detail

getDocLabels

int[][] getDocLabels(int kind)
array with label ids for documents

Parameters:
kind - of labels
Returns:

getLabelsW

int getLabelsW(int kind)
get the number of tokens in the label field

Parameters:
kind -
Returns:

getLabelsV

int getLabelsV(int kind)
get the number of distinct labels in the label field

Parameters:
kind -
Returns: