Click or drag to resize

EnglishPorter2Stemmer Class

imbSCI | imbACE | imbNLP | imbWEM | imbWBI

[This is preliminary documentation and is subject to change.]

Based off of the improved Porter2 algorithm: http://snowball.tartarus.org/algorithms/english/stemmer.html
Inheritance Hierarchy
SystemObject
  imbNLP.Toolkit.Stemmers.Porter2StemmerEnglishPorter2Stemmer

Namespace:  imbNLP.Toolkit.Stemmers.Porter2Stemmer
Assembly:  imbNLP.Toolkit (in imbNLP.Toolkit.dll) Version: 0.2.16
Syntax
C#
public class EnglishPorter2Stemmer : IPorter2Stemmer, 
	IStemmer

The EnglishPorter2Stemmer type exposes the following members.

Constructors
  NameDescription
Public methodEnglishPorter2Stemmer
Initializes a new instance of the EnglishPorter2Stemmer class
Top
Properties
Methods
  NameDescription
Public methodEndsInShortSyllable
Define a short syllable in a word as either (a) a vowel followed by a non-vowel other than w, x or Y and preceded by a non-vowel, or * (b) a vowel at the beginning of the word followed by a non-vowel.
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.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRegion1
R1 is the region after the first non-vowel following a vowel, or the end of the word if there is no such non-vowel.
Public methodGetRegion2
R2 is the region after the first non-vowel following a vowel in R1, or the end of the word if there is no such non-vowel.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsShortWord
A word is called short if it ends in a short syllable, and if R1 is null.
Public methodMarkYsAsConsonants
Set initial y, or y after a vowel, to Y
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStem
Creates stemmed work -- without suffix/preffixes
Public methodStep0RemoveSPluralSuffix
Public methodStep1ARemoveOtherSPluralSuffixes
Public methodStep1BRemoveLySuffixes
Public methodStep1CReplaceSuffixYWithIIfPreceededWithConsonant
Public methodStep2ReplaceSuffixes
Public methodStep3ReplaceSuffixes
Public methodStep4RemoveSomeSuffixesInR2
Public methodStep5RemoveEorLSuffixes
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also