Ejemplo n.º 1
0
        public LexModel(MystemLex mysteamLex)
        {
            SourceLex = mysteamLex;

            Lexeme = SourceLex.Lex.ToLower();
            Weight = SourceLex.Wt;

            var group1 = SourceLex.Gr.Split('=');

            GramPart = GetGramPart(group1[0].Split(',')[0]);

            /*GramPart = group1[0].Split(',')[0];
             *
             * if (GramPart.IsNoun)
             * {
             *  GramGender = group1[0];
             *  GramAnim = group1[0];
             * }else if (GramPart.IsVerb)
             * {
             *  GramVerbTense = group1[0];
             *  GramVerbSpecies = group1[0];
             *
             *  if (group1.Length > 0)
             *  {
             *      GramVerbTense = group1[1];
             *      GrammCount = group1[1];
             *      GramVerbPers = group1[1];
             *  }
             * }*/
        }
Ejemplo n.º 2
0
 public Word(string text, string initialForm, GramPartsEnum gramPart)
 {
     GramPart    = gramPart;
     InitialForm = initialForm;
     Text        = text;
 }