Exemplo n.º 1
0
        public void stemm(string word, Action <PutTypes, string> onPutWord)
        {
            if (stemmer == null && item != null)
            {
                stemmer = item.getStemmer();
            }
            if (stemmer == null)
            {
                onPutWord(PutTypes.put, word); return;
            }
            StemSink sink = new StemSink(onPutWord);

            stemmer.GenerateWordForms(word, word.Length, sink);
        }
Exemplo n.º 2
0
        static void stemm(IStemmer stemmer, string word, Action <PutTypes, string> onPutWord)
        {
            StemSink sink = new StemSink(onPutWord);

            stemmer.GenerateWordForms(word, word.Length, sink);
        }