Class SnowballProgram
This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS
Inheritance
Inherited Members
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Serializable]
public abstract class SnowballProgram
Constructors
Name | Description |
---|---|
SnowballProgram() |
Fields
Name | Description |
---|---|
m_bra | |
m_current | |
m_cursor | |
m_ket | |
m_limit | |
m_limit_backward |
Properties
Name | Description |
---|---|
Current | Get the current string. |
CurrentBuffer | Get the current buffer containing the stem. NOTE: this may be a reference to a different character array than the one originally provided with setCurrent, in the exceptional case that stemming produced a longer intermediate or result string. It is necessary to use CurrentBufferLength to determine the valid length of the returned buffer. For example, many words are stemmed simply by subtracting from the length to remove suffixes. |
CurrentBufferLength | Get the valid length of the character array in CurrentBuffer |
Methods
Name | Description |
---|---|
AssignTo(StringBuilder) | |
CopyFrom(SnowballProgram) | |
Eq_S(Int32, String) | |
Eq_S_B(Int32, String) | |
Eq_V(String) | |
Eq_V_B(String) | |
FindAmong(Among[], Int32) | |
FindAmongB(Among[], Int32) | |
InGrouping(Char[], Int32, Int32) | |
InGroupingB(Char[], Int32, Int32) | |
InRange(Int32, Int32) | |
InRangeB(Int32, Int32) | |
Insert(Int32, Int32, String) | |
OutGrouping(Char[], Int32, Int32) | |
OutGroupingB(Char[], Int32, Int32) | |
OutRange(Int32, Int32) | |
OutRangeB(Int32, Int32) | |
ReplaceS(Int32, Int32, String) | to replace chars between |
SetCurrent(Char[], Int32) | Set the current string. |
SetCurrent(String) | Set the current string. |
SliceCheck() | |
SliceDel() | |
SliceFrom(String) | |
SliceTo(StringBuilder) | Copy the slice into the supplied System.Text.StringBuilder |
Stem() |