ddc
Classes | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
MorphoWizard Class Reference

#include <wizard.h>

Collaboration diagram for MorphoWizard:
Collaboration graph
[legend]

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 CMorphSessionget_session (int SessionNo) const
 
bool IsGerman () const
 
const StringVectorget_poses ()
 
const StringVectorget_grammems ()
 
const StringVectorget_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
 
MorphWizardMeterGetMeter ()
 
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< CFlexiaModelm_FlexiaModels
 
vector< CAccentModelm_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< BYTEm_PcreCharacterTables
 a table of character properties for regular expressions which depend on CConcIndexator::m_Language More...
 
bool m_bLoaded
 
const CAgramtabm_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< CMorphSessionm_Sessions
 
MorphWizardMeterm_pMeter
 

Friends

class MorphWizardMeter
 

Constructor & Destructor Documentation

◆ MorphoWizard()

MorphoWizard::MorphoWizard ( )

◆ ~MorphoWizard()

MorphoWizard::~MorphoWizard ( )

References m_pGramTab, and MakeReadOnly().

Here is the call graph for this function:

Member Function Documentation

◆ load_gramtab()

void MorphoWizard::load_gramtab ( )
private

◆ ReadSessions()

void MorphoWizard::ReadSessions ( FILE *  fp)
private

References Format(), GetMeter(), HasMeter(), m_Sessions, MaxMrdLineLength, CMorphSession::ReadFromString(), and CFileMeterRML::SetFilePos().

Referenced by load_mrd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ load_wizard()

bool MorphoWizard::load_wizard ( const char *  path,
const char *  user_name,
bool  bCreatePrediction = true 
)

◆ load_mrd()

void MorphoWizard::load_mrd ( bool  guest,
bool  bCreatePrediction 
)

◆ load_static()

bool MorphoWizard::load_static ( MorphLanguageEnum  langua)

References GetStringByLanguage(), load_gramtab(), m_Language, m_LanguageStr, m_PcreCharacterTables, m_pGramTab, and RmlPcreMakeTables().

Here is the call graph for this function:

◆ load_string_vector()

void MorphoWizard::load_string_vector ( const string &  name,
StringVector res 
)

References get_value().

Referenced by load_wizard().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_value()

string & MorphoWizard::get_value ( const string &  key)

References m_ProjectFileKeys.

Referenced by load_string_vector(), and load_wizard().

Here is the caller graph for this function:

◆ log() [1/2]

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ log() [2/2]

void MorphoWizard::log ( const string &  lemm,
const CFlexiaModel p,
bool  is_added 
)

References log(), m_bFullTrace, and CFlexiaModel::ToString().

Here is the call graph for this function:

◆ is_changed()

bool MorphoWizard::is_changed ( )
inline

◆ save_mrd()

void MorphoWizard::save_mrd ( )

◆ get_lock_file_name()

string MorphoWizard::get_lock_file_name ( ) const

References m_MrdPath, and m_ProjectFileKeys.

Referenced by load_mrd(), and MakeReadOnly().

Here is the caller graph for this function:

◆ get_log_file_name()

string MorphoWizard::get_log_file_name ( ) const

References m_MrdPath, and m_ProjectFileKeys.

Referenced by log().

Here is the caller graph for this function:

◆ get_predict_src_file_path()

string MorphoWizard::get_predict_src_file_path ( int  mode) const

References GetPathByFile(), m_MrdPath, and m_ProjectFileKeys.

Here is the call graph for this function:

◆ MakeReadOnly()

void MorphoWizard::MakeReadOnly ( )

References get_lock_file_name(), and m_ReadOnly.

Referenced by ~MorphoWizard().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreatePredictIndex()

void MorphoWizard::CreatePredictIndex ( )

◆ pack()

void MorphoWizard::pack ( )

◆ GetCurrentSessionNo()

WORD MorphoWizard::GetCurrentSessionNo ( ) const

References m_SessionNo, and m_Sessions.

Referenced by add_lemma(), and change_prd_info().

Here is the caller graph for this function:

◆ del_dup_lemm()

size_t MorphoWizard::del_dup_lemm ( )

References m_bWasChanged, and m_LemmaToParadigm.

Referenced by pack().

Here is the caller graph for this function:

◆ get_pos_string() [1/2]

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().

Here is the caller graph for this function:

◆ get_pos_string() [2/2]

string MorphoWizard::get_pos_string ( const string &  code) const

