#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <stdlib.h>
#include <assert.h>
#include "cmd.h"
#include "math.h"
#include "util.h"
Go to the source code of this file.
Classes | |
struct | DataItem |
Functions | |
int | cmpFloatEntry (const void *a, const void *b) |
int | ComputeCluster (int nc, double *cl, unsigned int N, DataItem *Pts) |
void | print_help (int TypeFlag=0) |
void | usage (const char *msg=0) |
int | main (int argc, char **argv) |
Variables | |
int | k = 256 |
const int | MAXLEV = 11 |
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 408 of file quantize-lm.cpp.
References cmpFloatEntry(), and DataItem::code.
Referenced by main().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 104 of file quantize-lm.cpp.
References mfstream::close(), CMDBOOLTYPE, CMDMSG, ComputeCluster(), createtempfile(), DeclareParams(), GetParams(), DataItem::idx, k, MAX_LINE, MAXLEV, n, NULL, parseWords(), DataItem::pt, removefile(), and usage().
void print_help | ( | int | TypeFlag = 0 |
) |
Definition at line 76 of file quantize-lm.cpp.
References FullPrintParams().
void usage | ( | const char * | msg = 0 |
) |
Definition at line 93 of file quantize-lm.cpp.
References print_help().
int k = 256 |
Definition at line 69 of file quantize-lm.cpp.
Referenced by sapt::imBitext< TKN >::add(), MosesTuning::ReferenceSet::AddLine(), Moses::AddStats(), IBM1::align(), stringdist::StringDiff::align(), Moses::MonotonicVector< unsigned, unsigned int, 32 >::at(), basename(), tpt::binread(), BOOST_AUTO_TEST_CASE(), Moses::PDTAimp::CacheSource(), Moses::calcNgramExpectations(), sapt::Ttrack< TKN >::count_tokens(), Moses::Word::CreateFromString(), Moses::PDTAimp::CreateTargetPhrase(), Moses::DecodeStep::DecodeStep(), extract_ngrams(), Moses::extract_ngrams(), IBM1::fill_amatrix(), Moses::filter_arguments(), sapt::Ttrack< TKN >::find_next_within_sentence(), sapt::TSA< TKN >::findBranches(), floyd_warshall(), generateStory(), sapt::BitSetCache< TSA >::get(), sapt::BitSetCache< TSA >::get2(), double_conversion::PowersOfTenCache::GetCachedPowerForBinaryExponentRange(), Moses::Mmsapt::GetTargetPhraseCollectionLEGACY(), sapt::imTSA< TOKEN >::imTSA(), sapt::DocumentBias::init_from_json(), MosesTuning::Optimizer::LineOptimize(), Moses::StaticData::LoadAlternateWeightSettings(), lookup_phrase(), lookup_phrases(), main(), map_back(), mapstring(), util::MurmurHash64A(), MosesTuning::operator==(), Moses::NBestList< THINGY, CMP >::operator[](), Moses::parseLine(), sapt::print_amatrix(), Counter::processSentence(), LVoc< std::string >::Read(), MosesTuning::Data::removeDuplicates(), sapt::imTSA< TOKEN >::save_as_mm_tsa(), htable< T >::scan(), sapt::LexicalPhraseScorer2< TKN >::score(), MosesTuning::StatisticsBasedScorer::score(), MosesTuning::SentenceLevelScorer::score(), MosesTuning::InterpolatedScorer::setScoreData(), show_pair(), show_snt(), tmmt::SuffixArray::Sort(), dictionary::test(), mixture::train(), Moses::TranslationOptionCollectionConfusionNet::TranslationOptionCollectionConfusionNet(), MosesTuning::Viterbi(), and lmtable::wdprune().
const int MAXLEV = 11 |