Inheritance: NuGet.Indexing.DotTokenizer
Exemple #1
0
        static void TestTokenization(string s)
        {
            TokenStream tokenStream = new TestTokenizer(new StringReader(s));

            ITermAttribute termAttribute = tokenStream.AddAttribute <ITermAttribute>();

            while (tokenStream.IncrementToken())
            {
                Console.WriteLine(termAttribute.Term);
            }
        }
Exemple #2
0
        static void TestTokenization(string s)
        {
            TokenStream tokenStream = new TestTokenizer(new StringReader(s));

            ITermAttribute termAttribute = tokenStream.AddAttribute<ITermAttribute>();

            while (tokenStream.IncrementToken())
            {
                Console.WriteLine(termAttribute.Term);
            }
        }