Click or drag to resize
Accord.NET (logo)

StemmerBase Class

Base class for Snowball's stemmer algorithms.
Inheritance Hierarchy
SystemObject
  Accord.MachineLearning.Text.StemmersStemmerBase
    More...

Namespace:  Accord.MachineLearning.Text.Stemmers
Assembly:  Accord.Text (in Accord.Text.dll) Version: 3.8.0
Syntax
public abstract class StemmerBase
Request Example View Source

The StemmerBase type exposes the following members.

Constructors
  NameDescription
Protected methodStemmerBase
Initializes a new instance of the StemmerBase class.
Top
Properties
  NameDescription
Public propertyBuffer
Gets the current processing buffer.
Public propertyCurrent
Gets or sets the current word to be stemmed or the stemmed word, if the stemmer has been proccessed.
Top
Methods
  NameDescription
Protected methodassign_to
Replaces the contents of the bracket with the string s.
Protected methodeq_s
Determines if the current buffer contains the string s, starting from the current position and going forward.
Protected methodeq_s_b(String)
Determines if the current buffer contains the string s, starting from the current position and going backwards.
Protected methodeq_s_b(StringBuilder)
Determines if the current buffer contains the string s, starting from the current position and going backwards.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodfind_among
Searches if the current buffer matches against one of the amongs, starting from the current cursor position and going forward.
Protected methodfind_among_b
Searches if the current buffer matches against one of the amongs, starting from the current cursor position and going backwards.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodin_grouping
Determines whether the current character is inside a given group of characters s.
Protected methodin_grouping_b
Determines whether the current character is inside a given group of characters s.
Protected methodinsert(Int32, Int32, String)
Replaces the contents of the bracket with the string s.
Protected methodinsert(Int32, Int32, StringBuilder)
Replaces the contents of the bracket with the string s.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodout_grouping
Determines whether the current character is outside a given group of characters s.
Protected methodout_grouping_b
Determines whether the current character is outside a given group of characters s.
Protected methodProcess
Calls the stemmer to process the next word.
Public methodStatic memberReplace
Replaces a specific region of the buffer with another text.
Protected methodreplace_s
Replaces the characters between c_bra and c_ket by the characters in s.
Protected methodslice_check
Checks if a slicing can be done.
Protected methodslice_del
Removes the current bracket contents.
Protected methodslice_from
Replaces the contents of the bracket with the string s.
Protected methodslice_to
Replaces the contents of the bracket with the string s.
Public methodStem
Stems the buffer's contents.
Public methodStem(String)
Stems a given word.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected fieldbra
Starting bracket position.
Protected fieldcurrent
Gets the current string.
Protected fieldcursor
Current cursor position.
Protected fieldket
Ending bracked position.
Protected fieldlimit
Forward limit for inspecting the buffer.
Protected fieldlimit_backward
Backward limit for inspecting the buffer.
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodTo(Type)Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
See Also
Inheritance Hierarchy
SystemObject
  Accord.MachineLearning.Text.StemmersStemmerBase
    Accord.MachineLearning.Text.StemmersDanishStemmer
    Accord.MachineLearning.Text.StemmersDutchStemmer
    Accord.MachineLearning.Text.StemmersEnglishStemmer
    Accord.MachineLearning.Text.StemmersFinnishStemmer
    Accord.MachineLearning.Text.StemmersFrenchStemmer
    Accord.MachineLearning.Text.StemmersGerman2Stemmer
    Accord.MachineLearning.Text.StemmersGermanStemmer
    Accord.MachineLearning.Text.StemmersHungarianStemmer
    Accord.MachineLearning.Text.StemmersItalianStemmer
    Accord.MachineLearning.Text.StemmersKraaijPohlmannStemmer
    Accord.MachineLearning.Text.StemmersLovinsStemmer
    Accord.MachineLearning.Text.StemmersNorwegianStemmer
    Accord.MachineLearning.Text.StemmersPorterStemmer
    Accord.MachineLearning.Text.StemmersPortugueseStemmer
    Accord.MachineLearning.Text.StemmersRomanianStemmer
    Accord.MachineLearning.Text.StemmersRussianStemmer
    Accord.MachineLearning.Text.StemmersSpanishStemmer
    Accord.MachineLearning.Text.StemmersSwedishStemmer
    Accord.MachineLearning.Text.StemmersTurkishStemmer