NlpTools API
Class

NlpTools\Stemmers\GreekStemmer

class GreekStemmer extends Stemmer

This stemmer is an implementation of the stemmer described by G.

Ntais
in his Master Thesis.
http://people.dsv.su.se/~hercules/papers/Ntais_greek_stemmer_thesis_final.pdf

It was first ported to php by P. Kyriakakis.
This stemmer expects lower case characters and not upper case.

Methods

string stem($w)

Remove the suffix from $word

array stemAll(array $tokens)

Apply the stemmer to every single token.

from Stemmer
mixed transform($word)

Return the value transformed.

from Stemmer

Details

at line 60
public string stem($w)

Remove the suffix from $word

Parameters

$w

Return Value

string

in Stemmer at line 25
public array stemAll(array $tokens)

Apply the stemmer to every single token.

Parameters

array $tokens

Return Value

array

in Stemmer at line 34
public mixed transform($word)

Return the value transformed.

Parameters

$word

Return Value

mixed