/usr/include/CLucene/analysis/de/GermanStemFilter.h is in libclucene-dev 2.3.3.4+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | /*------------------------------------------------------------------------------
* Copyright (C) 2003-2010 Ben van Klinken and the CLucene Team
*
* Distributable under the terms of either the Apache License (Version 2.0) or
* the GNU Lesser General Public License, as specified in the COPYING file.
------------------------------------------------------------------------------*/
#ifndef _lucene_analysis_de_GermanStemFilter
#define _lucene_analysis_de_GermanStemFilter
CL_NS_DEF2(analysis,de)
/**
* A filter that stems German words. It supports a table of words that should
* not be stemmed at all. The stemmer used can be changed at runtime after the
* filter object is created (as long as it is a GermanStemmer).
*/
class CLUCENE_CONTRIBS_EXPORT GermanStemFilter : public CL_NS(analysis)::TokenFilter
{
private:
/**
* The actual token in the input stream.
*/
CL_NS(analysis)::Token* token;
GermanStemmer* stemmer;
CL_NS(analysis)::CLTCSetList* exclusionSet;
public:
GermanStemFilter(TokenStream* in, bool deleteTS = false);
/**
* Builds a GermanStemFilter that uses an exclusiontable.
*/
GermanStemFilter(TokenStream* in, bool deleteTS, CL_NS(analysis)::CLTCSetList* exclusionSet);
/**
* @return Returns the next token in the stream, or null at EOS
*/
virtual Token* next(Token* t);
/**
* Set a alternative/custom GermanStemmer for this filter.
*/
void setStemmer(GermanStemmer* stemmer);
/**
* Set an alternative exclusion list for this filter.
*/
void setExclusionSet(CL_NS(analysis)::CLTCSetList* exclusionSet);
};
CL_NS_END2
#endif
|