Exemplo n.º 1
0
        protected void InitializeData()
        {
//            m_DelegateUpdateProgressBar = new DelegateUpdateProgressBar(this.UpdateProgressBar);

            m_bDBOpen = false;

            m_sDbPath = Properties.Settings.Default.DbPath;

            m_lexemeToTabs = new Dictionary <CLexemeManaged, ArrayList>();

            m_Dictionary = new CDictionaryManaged();
//            m_LexPreprocessor = new MainLib.ZalLexPreprocessor();
//            m_Analyzer = new MainLib.ZalAnalyzer();
//            m_TextAnalyzer = new TextAnalyzer(m_Analyzer);
            m_hashLexemes   = new Dictionary <LexemeDataPanel, CLexemeManaged>();
            m_listWordForms = new List <CWordFormManaged>();

            m_hashGender = new Dictionary <EM_Gender, string>();
            m_hashGender.Add(EM_Gender.GENDER_UNDEFINED, "Undefined");
            m_hashGender.Add(EM_Gender.GENDER_M, "M");
            m_hashGender.Add(EM_Gender.GENDER_F, "F");
            m_hashGender.Add(EM_Gender.GENDER_N, "N");

            m_hashNumber = new Dictionary <EM_Number, string>();
            m_hashNumber.Add(EM_Number.NUM_UNDEFINED, "Undefined");
            m_hashNumber.Add(EM_Number.NUM_SG, "Sg");
            m_hashNumber.Add(EM_Number.NUM_PL, "Pl");

            m_hashCase = new Dictionary <EM_Case, string>();
            m_hashCase.Add(EM_Case.CASE_UNDEFINED, "Undefined");
            m_hashCase.Add(EM_Case.CASE_NOM, "N");
            m_hashCase.Add(EM_Case.CASE_ACC, "A");
            m_hashCase.Add(EM_Case.CASE_GEN, "G");
            m_hashCase.Add(EM_Case.CASE_PART, "G2");
            m_hashCase.Add(EM_Case.CASE_LOC, "P2");
            m_hashCase.Add(EM_Case.CASE_DAT, "D");
            m_hashCase.Add(EM_Case.CASE_INST, "I");
            m_hashCase.Add(EM_Case.CASE_PREP, "P");

            m_hashPerson = new Dictionary <EM_Person, string>();
            m_hashPerson.Add(EM_Person.PERSON_UNDEFINED, "Undefined");
            m_hashPerson.Add(EM_Person.PERSON_1, "1");
            m_hashPerson.Add(EM_Person.PERSON_2, "2");
            m_hashPerson.Add(EM_Person.PERSON_3, "3");

            m_hashAccent = new Dictionary <EM_AccentType, string>();
            m_hashAccent.Add(EM_AccentType.AT_UNDEFINED, "Undefined");
            m_hashAccent.Add(EM_AccentType.AT_A, "a");
            m_hashAccent.Add(EM_AccentType.AT_A1, "a'");
            m_hashAccent.Add(EM_AccentType.AT_B, "b");
            m_hashAccent.Add(EM_AccentType.AT_B1, "b'");
            m_hashAccent.Add(EM_AccentType.AT_C, "c");
            m_hashAccent.Add(EM_AccentType.AT_C1, "c'");
            m_hashAccent.Add(EM_AccentType.AT_C2, "c''");
            m_hashAccent.Add(EM_AccentType.AT_D, "d");
            m_hashAccent.Add(EM_AccentType.AT_D1, "d'");
            m_hashAccent.Add(EM_AccentType.AT_E, "e");
            m_hashAccent.Add(EM_AccentType.AT_F, "f");
            m_hashAccent.Add(EM_AccentType.AT_F1, "f'");
            m_hashAccent.Add(EM_AccentType.AT_F2, "f''");
        }   //  InitializeData()
Exemplo n.º 2
0
        protected void InitializeData()
        {
            //            m_DelegateUpdateProgressBar = new DelegateUpdateProgressBar(this.UpdateProgressBar);

            m_bDBOpen = false;

            m_sDbPath = Properties.Settings.Default.DbPath;

            m_lexemeToTabs = new Dictionary<CLexemeManaged, ArrayList>();

            m_Dictionary = new CDictionaryManaged();
            //            m_LexPreprocessor = new MainLib.ZalLexPreprocessor();
            //            m_Analyzer = new MainLib.ZalAnalyzer();
            //            m_TextAnalyzer = new TextAnalyzer(m_Analyzer);
            m_hashLexemes = new Dictionary<LexemeDataPanel, CLexemeManaged>();
            m_listWordForms = new List<CWordFormManaged>();

            m_hashGender = new Dictionary<EM_Gender, string>();
            m_hashGender.Add(EM_Gender.GENDER_UNDEFINED, "Undefined");
            m_hashGender.Add(EM_Gender.GENDER_M, "M");
            m_hashGender.Add(EM_Gender.GENDER_F, "F");
            m_hashGender.Add(EM_Gender.GENDER_N, "N");

            m_hashNumber = new Dictionary<EM_Number, string>();
            m_hashNumber.Add(EM_Number.NUM_UNDEFINED, "Undefined");
            m_hashNumber.Add(EM_Number.NUM_SG, "Sg");
            m_hashNumber.Add(EM_Number.NUM_PL, "Pl");

            m_hashCase = new Dictionary<EM_Case, string>();
            m_hashCase.Add(EM_Case.CASE_UNDEFINED, "Undefined");
            m_hashCase.Add(EM_Case.CASE_NOM, "N");
            m_hashCase.Add(EM_Case.CASE_ACC, "A");
            m_hashCase.Add(EM_Case.CASE_GEN, "G");
            m_hashCase.Add(EM_Case.CASE_PART, "G2");
            m_hashCase.Add(EM_Case.CASE_LOC, "P2");
            m_hashCase.Add(EM_Case.CASE_DAT, "D");
            m_hashCase.Add(EM_Case.CASE_INST, "I");
            m_hashCase.Add(EM_Case.CASE_PREP, "P");

            m_hashPerson = new Dictionary<EM_Person, string>();
            m_hashPerson.Add(EM_Person.PERSON_UNDEFINED, "Undefined");
            m_hashPerson.Add(EM_Person.PERSON_1, "1");
            m_hashPerson.Add(EM_Person.PERSON_2, "2");
            m_hashPerson.Add(EM_Person.PERSON_3, "3");

            m_hashAccent = new Dictionary<EM_AccentType, string>();
            m_hashAccent.Add(EM_AccentType.AT_UNDEFINED, "Undefined");
            m_hashAccent.Add(EM_AccentType.AT_A, "a");
            m_hashAccent.Add(EM_AccentType.AT_A1, "a'");
            m_hashAccent.Add(EM_AccentType.AT_B, "b");
            m_hashAccent.Add(EM_AccentType.AT_B1, "b'");
            m_hashAccent.Add(EM_AccentType.AT_C, "c");
            m_hashAccent.Add(EM_AccentType.AT_C1, "c'");
            m_hashAccent.Add(EM_AccentType.AT_C2, "c''");
            m_hashAccent.Add(EM_AccentType.AT_D, "d");
            m_hashAccent.Add(EM_AccentType.AT_D1, "d'");
            m_hashAccent.Add(EM_AccentType.AT_E, "e");
            m_hashAccent.Add(EM_AccentType.AT_F, "f");
            m_hashAccent.Add(EM_AccentType.AT_F1, "f'");
            m_hashAccent.Add(EM_AccentType.AT_F2, "f''");
        }