Example #1
0
        protected override DictionaryIndex <string> CreateIndex(string[][] corpus)
        {
            var index = new DictionaryIndex <string>(rareWordThreshold: 3);

            IndexHelper.BuildIndex(index, corpus);
            return(index);
        }
        public static DictionaryIndex <string> CreateDictionaryIndex(string[][] corpus)
        {
            var index = new DictionaryIndex <string>(rareWordThreshold: 3);

            IndexHelper.BuildIndex(index, corpus);
            return(index);
        }
        protected override Index CreateIndex(string[][] corpus)
        {
            var index = new Index();

            IndexHelper.BuildIndex(index, corpus);
            return(index);
        }
Example #4
0
        protected override DawgSearchableIndex CreateIndex(string[][] corpus)
        {
            var buildableIndex = new DawgBuildableIndex();

            IndexHelper.BuildIndex(buildableIndex, corpus);
            return(buildableIndex.Build());
        }