Example #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);
        }
Example #2
0
 public SearchInfo(MrdDictionary mrdDictionary, string fullWord)
 {
     Result             = new List <FullLemmaInfo>();
     FullWord           = fullWord;
     OriginalDictionary = mrdDictionary;
 }