예제 #1
0
 public void StructureData()
 {
     foreach (var line in this.data)
     {
         var words = parser.FindWords(line, out int[] whitespaces);
         this.text.AddNewLine(words, whitespaces);
     }
 }
예제 #2
0
        public void StructureData()
        {
            var           words = parser.FindWords(this.data, out int[] whitespaces);
            VPTree <Word> tree  = new VPTree <Word>();

            tree.Create(words, analyzer);
            this.dictionary = new StaticWordDictionary(tree, this.analyzer);
        }