plsa Class Reference

#include <cplsa.h>

Collaboration diagram for plsa:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 plsa (dictionary *dictfile, int top, char *baseFile, char *featFile, char *hfile, char *wfile, char *tfile)
 ~plsa ()
int saveW (char *fname)
int saveT (char *fname)
int combineT (char *tlist)
int saveWtxt (char *fname)
int loadW (char *fname)
int initW (double noise, int spectopic)
int initH (double noise, int maxdoc)
int train (char *trainfile, int maxiter, double noiseH, int flagW=0, double noiseW=0, int spectopic=0)
int saveFeat (char *fname)


Detailed Description

Definition at line 21 of file cplsa.h.


Constructor & Destructor Documentation

plsa::plsa ( dictionary dictfile,
int  top,
char *  baseFile,
char *  featFile,
char *  hfile,
char *  wfile,
char *  tfile 
)

Definition at line 36 of file cplsa.cpp.

References dictionary::size().

Here is the call graph for this function:

plsa::~plsa (  )  [inline]

Definition at line 42 of file cplsa.h.

References dictionary::size().

Here is the call graph for this function:


Member Function Documentation

int plsa::combineT ( char *  tlist  ) 

Definition at line 162 of file cplsa.cpp.

References mfstream::close(), and dictionary::size().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int plsa::initH ( double  noise,
int  maxdoc 
)

Definition at line 97 of file cplsa.cpp.

References mfstream::close(), MY_RAND, and NULL.

Referenced by train().

Here is the call graph for this function:

Here is the caller graph for this function:

int plsa::initW ( double  noise,
int  spectopic 
)

Definition at line 67 of file cplsa.cpp.

References dictionary::freq(), loadW(), MY_RAND, NULL, and dictionary::size().

Referenced by train().

Here is the call graph for this function:

Here is the caller graph for this function:

int plsa::loadW ( char *  fname  ) 

Definition at line 199 of file cplsa.cpp.

References dictionary::size().

Referenced by initW(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:

int plsa::saveFeat ( char *  fname  ) 

Definition at line 217 of file cplsa.cpp.

References COUNT, ngramtable::dict, ngram::freq, dictionary::incflag(), dictionary::incfreq(), NULL, ngramtable::put(), ngramtable::savetxt(), dictionary::size(), ngram::trans(), and ngram::wordp().

Referenced by train().

Here is the call graph for this function:

Here is the caller graph for this function:

int plsa::saveT ( char *  fname  ) 

Definition at line 145 of file cplsa.cpp.

References mfstream::close(), and dictionary::size().

Referenced by train().

Here is the call graph for this function:

Here is the caller graph for this function:

int plsa::saveW ( char *  fname  ) 

Definition at line 134 of file cplsa.cpp.

References mfstream::close(), and dictionary::size().

Referenced by main(), and train().

Here is the call graph for this function:

Here is the caller graph for this function:

int plsa::saveWtxt ( char *  fname  ) 

Definition at line 116 of file cplsa.cpp.

References mfstream::close(), dictionary::decode(), dictionary::freq(), and dictionary::size().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int plsa::train ( char *  trainfile,
int  maxiter,
double  noiseH,
int  flagW = 0,
double  noiseW = 0,
int  spectopic = 0 
)

Definition at line 260 of file cplsa.cpp.

References doc::cd, mfstream::close(), initH(), initW(), LOWER_SINGLE_PRECISION_OF_1, doc::m, m, doc::N, doc::n, doc::open(), doc::read(), doc::reset(), saveFeat(), saveT(), saveW(), dictionary::size(), UPPER_SINGLE_PRECISION_OF_1, and doc::V.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:31:56 2017 for Moses by  doxygen 1.5.9