irstlm/src/quantize-lm.cpp File Reference

#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <stdlib.h>
#include <assert.h>
#include "math.h"
#include "util.h"

Go to the source code of this file.

Classes

struct  DataItem

Defines

#define MAX_LINE   1024

Functions

int cmpFloatEntry (const void *a, const void *b)
int parseWords (char *sentence, const char **words, int max)
int ComputeCluster (int nc, double *cl, unsigned int N, DataItem *Pts)
void usage (const char *msg=0)
int main (int argc, const char **argv)

Variables

int k = 256
const int MAXLEV = 11


Define Documentation

#define MAX_LINE   1024

Definition at line 34 of file quantize-lm.cpp.


Function Documentation

int cmpFloatEntry ( const void *  a,
const void *  b 
)

Definition at line 49 of file quantize-lm.cpp.

Referenced by ComputeCluster().

Here is the caller graph for this function:

int ComputeCluster ( int  nc,
double *  cl,
unsigned int  N,
DataItem Pts 
)

Definition at line 348 of file quantize-lm.cpp.

References cmpFloatEntry(), and DataItem::code.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
const char **  argv 
)

Definition at line 91 of file quantize-lm.cpp.

References ComputeCluster(), createtempfile(), DataItem::idx, k, MAX_LINE, MAXLEV, NULL, parseWords(), DataItem::pt, removefile(), and usage().

Here is the call graph for this function:

int parseWords ( char *  sentence,
const char **  words,
int  max 
)

Definition at line 196 of file lmtable.cpp.

void usage ( const char *  msg = 0  ) 

Definition at line 77 of file quantize-lm.cpp.


Variable Documentation

int k = 256

const int MAXLEV = 11

Definition at line 71 of file quantize-lm.cpp.

Referenced by main().


Generated on Fri Apr 15 13:04:15 2011 for Moses by  doxygen 1.5.9