| FreeLing
    4.0
    | 
#include <iostream>#include <string>#include <list>#include <cstdlib>#include "freeling/windll.h"#include "freeling/morfo/language.h"

Go to the source code of this file.
| Classes | |
| class | freeling::traces | 
| Class traces implements trace and error handling utilities.  More... | |
| Namespaces | |
| namespace | freeling | 
| Defines | |
| #define | SPLIT_TRACE 0x00000001 | 
| possible values for MOD_TRACECODE | |
| #define | TOKEN_TRACE 0x00000002 | 
| #define | MACO_TRACE 0x00000004 | 
| #define | LANGIDENT_TRACE 0x00000008 | 
| #define | NUMBERS_TRACE 0x00000010 | 
| #define | DATES_TRACE 0x00000020 | 
| #define | PUNCT_TRACE 0x00000040 | 
| #define | DICT_TRACE 0x00000080 | 
| #define | AFF_TRACE 0x00000100 | 
| #define | LOCUT_TRACE 0x00000200 | 
| #define | NP_TRACE 0x00000400 | 
| #define | PROB_TRACE 0x00000800 | 
| #define | QUANT_TRACE 0x00001000 | 
| #define | NEC_TRACE 0x00002000 | 
| #define | AUTOMAT_TRACE 0x00004000 | 
| #define | TAGGER_TRACE 0x00008000 | 
| #define | SENSES_TRACE 0x00010000 | 
| #define | CHART_TRACE 0x00020000 | 
| #define | GRAMMAR_TRACE 0x00040000 | 
| #define | DEP_TRACE 0x00080000 | 
| #define | COREF_TRACE 0x00100000 | 
| #define | UTIL_TRACE 0x00200000 | 
| #define | WSD_TRACE 0x00400000 | 
| #define | ALTERNATIVES_TRACE 0x00800000 | 
| #define | DATABASE_TRACE 0x01000000 | 
| #define | FEX_TRACE 0x02000000 | 
| #define | OMLET_TRACE 0x04000000 | 
| #define | PHONETICS_TRACE 0x08000000 | 
| #define | MENTIONS_TRACE 0x10000000 | 
| #define | OUTPUT_TRACE 0x20000000 | 
| #define | SEMGRAPH_TRACE 0x40000000 | 
| #define | SUMMARIZER_TRACE 0x80000000 | 
| #define | ERROR_CRASH(msg) | 
| Macros that must be used to put traces in the code. | |
| #define | WARNING(msg) { std::wcerr<<MOD_TRACENAME<<L": "<<msg<<std::endl; } | 
| Warning macros. | |
| #define | TRACE(x, y) | 
| Tracing macros. | |
| #define | TRACE_WORD(x, y) | 
| #define | TRACE_WORD_LIST(x, y) | 
| #define | TRACE_SENTENCE(x, y) | 
| #define | TRACE_SENTENCE_LIST(x, y) | 
| #define AFF_TRACE 0x00000100 | 
| #define ALTERNATIVES_TRACE 0x00800000 | 
| #define AUTOMAT_TRACE 0x00004000 | 
| #define CHART_TRACE 0x00020000 | 
| #define COREF_TRACE 0x00100000 | 
| #define DATABASE_TRACE 0x01000000 | 
| #define DATES_TRACE 0x00000020 | 
| #define DEP_TRACE 0x00080000 | 
| #define DICT_TRACE 0x00000080 | 
| #define ERROR_CRASH | ( | msg | ) | 
{ std::wcerr<<MOD_TRACENAME<<L": "<<msg<<std::endl; \
                           exit(1); \
                         }
