ddc
|
#include <wizard.h>
Classes | |
struct | AncodeLess |
Public Member Functions | |
MorphoWizard () | |
~MorphoWizard () | |
bool | load_wizard (const char *path, const char *user_name, bool bCreatePrediction=true) |
void | load_mrd (bool guest, bool bCreatePrediction) |
bool | load_static (MorphLanguageEnum langua) |
void | load_string_vector (const string &name, StringVector &res) |
string & | get_value (const string &key) |
void | log (const string &messg) |
void | log (const string &lemm, const CFlexiaModel &p, bool is_added) |
bool | is_changed () |
void | save_mrd () |
string | get_lock_file_name () const |
string | get_log_file_name () const |
string | get_predict_src_file_path (int mode) const |
void | MakeReadOnly () |
void | CreatePredictIndex () |
void | pack () |
WORD | GetCurrentSessionNo () const |
size_t | del_dup_lemm () |
string | get_pos_string (const lemma_iterator_t it) const |
string | get_pos_string (const string &code) const |
string | get_lemm_string (const_lemma_iterator_t it) const |
string | get_lemm_string_with_accents (const_lemma_iterator_t it) const |
string | get_base_string (const_lemma_iterator_t it) const |
string | get_grammem_string (const string &code) const |
string | get_grammem_string (lemma_iterator_t it) const |
QWORD | get_all_lemma_grammems (const_lemma_iterator_t it) const |
string | get_common_grammems_string (const_lemma_iterator_t it) const |
string | get_prefix_set (const_lemma_iterator_t it) const |
string | get_pos_string_and_grammems (const string &code) const |
const CMorphSession & | get_session (int SessionNo) const |
bool | IsGerman () const |
const StringVector & | get_poses () |
const StringVector & | get_grammems () |
const StringVector & | get_type_grammems () |
void | find_lemm_by_grammem (const string &pos_and_grammems, vector< lemma_iterator_t > &res) |
void | find_lemm (string lemm, bool bCheckLemmaPrefix, vector< lemma_iterator_t > &res) |
void | find_lemm_by_user (string username, vector< lemma_iterator_t > &res) |
void | find_wordforms (string lemm, vector< lemma_iterator_t > &res) |
void | find_ancodes (const string &ancode, vector< lemma_iterator_t > &res) |
void | find_lemm_by_prdno (WORD no, vector< lemma_iterator_t > &res) |
void | find_lemm_by_accent_model (int no, vector< lemma_iterator_t > &res) |
void | find_lemm_by_prd_info (const CParadigmInfo &info, vector< lemma_iterator_t > &res) |
string | mrd_to_slf (const string &lemm, const CFlexiaModel &p, WORD AccentModelNo, BYTE AuxAccent, int line_size) const |
void | slf_to_mrd (const string &s, string &lemm, CFlexiaModel &FlexiaModel, CAccentModel &AccentModel, BYTE &AuxAccent, int &line_no_err) const |
void | check_paradigm (long line_no) |
void | remove_lemm (lemma_iterator_t it) |
void | predict_lemm (const string &lemm, const int preffer_suf_len, int minimal_frequence, bool bOnlyMainPartOfSpeeches) |
string | get_slf_string (lemma_iterator_t it, string &dict, string &Prefixes, int line_size=79) |
void | get_wordforms (const_lemma_iterator_t it, StringVector &forms) const |
string | create_slf_from_predicted (int PredictParadigmNo, string &dict, int line_size=79) const |
CParadigmInfo | add_lemma (const string &slf, string common_grammems, const string &prefixes, int &line_no_err, WORD SessionNo=UnknownSessionNo) |
void | set_to_delete_false () |
void | delete_checked_lemms () |
void | clear_predicted_paradigms () |
bool | change_prd_info (CParadigmInfo &I, const string &Lemma, WORD NewParadigmNo, WORD newAccentModelNo, bool keepOldAccents) |
string | show_differences_in_two_paradigms (WORD FlexiaModelNo1, WORD FlexiaModelNo2) const |
bool | slf2ancode (const string slf_line, string &gramcode) const |
bool | check_common_grammems (string common_grammems) const |
bool | check_prefixes (string prefixes) const |
bool | attach_form_prefixes_to_bases () |
bool | prepare_for_RML () |
bool | HasMeter () const |
MorphWizardMeter * | GetMeter () |
bool | HasUnknownAccents (lemma_iterator_t it) const |
bool | IsPartialAccented (lemma_iterator_t it) const |
BYTE | GetLemmaAccent (const_lemma_iterator_t it) const |
bool | ReadNextParadigmFromFile (FILE *fp, CDumpParadigm &P, int &line_no, bool &bError, string &Errors) const |
bool | StartSession (string user_name) |
void | EndSession () |
string | GetUserName () const |
void | StartLastSessionOfUser (string user_name) |
WORD | RegisterSession (const CMorphSession &S) |
Public Attributes | |
AncodeLess | ancode_less |
vector< CFlexiaModel > | m_FlexiaModels |
vector< CAccentModel > | m_AccentModels |
vector< set< string > > | m_PrefixSets |
LemmaMap | m_LemmaToParadigm |
map< string, string > | m_ProjectFileKeys |
string | m_CurrentNewLemma |
vector< predict_container_t::const_iterator > | m_CurrentPredictedParadigms |
MorphLanguageEnum | m_Language |
vector< BYTE > | m_PcreCharacterTables |
a table of character properties for regular expressions which depend on CConcIndexator::m_Language More... | |
bool | m_bLoaded |
const CAgramtab * | m_pGramTab |
bool | m_ReadOnly |
string | m_LanguageStr |
string | m_MrdPath |
bool | m_bFullTrace |
Private Member Functions | |
void | load_gramtab () |
void | ReadSessions (FILE *fp) |
BYTE | _GetReverseVowelNo (const string &form, WORD accentModelNo, WORD formInd) const |
void | SetAccent (WORD AccentModelNo, BYTE AuxAccent, int FormNo, string &form) const |
string | get_prefix_set_str (WORD PrefixSetNo) const |
void | ReadOnePrefixSet (string PrefixSet, set< string > &Result) const |
void | ReadPrefixSets (FILE *fp) |
WORD | AddPrefixSet (string PrefixSetStr) |
Private Attributes | |
bool | m_bWasChanged |
StringVector | m_PosesList |
StringVector | m_GrammemsList |
StringVector | m_TypeGrammemsList |
predict_container_t | m_PredictIndex [MaxPredictSuffixLength-MinPredictSuffixLength+1] |
StringVector | m_Users |
size_t | m_SessionNo |
vector< CMorphSession > | m_Sessions |
MorphWizardMeter * | m_pMeter |
Friends | |
class | MorphWizardMeter |
MorphoWizard::MorphoWizard | ( | ) |
References m_bFullTrace, m_pGramTab, m_pMeter, and m_ReadOnly.
MorphoWizard::~MorphoWizard | ( | ) |
|
private |
References ancode_less, FileExists(), CAgramtab::GetAllPossibleAncodes(), CAgramtab::GetGrammems(), CAgramtab::GetGrammemsCount(), CAgramtab::GetGrammemStr(), CAgramtab::GetPartOfSpeechesCount(), CAgramtab::GetPartOfSpeechStr(), GetStringByLanguage(), CAgramtab::GrammemsToStr(), MorphoWizard::AncodeLess::init(), CAgramtab::LoadFromFile(), CAgramtab::LoadFromRegistry(), m_GrammemsList, m_Language, m_pGramTab, m_PosesList, m_ProjectFileKeys, m_TypeGrammemsList, morphEnglish, morphGerman, morphRussian, CAgramtab::RegistryFilename(), and UnknownPartOfSpeech.
Referenced by load_static(), and load_wizard().
|
private |
References Format(), GetMeter(), HasMeter(), m_Sessions, MaxMrdLineLength, CMorphSession::ReadFromString(), and CFileMeterRML::SetFilePos().
Referenced by load_mrd().
bool MorphoWizard::load_wizard | ( | const char * | path, |
const char * | user_name, | ||
bool | bCreatePrediction = true |
||
) |
References get_value(), GetFullPathByName(), GetLanguageByString(), load_gramtab(), load_mrd(), load_string_vector(), m_bLoaded, m_Language, m_LanguageStr, m_MrdPath, m_PcreCharacterTables, m_pGramTab, m_ProjectFileKeys, m_Users, MaxMrdLineLength, RmlPcreMakeTables(), StartSession(), and StringTokenizer::val().
Referenced by PrintAllForms().
void MorphoWizard::load_mrd | ( | bool | guest, |
bool | bCreatePrediction | ||
) |
References CreateLockFile(), CreatePredictIndex(), get_lock_file_name(), m_AccentModels, m_FlexiaModels, m_MrdPath, m_pMeter, m_ProjectFileKeys, m_ReadOnly, ReadAccentModels(), ReadFlexiaModels(), ReadLemmas(), ReadPrefixSets(), ReadSessions(), and CFileMeterRML::SetFileMaxPos().
Referenced by load_wizard().
bool MorphoWizard::load_static | ( | MorphLanguageEnum | langua | ) |
References GetStringByLanguage(), load_gramtab(), m_Language, m_LanguageStr, m_PcreCharacterTables, m_pGramTab, and RmlPcreMakeTables().
void MorphoWizard::load_string_vector | ( | const string & | name, |
StringVector & | res | ||
) |
References get_value().
Referenced by load_wizard().
string & MorphoWizard::get_value | ( | const string & | key | ) |
References m_ProjectFileKeys.
Referenced by load_string_vector(), and load_wizard().
void MorphoWizard::log | ( | const string & | messg | ) |
References get_log_file_name(), GetCurrentDate(), and GetUserName().
Referenced by add_lemma(), log(), pack(), remove_lemm(), save_mrd(), and StartSession().
void MorphoWizard::log | ( | const string & | lemm, |
const CFlexiaModel & | p, | ||
bool | is_added | ||
) |
References log(), m_bFullTrace, and CFlexiaModel::ToString().
|
inline |
void MorphoWizard::save_mrd | ( | ) |
References EndSession(), Format(), CFlexiaModel::get_first_flex(), get_prefix_set_str(), GetUserName(), log(), m_AccentModels, m_bLoaded, m_bWasChanged, m_FlexiaModels, m_LemmaToParadigm, m_MrdPath, m_PrefixSets, m_ProjectFileKeys, m_Sessions, UnknownPrefixSetNo, WriteAccentModels(), and WriteFlexiaModels().
string MorphoWizard::get_lock_file_name | ( | ) | const |
References m_MrdPath, and m_ProjectFileKeys.
Referenced by load_mrd(), and MakeReadOnly().
string MorphoWizard::get_log_file_name | ( | ) | const |
References m_MrdPath, and m_ProjectFileKeys.
Referenced by log().
string MorphoWizard::get_predict_src_file_path | ( | int | mode | ) | const |
References GetPathByFile(), m_MrdPath, and m_ProjectFileKeys.
void MorphoWizard::MakeReadOnly | ( | ) |
References get_lock_file_name(), and m_ReadOnly.
Referenced by ~MorphoWizard().
void MorphoWizard::CreatePredictIndex | ( | ) |
References COperationMeterRML::AddPos(), CFlexiaModel::get_first_code(), get_prefix_set(), GetSuffix(), IsLessByLemmaLength(), CPredictSuffix::m_FlexiaModelNo, m_FlexiaModels, CPredictSuffix::m_Frequence, m_LemmaToParadigm, m_pMeter, m_PredictIndex, CPredictSuffix::m_PrefixSetStr, CPredictSuffix::m_SourceCommonAncode, CPredictSuffix::m_SourceLemma, CPredictSuffix::m_SourceLemmaAncode, CPredictSuffix::m_Suffix, MaxPredictSuffixLength, MinPredictSuffixLength, COperationMeterRML::SetInfo(), and COperationMeterRML::SetMaxPos().
Referenced by load_mrd(), and pack().
void MorphoWizard::pack | ( | ) |
References COperationMeterRML::AddPos(), CreatePredictIndex(), del_dup_lemm(), GetMeter(), HasMeter(), log(), m_AccentModels, m_bWasChanged, m_FlexiaModels, m_LemmaToParadigm, m_PrefixSets, COperationMeterRML::SetInfo(), COperationMeterRML::SetMaxPos(), COperationMeterRML::SetPos(), UnknownAccentModelNo, and UnknownPrefixSetNo.
Referenced by attach_form_prefixes_to_bases().
WORD MorphoWizard::GetCurrentSessionNo | ( | ) | const |
References m_SessionNo, and m_Sessions.
Referenced by add_lemma(), and change_prd_info().
size_t MorphoWizard::del_dup_lemm | ( | ) |
References m_bWasChanged, and m_LemmaToParadigm.
Referenced by pack().
string MorphoWizard::get_pos_string | ( | const lemma_iterator_t | it | ) | const |
References m_FlexiaModels.
Referenced by check_paradigm(), CMorphDictBuilder::GenerateUnitedFlexModels(), get_pos_string_and_grammems(), and predict_lemm().
string MorphoWizard::get_pos_string | ( | const string & | code | ) | const |
References CAgramtab::GetPartOfSpeech(), CAgramtab::GetPartOfSpeechStr(), and m_pGramTab.
string MorphoWizard::get_lemm_string | ( | const_lemma_iterator_t | it | ) | const |
string MorphoWizard::get_lemm_string_with_accents | ( | const_lemma_iterator_t | it | ) | const |
References m_Language, RmlMakeLower(), and SetAccent().
Referenced by PrintAllForms().
string MorphoWizard::get_base_string | ( | const_lemma_iterator_t | it | ) | const |
References CFlexiaModel::get_first_flex(), and m_FlexiaModels.
Referenced by CMorphDictBuilder::CreateAutomat(), CMorphDictBuilder::GenerateLemmas(), IsLessByModelNoAndBase::operator()(), and PrintAllForms().
string MorphoWizard::get_grammem_string | ( | const string & | code | ) | const |
References CAgramtab::GetGrammems(), CAgramtab::GrammemsToStr(), and m_pGramTab.
Referenced by create_slf_from_predicted(), get_grammem_string(), get_pos_string_and_grammems(), and get_slf_string().
string MorphoWizard::get_grammem_string | ( | lemma_iterator_t | it | ) | const |
QWORD MorphoWizard::get_all_lemma_grammems | ( | const_lemma_iterator_t | it | ) | const |
References CAgramtab::GetAllGrammems(), m_FlexiaModels, and m_pGramTab.
string MorphoWizard::get_common_grammems_string | ( | const_lemma_iterator_t | it | ) | const |
References CAgramtab::GetGrammems(), CAgramtab::GrammemsToStr(), and m_pGramTab.
string MorphoWizard::get_prefix_set | ( | const_lemma_iterator_t | it | ) | const |
References get_prefix_set_str(), and UnknownPrefixSetNo.
Referenced by CreatePredictIndex(), and get_slf_string().
string MorphoWizard::get_pos_string_and_grammems | ( | const string & | code | ) | const |
References get_grammem_string(), and get_pos_string().
Referenced by mrd_to_slf().
const CMorphSession & MorphoWizard::get_session | ( | int | SessionNo | ) | const |
References m_Sessions.
|
inline |
References morphGerman.
|
inline |
|
inline |
|
inline |
References UnknownSessionNo.
void MorphoWizard::find_lemm_by_grammem | ( | const string & | pos_and_grammems, |
vector< lemma_iterator_t > & | res | ||
) |
References find_ancodes(), CAgramtab::GetAllPossibleAncodes(), m_pGramTab, and CAgramtab::ProcessPOSAndGrammemsIfCan().
void MorphoWizard::find_lemm | ( | string | lemm, |
bool | bCheckLemmaPrefix, | ||
vector< lemma_iterator_t > & | res | ||
) |
References COperationMeterRML::AddPos(), RML_RE::error(), ErrorMessage(), GetLemmaAccent(), m_Language, m_LemmaToParadigm, m_PcreCharacterTables, m_pMeter, m_PrefixSets, RML_RE::PartialMatch(), RmlMakeUpper(), COperationMeterRML::SetInfo(), COperationMeterRML::SetMaxPos(), and UnknownPrefixSetNo.
void MorphoWizard::find_lemm_by_user | ( | string | username, |
vector< lemma_iterator_t > & | res | ||
) |
References IsLessBySession(), m_LemmaToParadigm, and m_Sessions.
void MorphoWizard::find_wordforms | ( | string | lemm, |
vector< lemma_iterator_t > & | res | ||
) |
References COperationMeterRML::AddPos(), RML_RE::error(), ErrorMessage(), get_wordforms(), m_LemmaToParadigm, m_PcreCharacterTables, m_pMeter, RML_RE::PartialMatch(), COperationMeterRML::SetInfo(), COperationMeterRML::SetMaxPos(), and Trim().
void MorphoWizard::find_ancodes | ( | const string & | ancode, |
vector< lemma_iterator_t > & | res | ||
) |
References COperationMeterRML::AddPos(), m_FlexiaModels, m_LemmaToParadigm, m_pMeter, COperationMeterRML::SetInfo(), and COperationMeterRML::SetMaxPos().
Referenced by find_lemm_by_grammem().
void MorphoWizard::find_lemm_by_prdno | ( | WORD | no, |
vector< lemma_iterator_t > & | res | ||
) |
References COperationMeterRML::AddPos(), m_LemmaToParadigm, m_pMeter, COperationMeterRML::SetInfo(), and COperationMeterRML::SetMaxPos().
Referenced by check_paradigm().
void MorphoWizard::find_lemm_by_accent_model | ( | int | no, |
vector< lemma_iterator_t > & | res | ||
) |
References COperationMeterRML::AddPos(), m_AccentModels, m_LemmaToParadigm, m_pMeter, COperationMeterRML::SetInfo(), COperationMeterRML::SetMaxPos(), and UnknownAccent.
void MorphoWizard::find_lemm_by_prd_info | ( | const CParadigmInfo & | info, |
vector< lemma_iterator_t > & | res | ||
) |
References COperationMeterRML::AddPos(), CParadigmInfo::IsAnyEqual(), m_LemmaToParadigm, m_pMeter, COperationMeterRML::SetInfo(), and COperationMeterRML::SetMaxPos().
string MorphoWizard::mrd_to_slf | ( | const string & | lemm, |
const CFlexiaModel & | p, | ||
WORD | AccentModelNo, | ||
BYTE | AuxAccent, | ||
int | line_size | ||
) | const |
References get_pos_string_and_grammems(), CFlexiaModel::m_Flexia, m_Language, RmlMakeLower(), and SetAccent().
Referenced by create_slf_from_predicted(), get_slf_string(), and show_differences_in_two_paradigms().
void MorphoWizard::slf_to_mrd | ( | const string & | s, |
string & | lemm, | ||
CFlexiaModel & | FlexiaModel, | ||
CAccentModel & | AccentModel, | ||
BYTE & | AuxAccent, | ||
int & | line_no_err | ||
) | const |
References ancode_less, is_lower_vowel(), CSlfLineByAncode::m_AccentByte, CAccentModel::m_Accents, CFlexiaModel::m_Flexia, CSlfLineByAncode::m_Form, m_Language, CSlfLineByAncode::m_Prefix, RmlMakeUpper(), slf2ancode(), Trim(), and UnknownAccent.
Referenced by add_lemma().
void MorphoWizard::check_paradigm | ( | long | line_no | ) |
References ErrorMessage(), find_lemm_by_prdno(), Format(), get_pos_string(), CFlexiaModel::m_Flexia, and m_FlexiaModels.
void MorphoWizard::remove_lemm | ( | lemma_iterator_t | it | ) |
References log(), m_FlexiaModels, and m_LemmaToParadigm.
Referenced by attach_form_prefixes_to_bases().
void MorphoWizard::predict_lemm | ( | const string & | lemm, |
const int | preffer_suf_len, | ||
int | minimal_frequence, | ||
bool | bOnlyMainPartOfSpeeches | ||
) |
References ErrorMessage(), CFlexiaModel::get_first_flex(), get_pos_string(), GetPredictionPartOfSpeech(), GetSuffix(), m_CurrentNewLemma, m_CurrentPredictedParadigms, CPredictSuffix::m_FlexiaModelNo, m_FlexiaModels, CPredictSuffix::m_Frequence, m_Language, m_PredictIndex, CPredictSuffix::m_PrefixSetStr, CPredictSuffix::m_SourceLemmaAncode, CPredictSuffix::m_Suffix, MaxPredictSuffixLength, MinPredictSuffixLength, and UnknownPartOfSpeech.
string MorphoWizard::get_slf_string | ( | lemma_iterator_t | it, |
string & | dict, | ||
string & | Prefixes, | ||
int | line_size = 79 |
||
) |
References get_grammem_string(), get_prefix_set(), CLemmaInfo::GetCommonAncodeIfCan(), CLemmaInfo::m_AccentModelNo, CParadigmInfo::m_AuxAccent, CLemmaInfo::m_FlexiaModelNo, m_FlexiaModels, and mrd_to_slf().
Referenced by attach_form_prefixes_to_bases().
void MorphoWizard::get_wordforms | ( | const_lemma_iterator_t | it, |
StringVector & | forms | ||
) | const |
References CFlexiaModel::m_Flexia, and m_FlexiaModels.
Referenced by find_wordforms().
string MorphoWizard::create_slf_from_predicted | ( | int | PredictParadigmNo, |
string & | dict, | ||
int | line_size = 79 |
||
) | const |
References CFlexiaModel::get_first_flex(), get_grammem_string(), m_CurrentNewLemma, m_CurrentPredictedParadigms, CPredictSuffix::m_FlexiaModelNo, m_FlexiaModels, CPredictSuffix::m_SourceCommonAncode, mrd_to_slf(), UnknownAccent, and UnknownAccentModelNo.
CParadigmInfo MorphoWizard::add_lemma | ( | const string & | slf, |
string | common_grammems, | ||
const string & | prefixes, | ||
int & | line_no_err, | ||
WORD | SessionNo = UnknownSessionNo |
||
) |
References AddAccentModel(), AddFlexiaModel(), AddPrefixSet(), Format(), GetCurrentSessionNo(), log(), m_bWasChanged, m_LemmaToParadigm, slf2ancode(), slf_to_mrd(), and UnknownSessionNo.
Referenced by attach_form_prefixes_to_bases().
void MorphoWizard::set_to_delete_false | ( | ) |
References m_LemmaToParadigm.
void MorphoWizard::delete_checked_lemms | ( | ) |
References m_bWasChanged, and m_LemmaToParadigm.
void MorphoWizard::clear_predicted_paradigms | ( | ) |
References m_CurrentPredictedParadigms.
bool MorphoWizard::change_prd_info | ( | CParadigmInfo & | I, |
const string & | Lemma, | ||
WORD | NewParadigmNo, | ||
WORD | newAccentModelNo, | ||
bool | keepOldAccents | ||
) |
References _GetReverseVowelNo(), AddAccentModel(), GetCurrentSessionNo(), CLemmaInfo::m_AccentModelNo, m_AccentModels, CAccentModel::m_Accents, CLemmaInfo::m_FlexiaModelNo, m_FlexiaModels, CParadigmInfo::m_SessionNo, UnknownAccent, UnknownAccentModelNo, and UnknownParadigmNo.
string MorphoWizard::show_differences_in_two_paradigms | ( | WORD | FlexiaModelNo1, |
WORD | FlexiaModelNo2 | ||
) | const |
References Format(), m_FlexiaModels, mrd_to_slf(), UnknownAccent, and UnknownAccentModelNo.
bool MorphoWizard::slf2ancode | ( | const string | slf_line, |
string & | gramcode | ||
) | const |
References CAgramtab::GetGramCodeByGrammemsAndPartofSpeechIfCan(), m_pGramTab, and CAgramtab::ProcessPOSAndGrammemsIfCan().
Referenced by add_lemma(), check_common_grammems(), and slf_to_mrd().
bool MorphoWizard::check_common_grammems | ( | string | common_grammems | ) | const |
References slf2ancode(), and Trim().
Referenced by ReadNextParadigmFromFile().
bool MorphoWizard::check_prefixes | ( | string | prefixes | ) | const |
References CheckLanguage(), m_Language, and Trim().
Referenced by ReadNextParadigmFromFile().
bool MorphoWizard::attach_form_prefixes_to_bases | ( | ) |
References add_lemma(), get_slf_string(), m_FlexiaModels, m_LemmaToParadigm, pack(), and remove_lemm().
Referenced by PrintAllForms().
bool MorphoWizard::prepare_for_RML | ( | ) |
References ConvertJO2Je(), m_FlexiaModels, m_Language, m_LemmaToParadigm, and morphRussian.
Referenced by PrintAllForms().
|
inline |
Referenced by pack(), ReadLemmas(), ReadPrefixSets(), and ReadSessions().
|
inline |
Referenced by pack(), ReadLemmas(), ReadPrefixSets(), and ReadSessions().
bool MorphoWizard::HasUnknownAccents | ( | lemma_iterator_t | it | ) | const |
References m_AccentModels, CAccentModel::m_Accents, UnknownAccent, and UnknownAccentModelNo.
bool MorphoWizard::IsPartialAccented | ( | lemma_iterator_t | it | ) | const |
References m_AccentModels, CAccentModel::m_Accents, UnknownAccent, and UnknownAccentModelNo.
BYTE MorphoWizard::GetLemmaAccent | ( | const_lemma_iterator_t | it | ) | const |
References m_AccentModels, m_Language, TransferReverseVowelNoToCharNo(), UnknownAccent, and UnknownAccentModelNo.
Referenced by find_lemm().
bool MorphoWizard::ReadNextParadigmFromFile | ( | FILE * | fp, |
CDumpParadigm & | P, | ||
int & | line_no, | ||
bool & | bError, | ||
string & | Errors | ||
) | const |
References check_common_grammems(), check_prefixes(), Format(), CDumpParadigm::m_PrefixesStr, CDumpParadigm::m_TypeGrammemsStr, and CDumpParadigm::ReadFromFile().
bool MorphoWizard::StartSession | ( | string | user_name | ) |
References GetCurrentDate(), log(), CMorphSession::m_LastSessionSave, m_SessionNo, m_Sessions, CMorphSession::m_SessionStart, and CMorphSession::m_UserName.
Referenced by load_wizard(), and StartLastSessionOfUser().
void MorphoWizard::EndSession | ( | ) |
References GetCurrentDate(), m_SessionNo, and m_Sessions.
Referenced by save_mrd(), and StartLastSessionOfUser().
string MorphoWizard::GetUserName | ( | ) | const |
References m_Sessions.
Referenced by log(), save_mrd(), and StartLastSessionOfUser().
void MorphoWizard::StartLastSessionOfUser | ( | string | user_name | ) |
References EndSession(), GetUserName(), m_SessionNo, m_Sessions, and StartSession().
WORD MorphoWizard::RegisterSession | ( | const CMorphSession & | S | ) |
References CMorphSession::IsEmpty(), m_Sessions, and UnknownSessionNo.
|
private |
References m_AccentModels, m_Language, TransferReverseVowelNoToCharNo(), UnknownAccent, and UnknownAccentModelNo.
Referenced by change_prd_info().
|
private |
References m_AccentModels, m_Language, TransferReverseVowelNoToCharNo(), UnknownAccent, and UnknownAccentModelNo.
Referenced by get_lemm_string_with_accents(), and mrd_to_slf().
|
private |
References m_PrefixSets.
Referenced by get_prefix_set(), and save_mrd().
|
private |
References is_upper_alpha(), m_Language, RmlMakeUpper(), and Trim().
Referenced by AddPrefixSet(), and ReadPrefixSets().
|
private |
References GetMeter(), HasMeter(), m_PrefixSets, MaxMrdLineLength, ReadOnePrefixSet(), CFileMeterRML::SetFilePos(), and COperationMeterRML::SetInfo().
Referenced by load_mrd().
|
private |
References m_PrefixSets, ReadOnePrefixSet(), Trim(), and UnknownPrefixSetNo.
Referenced by add_lemma().
|
friend |
|
private |
Referenced by add_lemma(), del_dup_lemm(), delete_checked_lemms(), pack(), and save_mrd().
|
private |
Referenced by load_gramtab().
|
private |
Referenced by load_gramtab().
|
private |
Referenced by load_gramtab().
|
private |
Referenced by CreatePredictIndex(), and predict_lemm().
|
private |
Referenced by load_wizard().
|
private |
Referenced by EndSession(), GetCurrentSessionNo(), StartLastSessionOfUser(), and StartSession().
|
private |
|
private |
AncodeLess MorphoWizard::ancode_less |
Referenced by load_gramtab(), and slf_to_mrd().
vector<CFlexiaModel> MorphoWizard::m_FlexiaModels |
Referenced by AddFlexiaModel(), attach_form_prefixes_to_bases(), change_prd_info(), check_paradigm(), create_slf_from_predicted(), CMorphDictBuilder::CreateAutomat(), CreatePredictIndex(), find_ancodes(), CMorphDictBuilder::GenerateUnitedFlexModels(), CMorphDictBuilder::GenPredictIdx(), get_all_lemma_grammems(), get_base_string(), get_grammem_string(), get_pos_string(), get_slf_string(), get_wordforms(), load_mrd(), pack(), predict_lemm(), prepare_for_RML(), PrintAllForms(), ReadLemmas(), remove_lemm(), save_mrd(), and show_differences_in_two_paradigms().
vector<CAccentModel> MorphoWizard::m_AccentModels |
vector<set<string> > MorphoWizard::m_PrefixSets |
LemmaMap MorphoWizard::m_LemmaToParadigm |
Referenced by add_lemma(), attach_form_prefixes_to_bases(), CMorphDictBuilder::CreateAutomat(), CreatePredictIndex(), del_dup_lemm(), delete_checked_lemms(), find_ancodes(), find_lemm(), find_lemm_by_accent_model(), find_lemm_by_prd_info(), find_lemm_by_prdno(), find_lemm_by_user(), find_wordforms(), CMorphDictBuilder::GenerateLemmas(), CMorphDictBuilder::GenPredictIdx(), pack(), prepare_for_RML(), PrintAllForms(), ReadLemmas(), remove_lemm(), save_mrd(), and set_to_delete_false().
map<string, string> MorphoWizard::m_ProjectFileKeys |
Referenced by get_lock_file_name(), get_log_file_name(), get_predict_src_file_path(), get_value(), load_gramtab(), load_mrd(), load_wizard(), and save_mrd().
string MorphoWizard::m_CurrentNewLemma |
Referenced by create_slf_from_predicted(), and predict_lemm().
vector< predict_container_t::const_iterator> MorphoWizard::m_CurrentPredictedParadigms |
Referenced by clear_predicted_paradigms(), create_slf_from_predicted(), and predict_lemm().
MorphLanguageEnum MorphoWizard::m_Language |
Referenced by _GetReverseVowelNo(), check_prefixes(), find_lemm(), CMorphDictBuilder::GenerateUnitedFlexModels(), get_lemm_string_with_accents(), GetLemmaAccent(), load_gramtab(), load_static(), load_wizard(), mrd_to_slf(), predict_lemm(), prepare_for_RML(), ReadOnePrefixSet(), SetAccent(), and slf_to_mrd().
vector<BYTE> MorphoWizard::m_PcreCharacterTables |
a table of character properties for regular expressions which depend on CConcIndexator::m_Language
Referenced by find_lemm(), find_wordforms(), load_static(), and load_wizard().
bool MorphoWizard::m_bLoaded |
Referenced by load_wizard(), and save_mrd().
const CAgramtab* MorphoWizard::m_pGramTab |
Referenced by find_lemm_by_grammem(), get_all_lemma_grammems(), get_common_grammems_string(), get_grammem_string(), get_pos_string(), MorphoWizard::AncodeLess::init(), load_gramtab(), load_static(), load_wizard(), MorphoWizard(), MorphoWizard::AncodeLess::operator()(), slf2ancode(), and ~MorphoWizard().
bool MorphoWizard::m_ReadOnly |
Referenced by load_mrd(), MakeReadOnly(), and MorphoWizard().
string MorphoWizard::m_LanguageStr |
Referenced by load_static(), and load_wizard().
string MorphoWizard::m_MrdPath |
Referenced by get_lock_file_name(), get_log_file_name(), get_predict_src_file_path(), load_mrd(), load_wizard(), and save_mrd().
bool MorphoWizard::m_bFullTrace |
Referenced by log(), and MorphoWizard().