References CAgramtab::GetPartOfSpeech(), CAgramtab::GetPartOfSpeechStr(), and m_pGramTab.

Here is the call graph for this function:

◆ get_lemm_string()

string MorphoWizard::get_lemm_string ( const_lemma_iterator_t  it) const

Referenced by CMorphDictBuilder::CreateAutomat().

Here is the caller graph for this function:

◆ get_lemm_string_with_accents()

string MorphoWizard::get_lemm_string_with_accents ( const_lemma_iterator_t  it) const

References m_Language, RmlMakeLower(), and SetAccent().

Referenced by PrintAllForms().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_base_string()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_grammem_string() [1/2]

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_grammem_string() [2/2]

string MorphoWizard::get_grammem_string ( lemma_iterator_t  it) const

References get_grammem_string(), and m_FlexiaModels.

Here is the call graph for this function:

◆ get_all_lemma_grammems()

QWORD MorphoWizard::get_all_lemma_grammems ( const_lemma_iterator_t  it) const

References CAgramtab::GetAllGrammems(), m_FlexiaModels, and m_pGramTab.

Here is the call graph for this function:

◆ get_common_grammems_string()

string MorphoWizard::get_common_grammems_string ( const_lemma_iterator_t  it) const

References CAgramtab::GetGrammems(), CAgramtab::GrammemsToStr(), and m_pGramTab.

Here is the call graph for this function:

◆ get_prefix_set()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_pos_string_and_grammems()

string MorphoWizard::get_pos_string_and_grammems ( const string &  code) const

References get_grammem_string(), and get_pos_string().

Referenced by mrd_to_slf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_session()

const CMorphSession & MorphoWizard::get_session ( int  SessionNo) const

References m_Sessions.

◆ IsGerman()

bool MorphoWizard::IsGerman ( ) const
inline

References morphGerman.

◆ get_poses()

const StringVector& MorphoWizard::get_poses ( )
inline

◆ get_grammems()

const StringVector& MorphoWizard::get_grammems ( )
inline

◆ get_type_grammems()

const StringVector& MorphoWizard::get_type_grammems ( )
inline

References UnknownSessionNo.

◆ find_lemm_by_grammem()

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().

Here is the call graph for this function:

◆ find_lemm()

void MorphoWizard::find_lemm ( string  lemm,
bool  bCheckLemmaPrefix,
vector< lemma_iterator_t > &  res 
)

◆ find_lemm_by_user()

void MorphoWizard::find_lemm_by_user ( string  username,
vector< lemma_iterator_t > &  res 
)

References IsLessBySession(), m_LemmaToParadigm, and m_Sessions.

Here is the call graph for this function:

◆ find_wordforms()

void MorphoWizard::find_wordforms ( string  lemm,
vector< lemma_iterator_t > &  res 
)

◆ find_ancodes()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ find_lemm_by_prdno()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ find_lemm_by_accent_model()

void MorphoWizard::find_lemm_by_accent_model ( int  no,
vector< lemma_iterator_t > &  res 
)

◆ find_lemm_by_prd_info()

void MorphoWizard::find_lemm_by_prd_info ( const CParadigmInfo info,
vector< lemma_iterator_t > &  res 
)

◆ mrd_to_slf()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ slf_to_mrd()

void MorphoWizard::slf_to_mrd ( const string &  s,
string &  lemm,
CFlexiaModel FlexiaModel,
CAccentModel AccentModel,
BYTE AuxAccent,
int &  line_no_err 
) const

◆ check_paradigm()

void MorphoWizard::check_paradigm ( long  line_no)

References ErrorMessage(), find_lemm_by_prdno(), Format(), get_pos_string(), CFlexiaModel::m_Flexia, and m_FlexiaModels.

Here is the call graph for this function:

◆ remove_lemm()

void MorphoWizard::remove_lemm ( lemma_iterator_t  it)

References log(), m_FlexiaModels, and m_LemmaToParadigm.

Referenced by attach_form_prefixes_to_bases().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ predict_lemm()

void MorphoWizard::predict_lemm ( const string &  lemm,
const int  preffer_suf_len,
int  minimal_frequence,
bool  bOnlyMainPartOfSpeeches 
)

◆ get_slf_string()

string MorphoWizard::get_slf_string ( lemma_iterator_t  it,
string &  dict,
string &  Prefixes,
int  line_size = 79 
)

◆ get_wordforms()

void MorphoWizard::get_wordforms ( const_lemma_iterator_t  it,
StringVector forms 
) const

