org.knowceans.corpus
Class CorpusResolver

java.lang.Object
  extended by org.knowceans.corpus.CorpusResolver

public class CorpusResolver
extends java.lang.Object

CorpusResolver resolves indices into names.

Author:
gregor

Field Summary
 java.lang.String[] EXTENSIONS
           
 
Constructor Summary
CorpusResolver(java.lang.String filebase)
           
CorpusResolver(java.lang.String filebase, boolean parmode)
          control paragraph mode (possibly different vocabulary)
 
Method Summary
 java.lang.String getAuthor(int i)
          resolve the numeric author id
 java.lang.String getDoc(int i)
          resolve the numeric term id
 int getId(int type, java.lang.String label)
           
 java.lang.String getLabel(int i)
          resolve the numeric label id
 java.lang.String getLabel(int type, int id)
           
 java.lang.String getTerm(int t)
          resolve the numeric term id
 int getTermId(java.lang.String term)
          find id for string term
 java.lang.String getVol(int i)
          resolve the numeric volume id
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXTENSIONS

public final java.lang.String[] EXTENSIONS
Constructor Detail

CorpusResolver

public CorpusResolver(java.lang.String filebase)

CorpusResolver

public CorpusResolver(java.lang.String filebase,
                      boolean parmode)
control paragraph mode (possibly different vocabulary)

Parameters:
filebase -
parmode -
Method Detail

main

public static void main(java.lang.String[] args)

getTerm

public java.lang.String getTerm(int t)
resolve the numeric term id

Parameters:
t -
Returns:

getTermId

public int getTermId(java.lang.String term)
find id for string term

Parameters:
term -
Returns:

getLabel

public java.lang.String getLabel(int i)
resolve the numeric label id

Parameters:
i -
Returns:

getAuthor

public java.lang.String getAuthor(int i)
resolve the numeric author id

Parameters:
i -
Returns:

getDoc

public java.lang.String getDoc(int i)
resolve the numeric term id

Parameters:
i -
Returns:

getVol

public java.lang.String getVol(int i)
resolve the numeric volume id

Parameters:
i -
Returns:

getLabel

public java.lang.String getLabel(int type,
                                 int id)

getId

public int getId(int type,
                 java.lang.String label)