proto/Source/config.cpp File Reference

File contains definitions of constants and static struct members declared within config.h file. More...

#include <limits>
#include "config.h"

Namespaces

namespace  ace
namespace  ace::constants
namespace  ace::settings

Functions

bool ace::settings::_mask_less_than (const char *lhs, const char *rhs)
 Checks, if left tag mask is "lesser" than right tag mask.
bool ace::settings::check_mask (const char *mask)
bool ace::settings::context_tracing_on (void)
bool ace::settings::correct (void)
bool ace::settings::ready (void)

Variables

const size_t ace::constants::max_grammity = std::numeric_limits<ngram_type_t>::digits - 1
 Max grammity defines maximum allowed value of N.
const size_t ace::constants::bits_per_char = std::numeric_limits<unsigned char>::digits
 Bits per char.
const size_t ace::constants::ngram_within_block = 16*1024
 Number of N-grams to hold in single memory pool block.
const size_t ace::constants::default_precision = 10
 Default output statistics precision.
const size_t ace::constants::max_sentence_length = std::numeric_limits<word_order_t>::max()
 Max sentence length.
const size_t ace::constants::max_collocation_window_size = std::numeric_limits<size_t>::digits
 Maximum allowed collocation window size.
const char ace::constants::significant_position_mark = '*'
 Declaration of character used as indicator of significant positions within (morphologic) tag masks.
const char ace::constants::insignificant_position_mark = '-'
 Declaration of character used as indicator of insignificant positions within (morphologic) tag masks.
const size_t ace::constants::sentences_radius_max_size = 2
 Declaration of (inclusive) upper bound for sentence radius size (see context.h for more info).
const size_t ace::constants::words_radius_max_size = 50
 Declaration of (inclusive) upper bound for words radius size (see context.h for more info).
bool ace::settings::all_thresholds_together = false
 If true, all non-zero thresholds must be passed, otherwise passing one of them is enough.
size_t ace::settings::bucket_size = 4
ContextWindow ace::settings::context_window
 Context window settings.
const char * ace::settings::context_filter_file = 0
 Context filters filename.
const char * ace::settings::context_output_file = 0
 Context output filename.
size_t ace::settings::crop_ratio = 2
 Context morphologic tag mask.
const char * ace::settings::dir = 0
 Directory with data files.
const char * ace::settings::morphologic_filter_file = 0
 File with morphologic filter.
const char * ace::settings::morphologic_filter_stats_file = 0
 File for morphologic filter stats.
const char * ace::settings::input_file = 0
 Input filename.
ngram_size_t ace::settings::n = 0
 N-gram size.
const char * ace::settings::output_file = 0
 Output filename.
size_t ace::settings::precision = constants::default_precision
 Output statistics precision.
bool ace::settings::sort = false
 When compiled in thrifty mode, do sorting before N-grams output processing?
const char * ace::settings::stats_file = 0
 Stats output filename.
Sieves ace::settings::sieves
 To sieve the resulting statistics by given thresholds.
Thresholds ace::settings::thresholds
 To sieve the resulting statistics by given thresholds.
const char * ace::settings::morphologic_tag_mask = 0
 Tag mask determines significant positions of morphological tag.
bool ace::settings::verbose = false
 Be verbose?


Detailed Description

File contains definitions of constants and static struct members declared within config.h file.

See config.h for more info.

(C) Ceslav Przywara 2008, MFF UK Prague


Generated on Wed Aug 6 23:25:49 2008 for PACE by  doxygen 1.5.6