ddc
|
#include "wizard.h"
#include "../CommonLib/util_classes.h"
#include "../AgramtabLib/EngGramTab.h"
#include "../AgramtabLib/RusGramTab.h"
#include "../AgramtabLib/GerGramTab.h"
#include "../PCRE/pcre_rml.h"
Classes | |
struct | CSlfLineByAncode |
struct | CSlfLineByAncodeLess |
Functions | |
string | GetCurrentDate () |
string | GetFullPathByName (string FileName) |
static void | CreateLockFile (const string &LockFileName) |
void | ReadFlexiaModels (FILE *fp, vector< CFlexiaModel > &FlexiaModels) |
void | WriteFlexiaModels (FILE *out_fp, const vector< CFlexiaModel > &FlexiaModels) |
void | ReadAccentModels (FILE *fp, vector< CAccentModel > &AccentModels) |
void | WriteAccentModels (FILE *out_fp, const vector< CAccentModel > &AccentModels) |
static void | ReadLemmas (FILE *fp, MorphoWizard &W) |
bool | IsLessBySession (const lemma_iterator_t &it1, const lemma_iterator_t &it2) |
bool | simple_match (const string &pattern, const string &word) |
BYTE | TransferReverseVowelNoToCharNo (const string &form, BYTE AccentCharNo, MorphLanguageEnum Language) |
WORD | AddAccentModel (MorphoWizard &C, const CAccentModel &AccentModel) |
WORD | AddFlexiaModel (MorphoWizard &C, const CFlexiaModel &FlexiaModel) |
string | GetSuffix (const string &Lemma, int PrefferedLength) |
bool | IsLessByLemmaLength (const CPredictSuffix &_X1, const CPredictSuffix &_X2) |
bool | PrintAllForms (const char *MrdFile, string OutFile) |
Variables | |
const char * | AnyCommonAncode = " " |
const char | FlexModelCommDelim [] = "q//q" |
const size_t | MaxMrdLineLength = 10240 |
const char | TypeGrmField [] = "$type_grm" |
const char | PrefixesField [] = "$prefixes" |
const char | SessionField [] = "$session" |
string GetCurrentDate | ( | ) |
Referenced by CreateLockFile(), MorphoWizard::EndSession(), MorphoWizard::log(), and MorphoWizard::StartSession().
string GetFullPathByName | ( | string | FileName | ) |
References GetPathByFile().
Referenced by MorphoWizard::load_wizard().
|
static |
References GetCurrentDate(), and GetRegistryString().
Referenced by MorphoWizard::load_mrd().
void ReadFlexiaModels | ( | FILE * | fp, |
vector< CFlexiaModel > & | FlexiaModels | ||
) |
References MaxMrdLineLength, CFlexiaModel::ReadFromString(), and Trim().
Referenced by CLemmaInfo::GetCommonAncodeIfCan(), CMorphDict::Load(), and MorphoWizard::load_mrd().
void WriteFlexiaModels | ( | FILE * | out_fp, |
const vector< CFlexiaModel > & | FlexiaModels | ||
) |
Referenced by CLemmaInfo::GetCommonAncodeIfCan(), CMorphDict::Save(), and MorphoWizard::save_mrd().
void ReadAccentModels | ( | FILE * | fp, |
vector< CAccentModel > & | AccentModels | ||
) |
References MaxMrdLineLength, and CAccentModel::ReadFromString().
Referenced by CLemmaInfo::GetCommonAncodeIfCan(), CMorphDict::Load(), and MorphoWizard::load_mrd().
void WriteAccentModels | ( | FILE * | out_fp, |
const vector< CAccentModel > & | AccentModels | ||
) |
Referenced by CLemmaInfo::GetCommonAncodeIfCan(), CMorphDict::Save(), and MorphoWizard::save_mrd().
|
static |
References MorphoWizard::GetMeter(), MorphoWizard::HasMeter(), MorphoWizard::m_FlexiaModels, MorphoWizard::m_LemmaToParadigm, MaxMrdLineLength, CFileMeterRML::SetFilePos(), COperationMeterRML::SetInfo(), UnknownAccent, and UnknownPrefixSetNo.
Referenced by MorphoWizard::load_mrd().
bool IsLessBySession | ( | const lemma_iterator_t & | it1, |
const lemma_iterator_t & | it2 | ||
) |
bool simple_match | ( | const string & | pattern, |
const string & | word | ||
) |
BYTE TransferReverseVowelNoToCharNo | ( | const string & | form, |
BYTE | AccentCharNo, | ||
MorphLanguageEnum | Language | ||
) |
References is_lower_vowel(), is_upper_vowel(), and UnknownAccent.
Referenced by MorphoWizard::_GetReverseVowelNo(), CFormInfo::GetAccentedVowel(), MorphoWizard::GetLemmaAccent(), and MorphoWizard::SetAccent().
WORD AddAccentModel | ( | MorphoWizard & | C, |
const CAccentModel & | AccentModel | ||
) |
References MorphoWizard::m_AccentModels, CAccentModel::m_Accents, and UnknownAccentModelNo.
Referenced by MorphoWizard::add_lemma(), and MorphoWizard::change_prd_info().
WORD AddFlexiaModel | ( | MorphoWizard & | C, |
const CFlexiaModel & | FlexiaModel | ||
) |
References MorphoWizard::m_FlexiaModels.
Referenced by MorphoWizard::add_lemma().
|
inline |
Referenced by MorphoWizard::CreatePredictIndex(), and MorphoWizard::predict_lemm().
bool IsLessByLemmaLength | ( | const CPredictSuffix & | _X1, |
const CPredictSuffix & | _X2 | ||
) |
References CPredictSuffix::m_SourceLemma.
Referenced by MorphoWizard::CreatePredictIndex().
bool PrintAllForms | ( | const char * | MrdFile, |
string | OutFile | ||
) |
References MorphoWizard::attach_form_prefixes_to_bases(), MorphoWizard::get_base_string(), MorphoWizard::get_lemm_string_with_accents(), MorphoWizard::load_wizard(), CFlexiaModel::m_Flexia, MorphoWizard::m_FlexiaModels, MorphoWizard::m_LemmaToParadigm, and MorphoWizard::prepare_for_RML().
const char* AnyCommonAncode = " " |
Referenced by CParadigmInfo::AnyParadigmInfo(), and CParadigmInfo::IsAnyEqual().
const char FlexModelCommDelim[] = "q//q" |
Referenced by CFlexiaModel::ReadFromString(), and CFlexiaModel::ToString().
const size_t MaxMrdLineLength = 10240 |
const char TypeGrmField[] = "$type_grm" |
Referenced by CDumpParadigm::ReadFromFile(), and CDumpParadigm::SaveHeaderToFile().
const char PrefixesField[] = "$prefixes" |
Referenced by CDumpParadigm::ReadFromFile(), and CDumpParadigm::SaveHeaderToFile().
const char SessionField[] = "$session" |
Referenced by CDumpParadigm::ReadFromFile(), and CDumpParadigm::SaveHeaderToFile().