FreeLing
4.0
|
#include <cstdio>
#include <list>
#include <string>
#include <vector>
#include <set>
#include <locale>
#include <iostream>
#include "freeling/utf8/utf8.h"
#include "freeling/regexp.h"
#include "freeling/windll.h"
#include "freeling/morfo/traces.h"
Go to the source code of this file.
Classes | |
class | freeling::util |
Class util implements some utilities for NLP analyzers: "tolower" for latin alfabets, tags manipulation, wstring2number and viceversa conversions, etc. More... | |
Namespaces | |
namespace | freeling |
Defines | |
#define | err_type char* |
#define | NEW_TMPNAME(buf, sz) tmpnam(buf) |
#define | TMPNAME_FAILED(x) (x==NULL) |
#define | TMPNAME_PREFIX L"" |
#define | UPPER_NONE 0 |
#define | UPPER_1ST 1 |
#define | UPPER_ALL 2 |
#define | MOD_TRACENAME L"UTIL" |
#define | MOD_TRACECODE UTIL_TRACE |
#define | wstring2vector(x, y) wstring_to<std::vector<std::wstring> >(x,y) |
Macros for convenience (and back-compatibility) | |
#define | wstring2list(x, y) wstring_to<std::list<std::wstring> >(x,y) |
#define | wstring2set(x, y) wstring_to<std::set<std::wstring> >(x,y) |
#define | wstring2string(x) wstring_to<std::string>(x) |
#define | wstring2int(x) wstring_to<int>(x) |
#define | wstring2double(x) wstring_to<double>(x) |
#define | wstring2longdouble(x) wstring_to<long double>(x) |
#define | vector2wstring(x, y) wstring_from(x,y) |
#define | list2wstring(x, y) wstring_from(x,y) |
#define | set2wstring(x, y) wstring_from(x,y) |
#define | string2wstring(x) wstring_from(x) |
#define | int2wstring(x) wstring_from(x) |
#define | double2wstring(x) wstring_from(x) |
#define | longdouble2wstring(x) wstring_from(x) |
#define | wstring2pairlist(x, y, z) wstring2pairlist<std::wstring,std::wstring>(x,y,z) |
#define double2wstring | ( | x | ) | wstring_from(x) |
#define err_type char* |
Referenced by freeling::util::new_tempfile_name().
#define int2wstring | ( | x | ) | wstring_from(x) |
Referenced by freeling::affixes::affixes(), freeling::nec::analyze(), freeling::bioner::analyze(), freeling::alternatives::analyze(), freeling::dictionary::analyze(), freeling::hmm_tagger::annotate(), freeling::parse_tree::build_node_index(), freeling::compounds::check_compound(), freeling::splitter::close_session(), freeling::foma_FSM::complete_alphabet(), freeling::compounds::compounds(), freeling::tagset::compute_msd_features(), freeling::locutions::ComputeToken(), freeling::alternatives::filter_candidate(), freeling::tagset::get_short_tag(), freeling::phonetics::get_sound(), freeling::trellis::insert(), freeling::affixes::look_for_affixes(), freeling::affixes::look_for_affixes_in_list(), freeling::affixes::look_for_combined_affixes(), freeling::splitter::open_session(), freeling::print_sigma(), freeling::POS_tagger::retokenize(), freeling::dictionary::search_form(), freeling::affixes::SearchRootsList(), freeling::np::StateActions(), freeling::tagset::tagset(), freeling::analyzer::tokenize_split(), and freeling::locutions::ValidMultiWord().
#define list2wstring | ( | x, | |
y | |||
) | wstring_from(x,y) |
Referenced by freeling::dictionary::add_analysis(), freeling::dictionary::check_contracted(), freeling::dictionary::compact_data(), freeling::compounds::compounds(), freeling::sense_info::get_parents_string(), freeling::semanticDB::get_word_senses(), freeling::dictionary::remove_entry(), and freeling::dictionary::search_form().
#define longdouble2wstring | ( | x | ) | wstring_from(x) |
#define MOD_TRACECODE UTIL_TRACE |
#define MOD_TRACENAME L"UTIL" |
#define NEW_TMPNAME | ( | buf, | |
sz | |||
) | tmpnam(buf) |
Referenced by freeling::util::new_tempfile_name().
#define set2wstring | ( | x, | |
y | |||
) | wstring_from(x,y) |
Referenced by freeling::foma_FSM::complete_alphabet(), and freeling::foma_FSM::update_FSM_alphabet().
#define string2wstring | ( | x | ) | wstring_from(x) |
#define TMPNAME_FAILED | ( | x | ) | (x==NULL) |
Referenced by freeling::util::new_tempfile_name().
#define TMPNAME_PREFIX L"" |
Referenced by freeling::util::new_tempfile_name().
#define UPPER_1ST 1 |
Referenced by freeling::util::capitalization(), and freeling::util::capitalize().
#define UPPER_ALL 2 |
Referenced by freeling::util::capitalization(), and freeling::util::capitalize().
#define UPPER_NONE 0 |
Referenced by freeling::util::capitalization().
#define vector2wstring | ( | x, | |
y | |||
) | wstring_from(x,y) |
Referenced by freeling::hmm_tagger::hmm_tagger(), and freeling::hmm_tagger::is_forbidden().
#define wstring2double | ( | x | ) | wstring_to<double>(x) |
Referenced by freeling::probabilities::probabilities().
#define wstring2int | ( | x | ) | wstring_to<int>(x) |
#define wstring2list | ( | x, | |
y | |||
) | wstring_to<std::list<std::wstring> >(x,y) |
Referenced by freeling::dictionary::add_analysis(), freeling::affixes::ApplyRule(), freeling::compounds::check_compound(), freeling::dictionary::check_contracted(), freeling::affixes::CheckRetokenizable(), freeling::compounds::compounds(), freeling::dictionary::get_forms(), freeling::semanticDB::get_sense_words(), freeling::alternatives::get_similar_words(), freeling::semanticDB::get_WN_keys(), freeling::semanticDB::get_word_senses(), freeling::dictionary::parse_dict_entry(), freeling::dictionary::remove_entry(), freeling::dictionary::search_form(), freeling::sense_info::sense_info(), freeling::dictionary::tag_combinations(), freeling::tagset::tagset(), and freeling::locutions::ValidMultiWord().
#define wstring2longdouble | ( | x | ) | wstring_to<long double>(x) |
#define wstring2pairlist | ( | x, | |
y, | |||
z | |||
) | wstring2pairlist<std::wstring,std::wstring>(x,y,z) |
#define wstring2set | ( | x, | |
y | |||
) | wstring_to<std::set<std::wstring> >(x,y) |
Referenced by freeling::tagset::tagset().
#define wstring2string | ( | x | ) | wstring_to<std::string>(x) |
Referenced by freeling::alternatives::alternatives(), freeling::foma_FSM::get_similar_words(), freeling::util::init_locale(), freeling::foma_FSM::load_cost_matrix(), freeling::foma_FSM::load_dictionary_buffer(), freeling::foma_FSM::load_dictionary_file(), freeling::foma_FSM::set_operation_cost(), and freeling::foma_FSM::update_FSM_alphabet().
#define wstring2vector | ( | x, | |
y | |||
) | wstring_to<std::vector<std::wstring> >(x,y) |
Macros for convenience (and back-compatibility)
Referenced by freeling::hmm_tagger::hmm_tagger(), freeling::hmm_tagger::is_forbidden(), and freeling::tagset::tagset().