public void StructureData() { foreach (var line in this.data) { var words = parser.FindWords(line, out int[] whitespaces); this.text.AddNewLine(words, whitespaces); } }
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); }