Classes | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends

MorphoWizard Class Reference

#include <wizard.h>

Collaboration diagram for MorphoWizard:
Collaboration graph
[legend]

List of all members.

Classes

Public Member Functions

Public Attributes

Private Member Functions

Private Attributes

Friends


Constructor & Destructor Documentation

MorphoWizard::MorphoWizard (  ) 
MorphoWizard::~MorphoWizard (  ) 

References m_pGramTab, and MakeReadOnly().

Here is the call graph for this function:


Member Function Documentation

void MorphoWizard::load_gramtab (  )  [private]
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:

bool MorphoWizard::load_wizard ( const char *  path,
const char *  user_name,
bool  bCreatePrediction = true 
)
void MorphoWizard::load_mrd ( bool  guest,
bool  bCreatePrediction 
)
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:

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:

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:

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:

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:

bool MorphoWizard::is_changed (  )  [inline]

References m_bWasChanged.

void MorphoWizard::save_mrd (  ) 
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:

string MorphoWizard::get_log_file_name (  )  const

References m_MrdPath, and m_ProjectFileKeys.

Referenced by log().

Here is the caller graph for this function:

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:

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:

void MorphoWizard::CreatePredictIndex (  ) 
void MorphoWizard::pack (  ) 
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:

size_t MorphoWizard::del_dup_lemm (  ) 

References m_bWasChanged, and m_LemmaToParadigm.

Referenced by pack().

Here is the caller graph for this function:

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:

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:

string MorphoWizard::get_lemm_string ( const_lemma_iterator_t  it  )  const

Referenced by CMorphDictBuilder::CreateAutomat().

Here is the caller graph for this function:

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:

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:

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:

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:

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:

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:

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:

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:

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

References m_Sessions.

bool MorphoWizard::IsGerman (  )  const [inline]

References m_Language.

const StringVector& MorphoWizard::get_poses (  )  [inline]

References m_PosesList.

const StringVector& MorphoWizard::get_grammems (  )  [inline]

References m_GrammemsList.

const StringVector& MorphoWizard::get_type_grammems (  )  [inline]

References m_TypeGrammemsList.

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:

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

References m_LemmaToParadigm, and m_Sessions.

void MorphoWizard::find_wordforms ( string  lemm,
vector< lemma_iterator_t > &  res 
)
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:

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:

void MorphoWizard::find_lemm_by_accent_model ( int  no,
vector< lemma_iterator_t > &  res 
)
void MorphoWizard::find_lemm_by_prd_info ( const CParadigmInfo info,
vector< lemma_iterator_t > &  res 
)
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:

void MorphoWizard::slf_to_mrd ( const string &  s,
string &  lemm,
CFlexiaModel FlexiaModel,
CAccentModel AccentModel,
BYTE AuxAccent,
int &  line_no_err 
) const
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:

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:

void MorphoWizard::predict_lemm ( const string &  lemm,
const int  preffer_suf_len,
int  minimal_frequence,
bool  bOnlyMainPartOfSpeeches 
)
string MorphoWizard::get_slf_string ( lemma_iterator_t  it,
string &  dict,
string &  Prefixes,
int  line_size = 79 
)
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:

string MorphoWizard::create_slf_from_predicted ( int  PredictParadigmNo,
string &  dict,
int  line_size = 79 
) const
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:

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 (  ) 
bool MorphoWizard::change_prd_info ( CParadigmInfo I,
const string &  Lemma,
WORD  NewParadigmNo,
WORD  newAccentModelNo,
bool  keepOldAccents 
)
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:

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:

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:

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:

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:

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:

bool MorphoWizard::HasMeter (  )  const [inline]

References m_pMeter.

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

Here is the caller graph for this function:

MorphWizardMeter* MorphoWizard::GetMeter (  )  [inline]

References m_pMeter.

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

Here is the caller graph for this function:

bool MorphoWizard::HasUnknownAccents ( lemma_iterator_t  it  )  const
bool MorphoWizard::IsPartialAccented ( lemma_iterator_t  it  )  const
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:

bool MorphoWizard::ReadNextParadigmFromFile ( FILE *  fp,
CDumpParadigm P,
int &  line_no,
bool &  bError,
string &  Errors 
) const
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:

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:

string MorphoWizard::GetUserName (  )  const

References m_Sessions.

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

Here is the caller graph for this function:

void MorphoWizard::StartLastSessionOfUser ( string  user_name  ) 

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

Here is the call graph for this function:

WORD MorphoWizard::RegisterSession ( const CMorphSession S  ) 

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

Here is the call graph for this function:

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:

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:

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:

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:

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:

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

friend class MorphWizardMeter [friend]

Member Data Documentation

Referenced by get_poses(), and load_gramtab().

Referenced by get_grammems(), and load_gramtab().

Referenced by get_type_grammems(), and load_gramtab().

Referenced by CreatePredictIndex(), and predict_lemm().

Referenced by load_wizard().

size_t MorphoWizard::m_SessionNo [private]

Referenced by load_gramtab(), and slf_to_mrd().

vector<set<string> > MorphoWizard::m_PrefixSets
map<string, string> MorphoWizard::m_ProjectFileKeys
vector< predict_container_t::const_iterator> MorphoWizard::m_CurrentPredictedParadigms

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

Referenced by load_wizard(), and save_mrd().

Referenced by load_static(), and load_wizard().

Referenced by log(), and MorphoWizard().


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