/// <summary> /// Creates a new <see cref="NorwegianLightStemFilter"/> </summary> /// <param name="input"> the source <see cref="TokenStream"/> to filter </param> /// <param name="flags"> set to <see cref="NorwegianStandard.BOKMAAL"/>, /// <see cref="NorwegianStandard.NYNORSK"/>, or both. </param> public NorwegianLightStemFilter(TokenStream input, NorwegianStandard flags) : base(input) { stemmer = new NorwegianLightStemmer(flags); termAtt = AddAttribute <ICharTermAttribute>(); keywordAttr = AddAttribute <IKeywordAttribute>(); }
/// <summary> /// Creates a new NorwegianLightStemFilter </summary> /// <param name="flags"> set to <seealso cref="NorwegianLightStemmer#BOKMAAL"/>, /// <seealso cref="NorwegianLightStemmer#NYNORSK"/>, or both. </param> public NorwegianLightStemFilter(TokenStream input, int flags) : base(input) { stemmer = new NorwegianLightStemmer(flags); termAtt = AddAttribute<ICharTermAttribute>(); keywordAttr = AddAttribute<IKeywordAttribute>(); }