Package org.apache.lucene.analysis.pt
Class RSLPStemmerBase.Step
java.lang.Object
org.apache.lucene.analysis.pt.RSLPStemmerBase.Step
- Enclosing class:
- RSLPStemmerBase
A step containing a list of rules.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionStep
(String name, RSLPStemmerBase.Rule[] rules, int min, String[] suffixes) Create a new step -
Method Summary
-
Field Details
-
name
-
rules
-
min
protected final int min -
suffixes
protected final char[][] suffixes
-
-
Constructor Details
-
Step
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.
-
-
Method Details
-
apply
public int apply(char[] s, int len) - Returns:
- new valid length of the string after applying the entire step.
-