Package org.apache.lucene.analysis.pt
Class RSLPStemmerBase.Step
- java.lang.Object
-
- org.apache.lucene.analysis.pt.RSLPStemmerBase.Step
-
- Enclosing class:
- RSLPStemmerBase
protected static class RSLPStemmerBase.Step extends java.lang.Object
A step containing a list of rules.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
min
protected java.lang.String
name
protected RSLPStemmerBase.Rule[]
rules
protected char[][]
suffixes
-
Constructor Summary
Constructors Constructor Description Step(java.lang.String name, RSLPStemmerBase.Rule[] rules, int min, java.lang.String[] suffixes)
Create a new step
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
apply(char[] s, int len)
-
-
-
Field Detail
-
name
protected final java.lang.String name
-
rules
protected final RSLPStemmerBase.Rule[] rules
-
min
protected final int min
-
suffixes
protected final char[][] suffixes
-
-
Constructor Detail
-
Step
public Step(java.lang.String name, RSLPStemmerBase.Rule[] rules, int min, java.lang.String[] suffixes)
Create a new step- Parameters:
name
- Step's name.rules
- an ordered list of rules.min
- minimum word size. if this is 0 it is automatically calculated.suffixes
- optional list of conditional suffixes. may be null.
-
-