Macros that must be used to put traces in the code.
They may be either defined or null, depending on -DVERBOSE compilation flag.
Referenced by freeling::affixes::affixes(), freeling::alternatives::alternatives(), freeling::POS_tagger::analyze(), freeling::bioner::bioner(), freeling::dictionary::check_contracted(), freeling::affixes::CheckRetokenizable(), freeling::foma_FSM::complete_alphabet(), freeling::compounds::compounds(), freeling::csr_kb::csr_kb(), freeling::trellis::delta(), freeling::dictionary::dictionary(), freeling::config_file::get_content_line(), freeling::hmm_tagger::hmm_tagger(), freeling::util::init_locale(), freeling::foma_FSM::load_dictionary_file(), freeling::locutions::locutions(), freeling::nec::nec(), freeling::ner::ner(), freeling::ner_module::ner_module(), freeling::util::new_tempfile_name(), freeling::np::np(), freeling::trellis::phi(), freeling::phonetics::phonetics(), freeling::probabilities::probabilities(), freeling::RE_map::RE_map(), freeling::semanticDB::semanticDB(), freeling::senses::senses(), freeling::analyzer::set_current_invoke_options(), freeling::smoothingLD< std::wstring, wchar_t >::smoothingLD(), freeling::splitter::splitter(), freeling::tagset::tagset(), freeling::tokenizer::tokenizer(), freeling::ukb::ukb(), and freeling::locutions::ValidMultiWord().
| #define FEX_TRACE 0x02000000 | 
| #define GRAMMAR_TRACE 0x00040000 | 
| #define LANGIDENT_TRACE 0x00000008 | 
| #define LOCUT_TRACE 0x00000200 | 
| #define MACO_TRACE 0x00000004 | 
| #define MENTIONS_TRACE 0x10000000 | 
| #define NEC_TRACE 0x00002000 | 
| #define NP_TRACE 0x00000400 | 
| #define NUMBERS_TRACE 0x00000010 | 
| #define OMLET_TRACE 0x04000000 | 
| #define OUTPUT_TRACE 0x20000000 | 
| #define PHONETICS_TRACE 0x08000000 | 
| #define PROB_TRACE 0x00000800 | 
| #define PUNCT_TRACE 0x00000040 | 
| #define QUANT_TRACE 0x00001000 | 
| #define SEMGRAPH_TRACE 0x40000000 | 
| #define SENSES_TRACE 0x00010000 | 
| #define SPLIT_TRACE 0x00000001 | 
possible values for MOD_TRACECODE
| #define SUMMARIZER_TRACE 0x80000000 | 
| #define TAGGER_TRACE 0x00008000 | 
| #define TOKEN_TRACE 0x00000002 | 
| #define TRACE | ( | x, | |
| y | |||
| ) | 
Tracing macros.
Compile with -DVERBOSE to get a traceable code. Compile without -DVERBOSE (default) to get faster, non-traceable, exploitation version. ifndef VERBOSE --> No messages displayed. Faster code.
Referenced by freeling::phonetics::add_rule(), freeling::affixes::affixes(), freeling::alternatives::alternatives(), freeling::punts::analyze(), freeling::senses::analyze(), freeling::nec::analyze(), freeling::bioner::analyze(), freeling::maco::analyze(), freeling::alternatives::analyze(), freeling::dictionary::analyze(), freeling::automat< quantities_status >::analyze(), freeling::hmm_tagger::annotate(), freeling::RE_map::annotate_word(), freeling::probabilities::annotate_word(), freeling::affixes::ApplyRule(), freeling::bioner::bioner(), freeling::ner_module::BuildMultiword(), freeling::automat< quantities_status >::BuildMultiword(), freeling::locutions::check(), freeling::compounds::check_compound(), freeling::dictionary::check_contracted(), freeling::affixes::CheckRetokenizable(), freeling::splitter::close_session(), freeling::foma_FSM::complete_alphabet(), freeling::compounds::compounds(), freeling::tagset::compute_msd_features(), freeling::probabilities::compute_probability(), freeling::locutions::ComputeToken(), freeling::dictionary::dictionary(), freeling::alternatives::filter_alternatives(), freeling::alternatives::filter_candidate(), freeling::hmm_tagger::FindStates(), freeling::POS_tagger::force_select(), freeling::affixes::GenerateRoots(), freeling::config_file::get_content_line(), freeling::tagset::get_msd_features(), freeling::tagset::get_msd_string(), freeling::tagset::get_short_tag(), freeling::foma_FSM::get_similar_words(), freeling::alternatives::get_similar_words(), freeling::phonetics::get_sound(), freeling::semanticDB::get_WN_keys(), freeling::semanticDB::get_word_senses(), freeling::probabilities::guesser(), freeling::hmm_tagger::hmm_tagger(), freeling::trellis::insert(), freeling::hmm_tagger::is_forbidden(), freeling::foma_FSM::load_cost_matrix(), freeling::foma_FSM::load_dictionary_buffer(), freeling::foma_FSM::load_dictionary_file(), freeling::locutions::locutions(), freeling::affixes::look_for_affixes(), freeling::affixes::look_for_affixes_in_list(), freeling::affixes::look_for_combined_affixes(), freeling::automat< quantities_status >::matching(), freeling::nec::nec(), freeling::np::np(), freeling::splitter::open_session(), freeling::phonetics::phonetics(), freeling::hmm_tagger::ProbA_log(), freeling::probabilities::probabilities(), freeling::hmm_tagger::ProbB_log(), freeling::RE_map::RE_map(), freeling::POS_tagger::retokenize(), freeling::dictionary::search_form(), freeling::affixes::SearchRootsList(), freeling::senses::senses(), freeling::np::SetMultiwordAnalysis(), freeling::locutions::SetMultiwordAnalysis(), freeling::ner_module::SetMultiwordAnalysis(), freeling::probabilities::smoothing(), freeling::splitter::splitter(), freeling::np::StateActions(), freeling::locutions::StateActions(), freeling::tagset::tagset(), freeling::tokenizer::tokenizer(), freeling::ukb::ukb(), and freeling::locutions::ValidMultiWord().
| #define TRACE_SENTENCE | ( | x, | |
| y | |||
| ) | 
Referenced by freeling::punts::analyze(), freeling::nec::analyze(), freeling::bioner::analyze(), freeling::probabilities::analyze(), freeling::dictionary::analyze(), freeling::automat< quantities_status >::analyze(), freeling::POS_tagger::force_select(), freeling::automat< quantities_status >::matching(), and freeling::POS_tagger::retokenize().
| #define TRACE_SENTENCE_LIST | ( | x, | |
| y | |||
| ) | 
| #define TRACE_WORD | ( | x, | |
| y | |||
| ) | 
| #define TRACE_WORD_LIST | ( | x, | |
| y | |||
| ) | 
| #define UTIL_TRACE 0x00200000 | 
| #define WARNING | ( | msg | ) | { std::wcerr<<MOD_TRACENAME<<L": "<<msg<<std::endl; } | 
Warning macros.
Compile without -DNO_WARNINGS (default) to get a code that warns about suspicious things. Compile with -DNO_WARNINGS to get non-warning, exploitation version.
Referenced by freeling::phonetics::add_rule(), freeling::alternatives::alternatives(), freeling::compounds::compounds(), freeling::tagset::compute_msd_features(), freeling::config_file::get_content_line(), freeling::dictionary::get_forms(), freeling::tagset::get_short_tag(), freeling::hmm_tagger::hmm_tagger(), freeling::np::np(), freeling::phonetics::phonetics(), freeling::maco::set_active_options(), freeling::analyzer::set_current_invoke_options(), freeling::ukb::ukb(), and freeling::util::wstring_from().
| #define WSD_TRACE 0x00400000 | 
 1.7.6.1
 1.7.6.1