MosesTuning::Data Class Reference
#include <Data.h>
List of all members.
Detailed Description
Definition at line 29 of file Data.h.
Constructor & Destructor Documentation
MosesTuning::Data::Data |
( |
Scorer * |
scorer, |
|
|
const std::string & |
sparseweightsfile = "" | |
|
) |
| | [explicit] |
Member Function Documentation
void MosesTuning::Data::AddFeatures |
( |
const std::string & |
str, |
|
|
int |
sentence_index | |
|
) |
| | |
void MosesTuning::Data::clear |
( |
|
) |
[inline] |
void MosesTuning::Data::createShards |
( |
std::size_t |
shard_count, |
|
|
float |
shard_size, |
|
|
const std::string & |
scorerconfig, |
|
|
std::vector< Data > & |
shards | |
|
) |
| | |
Create shard_count shards. If shard_size == 0, then the shards are non-overlapping and exhaust the data. If 0 < shard_size <= 1, then shards are chosen by sampling the data (with replacement) and shard_size is interpreted as the proportion of the total size.
bool MosesTuning::Data::existsFeatureNames |
( |
|
) |
const [inline] |
void MosesTuning::Data::Features |
( |
const std::string & |
f |
) |
[inline] |
std::string MosesTuning::Data::Features |
( |
|
) |
const [inline] |
std::size_t MosesTuning::Data::getFeatureIndex |
( |
const std::string & |
name |
) |
const [inline] |
std::string MosesTuning::Data::getFeatureName |
( |
std::size_t |
idx |
) |
const [inline] |
Scorer* MosesTuning::Data::getScorer |
( |
|
) |
[inline] |
void MosesTuning::Data::InitFeatureMap |
( |
const std::string & |
str |
) |
|
void MosesTuning::Data::load |
( |
const std::string & |
featfile, |
|
|
const std::string & |
scorefile | |
|
) |
| | |
void MosesTuning::Data::loadNBest |
( |
const std::string & |
file, |
|
|
bool |
oneBest = false | |
|
) |
| | |
std::size_t MosesTuning::Data::NumberOfFeatures |
( |
|
) |
const [inline] |
void MosesTuning::Data::removeDuplicates |
( |
|
) |
|
Definition at line 52 of file Data.cpp.
References MosesTuning::ScoreArray::get(), MosesTuning::FeatureStats::get(), MosesTuning::FeatureArray::get(), k, MosesTuning::ScoreArray::resize(), MosesTuning::FeatureArray::resize(), MosesTuning::FeatureStats::size(), MosesTuning::ScoreArray::size(), MosesTuning::FeatureArray::size(), MosesTuning::ScoreArray::swap(), and MosesTuning::FeatureArray::swap().
void MosesTuning::Data::save |
( |
const std::string & |
featfile, |
|
|
const std::string & |
scorefile, |
|
|
bool |
bin = false | |
|
) |
| | |
The documentation for this class was generated from the following files:
- /disk4/html/www/moses/doxygen/mosesdecoder/mert/Data.h
- /disk4/html/www/moses/doxygen/mosesdecoder/mert/Data.cpp