References CFlexiaModel::m_Flexia, and m_FlexiaModels.

Referenced by find_wordforms().

Here is the caller graph for this function:

◆ create_slf_from_predicted()

string MorphoWizard::create_slf_from_predicted ( int  PredictParadigmNo,
string &  dict,
int  line_size = 79 
) const

◆ add_lemma()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_to_delete_false()

void MorphoWizard::set_to_delete_false ( )

References m_LemmaToParadigm.

◆ delete_checked_lemms()

void MorphoWizard::delete_checked_lemms ( )

References m_bWasChanged, and m_LemmaToParadigm.

◆ clear_predicted_paradigms()

void MorphoWizard::clear_predicted_paradigms ( )

◆ change_prd_info()

bool MorphoWizard::change_prd_info ( CParadigmInfo I,
const string &  Lemma,
WORD  NewParadigmNo,
WORD  newAccentModelNo,
bool  keepOldAccents 
)

◆ show_differences_in_two_paradigms()

string MorphoWizard::show_differences_in_two_paradigms ( WORD  FlexiaModelNo1,
WORD  FlexiaModelNo2 
) const

References Format(), m_FlexiaModels, mrd_to_slf(), UnknownAccent, and UnknownAccentModelNo.

Here is the call graph for this function:

◆ slf2ancode()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_common_grammems()

bool MorphoWizard::check_common_grammems ( string  common_grammems) const

References slf2ancode(), and Trim().

Referenced by ReadNextParadigmFromFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_prefixes()

bool MorphoWizard::check_prefixes ( string  prefixes) const

References CheckLanguage(), m_Language, and Trim().

Referenced by ReadNextParadigmFromFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ attach_form_prefixes_to_bases()

bool MorphoWizard::attach_form_prefixes_to_bases ( )

References add_lemma(), get_slf_string(), m_FlexiaModels, m_LemmaToParadigm, pack(), and remove_lemm().

Referenced by PrintAllForms().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ prepare_for_RML()

bool MorphoWizard::prepare_for_RML ( )

References ConvertJO2Je(), m_FlexiaModels, m_Language, m_LemmaToParadigm, and morphRussian.

Referenced by PrintAllForms().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HasMeter()

bool MorphoWizard::HasMeter ( ) const
inline

Referenced by pack(), ReadLemmas(), ReadPrefixSets(), and ReadSessions().

Here is the caller graph for this function:

◆ GetMeter()

MorphWizardMeter* MorphoWizard::GetMeter ( )
inline

Referenced by pack(), ReadLemmas(), ReadPrefixSets(), and ReadSessions().

Here is the caller graph for this function:

◆ HasUnknownAccents()

bool MorphoWizard::HasUnknownAccents ( lemma_iterator_t  it) const

◆ IsPartialAccented()

bool MorphoWizard::IsPartialAccented ( lemma_iterator_t  it) const

◆ GetLemmaAccent()

BYTE MorphoWizard::GetLemmaAccent ( const_lemma_iterator_t  it) const

References m_AccentModels, m_Language, TransferReverseVowelNoToCharNo(), UnknownAccent, and UnknownAccentModelNo.

Referenced by find_lemm().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadNextParadigmFromFile()

bool MorphoWizard::ReadNextParadigmFromFile ( FILE *  fp,
CDumpParadigm P,
int &  line_no,
bool &  bError,
string &  Errors 
) const

◆ StartSession()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EndSession()

void MorphoWizard::EndSession ( )

References GetCurrentDate(), m_SessionNo, and m_Sessions.

Referenced by save_mrd(), and StartLastSessionOfUser().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetUserName()

string MorphoWizard::GetUserName ( ) const

References m_Sessions.

Referenced by log(), save_mrd(), and StartLastSessionOfUser().

Here is the caller graph for this function:

◆ StartLastSessionOfUser()

void MorphoWizard::StartLastSessionOfUser ( string  user_name)

References EndSession(), GetUserName(), m_SessionNo, m_Sessions, and StartSession().

Here is the call graph for this function:

◆ RegisterSession()

WORD MorphoWizard::RegisterSession ( const CMorphSession S)

References CMorphSession::IsEmpty(), m_Sessions, and UnknownSessionNo.

Here is the call graph for this function:

◆ _GetReverseVowelNo()

BYTE MorphoWizard::_GetReverseVowelNo ( const string &  form,
WORD  accentModelNo,
WORD  formInd 
) const
private

