doc Class Reference

#include <doc.h>

Collaboration diagram for doc:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 doc (dictionary *d, char *docfname)
 ~doc ()
int count ()
int open ()
int save (char *fname)
int savernd (char *fname, int num)
int save (char *fname, int bsz)
int reset ()
int read ()

Public Attributes

int cd
int n
int m
int * V
int * N
int * T


Detailed Description

Definition at line 23 of file doc.h.


Constructor & Destructor Documentation

doc::doc ( dictionary d,
char *  docfname 
)

Definition at line 34 of file doc.cpp.

References cd, m, N, n, NULL, dictionary::size(), T, and V.

Here is the call graph for this function:

doc::~doc (  ) 

Definition at line 47 of file doc.cpp.

References N, T, and V.


Member Function Documentation

int doc::count (  ) 

int doc::open (  ) 

Definition at line 56 of file doc.cpp.

References cd, and n.

Referenced by main(), reset(), and plsa::train().

Here is the caller graph for this function:

int doc::read (  ) 

Definition at line 91 of file doc.cpp.

References dictionary::BoD(), cd, dictionary::encode(), dictionary::EoD(), m, N, n, ngram::size, dictionary::size(), T, V, and ngram::wordp().

Referenced by save(), savernd(), and plsa::train().

Here is the call graph for this function:

Here is the caller graph for this function:

int doc::reset (  ) 

Definition at line 79 of file doc.cpp.

References cd, mfstream::close(), m, and open().

Referenced by save(), savernd(), and plsa::train().

Here is the call graph for this function:

Here is the caller graph for this function:

int doc::save ( char *  fname,
int  bsz 
)

Definition at line 206 of file doc.cpp.

References cd, mfstream::close(), m, N, n, NULL, read(), reset(), and V.

Here is the call graph for this function:

int doc::save ( char *  fname  ) 

Definition at line 185 of file doc.cpp.

References cd, m, N, n, NULL, read(), reset(), and V.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int doc::savernd ( char *  fname,
int  num 
)

Definition at line 136 of file doc.cpp.

References cd, m, N, n, NULL, util::rand(), read(), reset(), and V.

Here is the call graph for this function:


Member Data Documentation

int doc::cd

Definition at line 31 of file doc.h.

Referenced by doc(), open(), read(), reset(), save(), savernd(), and plsa::train().

int doc::m

Definition at line 33 of file doc.h.

Referenced by doc(), read(), reset(), save(), savernd(), and plsa::train().

int* doc::N

Definition at line 35 of file doc.h.

Referenced by doc(), read(), save(), savernd(), plsa::train(), and ~doc().

int doc::n

Definition at line 32 of file doc.h.

Referenced by doc(), open(), read(), save(), savernd(), and plsa::train().

int* doc::T

Definition at line 36 of file doc.h.

Referenced by doc(), read(), and ~doc().

int* doc::V

Definition at line 34 of file doc.h.

Referenced by doc(), read(), save(), savernd(), plsa::train(), and ~doc().


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

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