ddc
|
#include <Paradigm.h>
Public Member Functions | |
CFormInfo () | |
void | Create (const CLemmatizer *pParent, const CAutomAnnotationInner &A, const string &InputWordForm, bool bFound) |
void | CopyFrom (const CFormInfo &from) |
void | AttachLemmatizer (const CLemmatizer *parent) |
bool | SetParadigmId (DWORD newVal) |
DWORD | GetParadigmId () const |
DWORD | GetCount () const |
string | GetSrcNorm () const |
int | GetHomonymWeightWithForm (WORD pos) const |
int | GetWordWeight () const |
string | GetAncode (WORD pos) const |
string | GetWordForm (WORD pos) const |
string | GetSrcAncode () const |
int | GetHomonymWeight () const |
BYTE | GetAccentedVowel (WORD pos) const |
BYTE | GetSrcAccentedVowel () const |
string | GetCommonAncode () const |
char | GetLemSign () const |
size_t | GetLemmaPrefixLength () const |
string | FormatAsInPlmLine () const |
void | SetUserPrefix (const string &UserPrefix) |
void | SetUserUnknown () |
Public Attributes | |
const CLemmatizer * | m_pParent |
string | m_InputWordBase |
bool | m_bFound |
Private Member Functions | |
const CLemmaInfoAndLemma & | GetLemmaInfo () const |
const CFlexiaModel & | GetFlexiaModel () const |
bool | IsValid () const |
Private Attributes | |
bool | m_bPrefixesWereCut |
bool | m_bFlexiaWasCut |
string | m_UserPrefix |
CAutomAnnotationInner | m_InnerAnnot |
CFormInfo::CFormInfo | ( | ) |
References m_bFound, m_InnerAnnot, CAutomAnnotationInner::m_LemmaInfoNo, and m_pParent.
|
private |
References m_InnerAnnot, CAutomAnnotationInner::m_LemmaInfoNo, CMorphDict::m_LemmaInfos, and m_pParent.
Referenced by GetAccentedVowel(), GetCommonAncode(), GetFlexiaModel(), GetSrcAncode(), and GetSrcNorm().
|
private |
References GetLemmaInfo(), CLemmaInfo::m_FlexiaModelNo, CMorphDict::m_FlexiaModels, CLemmaInfoAndLemma::m_LemmaInfo, and m_pParent.
Referenced by Create(), GetAncode(), GetCount(), GetSrcAncode(), GetSrcNorm(), GetWordForm(), and SetParadigmId().
|
private |
References m_InnerAnnot, CAutomAnnotationInner::m_LemmaInfoNo, and m_pParent.
Referenced by GetAccentedVowel(), GetAncode(), GetCommonAncode(), GetCount(), GetHomonymWeight(), GetHomonymWeightWithForm(), GetLemmaPrefixLength(), GetParadigmId(), GetSrcAncode(), GetSrcNorm(), GetWordForm(), and GetWordWeight().
void CFormInfo::Create | ( | const CLemmatizer * | pParent, |
const CAutomAnnotationInner & | A, | ||
const string & | InputWordForm, | ||
bool | bFound | ||
) |
References GetFlexiaModel(), m_bFlexiaWasCut, m_bFound, m_bPrefixesWereCut, CFlexiaModel::m_Flexia, CMorphForm::m_FlexiaStr, m_InnerAnnot, m_InputWordBase, CAutomAnnotationInner::m_ItemNo, m_pParent, CMorphDict::m_Prefixes, CAutomAnnotationInner::m_PrefixNo, and CMorphForm::m_PrefixStr.
Referenced by CLemmatizer::CreateParadigmCollection().
void CFormInfo::CopyFrom | ( | const CFormInfo & | from | ) |
References m_bFlexiaWasCut, m_bFound, m_bPrefixesWereCut, m_InnerAnnot, m_InputWordBase, m_pParent, and m_UserPrefix.
void CFormInfo::AttachLemmatizer | ( | const CLemmatizer * | parent | ) |
References m_pParent.
bool CFormInfo::SetParadigmId | ( | DWORD | newVal | ) |
References CFlexiaModel::get_first_flex(), CStatistic::get_HomoWeight(), GetFlexiaModel(), CAutomAnnotationInner::GetParadigmId(), GetSrcNorm(), CLemmatizer::GetStatistic(), m_bFlexiaWasCut, m_bFound, m_bPrefixesWereCut, m_InnerAnnot, m_InputWordBase, CAutomAnnotationInner::m_ItemNo, CAutomAnnotationInner::m_LemmaInfoNo, CMorphDict::m_LemmaInfos, CAutomAnnotationInner::m_ModelNo, CAutomAnnotationInner::m_nWeight, m_pParent, CMorphDict::m_Prefixes, CAutomAnnotationInner::m_PrefixNo, and CAutomAnnotationInner::SplitParadigmId().
DWORD CFormInfo::GetParadigmId | ( | ) | const |
References ErrorParadigmId, CAutomAnnotationInner::GetParadigmId(), IsValid(), m_bFound, and m_InnerAnnot.
Referenced by FormatAsInPlmLine(), GetHomonymWeightWithForm(), and GetWordWeight().
DWORD CFormInfo::GetCount | ( | ) | const |
References GetFlexiaModel(), IsValid(), and CFlexiaModel::m_Flexia.
Referenced by TxMorph::expand(), GetParadigmFromDictionary(), and GetWordForms().
string CFormInfo::GetSrcNorm | ( | ) | const |
References CFlexiaModel::get_first_flex(), GetFlexiaModel(), GetLemmaInfo(), IsValid(), CMorphDict::m_Bases, CLemmaInfoAndLemma::m_LemmaStrNo, and m_pParent.
Referenced by GetStringByParadigm(), and SetParadigmId().
int CFormInfo::GetHomonymWeightWithForm | ( | WORD | pos | ) | const |
References CStatistic::get_HomoWeight(), GetParadigmId(), CLemmatizer::GetStatistic(), IsValid(), and m_pParent.
int CFormInfo::GetWordWeight | ( | ) | const |
References CStatistic::get_WordWeight(), GetParadigmId(), CLemmatizer::GetStatistic(), IsValid(), and m_pParent.
string CFormInfo::GetAncode | ( | WORD | pos | ) | const |
References GetFlexiaModel(), IsValid(), and CFlexiaModel::m_Flexia.
Referenced by GetParadigmFromDictionary(), and GetStringByParadigm().
string CFormInfo::GetWordForm | ( | WORD | pos | ) | const |
References GetFlexiaModel(), IsValid(), m_bFlexiaWasCut, m_bPrefixesWereCut, CFlexiaModel::m_Flexia, CMorphForm::m_FlexiaStr, m_InnerAnnot, m_InputWordBase, m_pParent, CMorphDict::m_Prefixes, CAutomAnnotationInner::m_PrefixNo, CMorphForm::m_PrefixStr, and m_UserPrefix.
Referenced by TxMorph::expand(), FormatAsInPlmLine(), GetAccentedVowel(), GetParadigmFromDictionary(), GetStringByParadigm(), and GetWordForms().
string CFormInfo::GetSrcAncode | ( | ) | const |
References GetFlexiaModel(), GetLemmaInfo(), IsValid(), CFlexiaModel::m_Flexia, m_InnerAnnot, and CAutomAnnotationInner::m_ItemNo.
Referenced by FormatAsInPlmLine(), and GetStringByParadigm().
int CFormInfo::GetHomonymWeight | ( | ) | const |
References IsValid(), m_bFound, m_InnerAnnot, and CAutomAnnotationInner::m_nWeight.
Referenced by FormatAsInPlmLine().
References CLemmatizer::GetLanguage(), GetLemmaInfo(), GetWordForm(), IsValid(), CLemmaInfo::m_AccentModelNo, CMorphDict::m_AccentModels, m_bFound, CLemmaInfoAndLemma::m_LemmaInfo, m_pParent, RmlMakeLower(), TransferReverseVowelNoToCharNo(), UnknownAccent, and UnknownAccentModelNo.
Referenced by GetParadigmFromDictionary(), and GetSrcAccentedVowel().
BYTE CFormInfo::GetSrcAccentedVowel | ( | ) | const |
References GetAccentedVowel(), m_InnerAnnot, and CAutomAnnotationInner::m_ItemNo.
string CFormInfo::GetCommonAncode | ( | ) | const |
References CLemmaInfo::GetCommonAncodeIfCan(), GetLemmaInfo(), IsValid(), and CLemmaInfoAndLemma::m_LemmaInfo.
Referenced by FormatAsInPlmLine(), and GetStringByParadigm().
char CFormInfo::GetLemSign | ( | ) | const |
size_t CFormInfo::GetLemmaPrefixLength | ( | ) | const |
References IsValid(), m_bFound, m_InnerAnnot, m_pParent, CMorphDict::m_Prefixes, and CAutomAnnotationInner::m_PrefixNo.
string CFormInfo::FormatAsInPlmLine | ( | ) | const |
References Format(), GetCommonAncode(), GetHomonymWeight(), GetLemSign(), GetParadigmId(), GetSrcAncode(), GetWordForm(), and m_bFound.
void CFormInfo::SetUserPrefix | ( | const string & | UserPrefix | ) |
References m_UserPrefix.
Referenced by CreateDecartProduction().
void CFormInfo::SetUserUnknown | ( | ) |
References m_bFound.
|
private |
Referenced by CopyFrom(), Create(), GetWordForm(), and SetParadigmId().
|
private |
Referenced by CopyFrom(), Create(), GetWordForm(), and SetParadigmId().
|
private |
Referenced by CopyFrom(), GetWordForm(), and SetUserPrefix().
|
private |
const CLemmatizer* CFormInfo::m_pParent |
string CFormInfo::m_InputWordBase |
Referenced by CopyFrom(), Create(), GetWordForm(), and SetParadigmId().
bool CFormInfo::m_bFound |