#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 MAX_LINE 1024 |
Definition at line 34 of file quantize-lm.cpp.
| int cmpFloatEntry | ( | const void * | a, | |
| const void * | b | |||
| ) |
Definition at line 49 of file quantize-lm.cpp.
Referenced by ComputeCluster().

| 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().


| 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().

| 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.
| int k = 256 |
Definition at line 70 of file quantize-lm.cpp.
Referenced by Moses::PDTAimp::CacheSource(), calcNgramExpectations(), Moses::PDTAimp::CreateTargetPhrase(), Moses::DecodeStep::DecodeStep(), extract_ngrams(), floyd_warshall(), Moses::DynSuffixArray::Insert(), Moses::StaticData::LoadData(), Moses::StaticData::LoadLexicalReorderingModel(), Moses::StaticData::LoadPhraseTables(), main(), LVoc< A, B >::Read(), htable::scan(), dictionary::test(), mixture::train(), lmtable::wdprune(), and ngram::wordp().
| const int MAXLEV = 11 |
1.5.9