Ejemplo n.º 1
0
        /// <summary>
        /// Creates instance of MrdTree.
        /// </summary>
        /// <param name="mrdDictionary">An instance of mrdDictionary for that this Tree will be constructed.</param>
        /// <exception cref="System.NullReferenceException">Thrown then a mrdDictionary is null.</exception>
        public MrdTree(MrdDictionary mrdDictionary)
        {
            if (mrdDictionary == null)
            {
                throw new NullReferenceException("mrdDictionary");
            }

            Root = new Leaf();
            OriginalDictionary = mrdDictionary;
            PrefixCache        = new Cache <int, string[]>(GetPrefixes);
        }
Ejemplo n.º 2
0
 public SearchInfo(MrdDictionary mrdDictionary, string fullWord)
 {
     Result             = new List <FullLemmaInfo>();
     FullWord           = fullWord;
     OriginalDictionary = mrdDictionary;
 }