References m_AccentModels, m_Language, TransferReverseVowelNoToCharNo(), UnknownAccent, and UnknownAccentModelNo.

Referenced by change_prd_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetAccent()

void MorphoWizard::SetAccent ( WORD  AccentModelNo,
BYTE  AuxAccent,
int  FormNo,
string &  form 
) const
private

References m_AccentModels, m_Language, TransferReverseVowelNoToCharNo(), UnknownAccent, and UnknownAccentModelNo.

Referenced by get_lemm_string_with_accents(), and mrd_to_slf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_prefix_set_str()

string MorphoWizard::get_prefix_set_str ( WORD  PrefixSetNo) const
private

References m_PrefixSets.

Referenced by get_prefix_set(), and save_mrd().

Here is the caller graph for this function:

◆ ReadOnePrefixSet()

void MorphoWizard::ReadOnePrefixSet ( string  PrefixSet,
set< string > &  Result 
) const
private

References is_upper_alpha(), m_Language, RmlMakeUpper(), and Trim().

Referenced by AddPrefixSet(), and ReadPrefixSets().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadPrefixSets()

void MorphoWizard::ReadPrefixSets ( FILE *  fp)
private

References GetMeter(), HasMeter(), m_PrefixSets, MaxMrdLineLength, ReadOnePrefixSet(), CFileMeterRML::SetFilePos(), and COperationMeterRML::SetInfo().

Referenced by load_mrd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddPrefixSet()

WORD MorphoWizard::AddPrefixSet ( string  PrefixSetStr)
private

References m_PrefixSets, ReadOnePrefixSet(), Trim(), and UnknownPrefixSetNo.

Referenced by add_lemma().

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ MorphWizardMeter

friend class MorphWizardMeter
friend

Member Data Documentation

◆ m_bWasChanged

bool MorphoWizard::m_bWasChanged
private

◆ m_PosesList

StringVector MorphoWizard::m_PosesList
private

Referenced by load_gramtab().

◆ m_GrammemsList

StringVector MorphoWizard::m_GrammemsList
private

Referenced by load_gramtab().

◆ m_TypeGrammemsList

StringVector MorphoWizard::m_TypeGrammemsList
private

Referenced by load_gramtab().

◆ m_PredictIndex

predict_container_t MorphoWizard::m_PredictIndex[MaxPredictSuffixLength-MinPredictSuffixLength+1]
private

Referenced by CreatePredictIndex(), and predict_lemm().

◆ m_Users

StringVector MorphoWizard::m_Users
private

Referenced by load_wizard().

◆ m_SessionNo

size_t MorphoWizard::m_SessionNo
private

◆ m_Sessions

vector<CMorphSession> MorphoWizard::m_Sessions
private

◆ m_pMeter

MorphWizardMeter* MorphoWizard::m_pMeter
private

◆ ancode_less

AncodeLess MorphoWizard::ancode_less

Referenced by load_gramtab(), and slf_to_mrd().

◆ m_FlexiaModels

vector<CFlexiaModel> MorphoWizard::m_FlexiaModels

◆ m_AccentModels

vector<CAccentModel> MorphoWizard::m_AccentModels

◆ m_PrefixSets

vector<set<string> > MorphoWizard::m_PrefixSets

◆ m_LemmaToParadigm

LemmaMap MorphoWizard::m_LemmaToParadigm

◆ m_ProjectFileKeys

map<string, string> MorphoWizard::m_ProjectFileKeys

◆ m_CurrentNewLemma

string MorphoWizard::m_CurrentNewLemma

◆ m_CurrentPredictedParadigms

vector< predict_container_t::const_iterator> MorphoWizard::m_CurrentPredictedParadigms

◆ m_Language

MorphLanguageEnum MorphoWizard::m_Language

◆ m_PcreCharacterTables

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().

◆ m_bLoaded

bool MorphoWizard::m_bLoaded

Referenced by load_wizard(), and save_mrd().

◆ m_pGramTab

const CAgramtab* MorphoWizard::m_pGramTab

◆ m_ReadOnly

bool MorphoWizard::m_ReadOnly

◆ m_LanguageStr

string MorphoWizard::m_LanguageStr

Referenced by load_static(), and load_wizard().

◆ m_MrdPath

string MorphoWizard::m_MrdPath

◆ m_bFullTrace

bool MorphoWizard::m_bFullTrace

Referenced by log(), and MorphoWizard().


The documentation for this class was generated from the following files: