PHP Class Sastrawi\Stemmer\Stemmer
Nazief & Adriani, CS Stemmer, ECS Stemmer, Improved ECS.
ファイルを表示
Open project: sastrawi/sastrawi
Protected Properties
Property |
Type |
Description |
|
$dictionary |
Sastrawi\Dictionary\DictionaryInterface |
The dictionary containing root words |
|
$visitorProvider |
Sastrawi\Stemmer\Context\Visitor\VisitorProvider |
Visitor provider |
|
Public Methods
Method |
Description |
|
__construct ( Sastrawi\Dictionary\DictionaryInterface $dictionary ) |
|
|
getDictionary ( ) : Sastrawi\Dictionary\DictionaryInterface |
|
|
stem ( string $text ) : string |
Stem a text string to its common stem form. |
|
Protected Methods
Method Details
__construct()
public method
public __construct ( Sastrawi\Dictionary\DictionaryInterface $dictionary ) |
$dictionary |
Sastrawi\Dictionary\DictionaryInterface |
|
getDictionary()
public method
public getDictionary ( ) : Sastrawi\Dictionary\DictionaryInterface |
return |
Sastrawi\Dictionary\DictionaryInterface |
|
isPlural()
protected method
Stem a text string to its common stem form.
public stem ( string $text ) : string |
$text |
string |
the text string to stem, e.g : memberdayakan pembangunan |
return |
string |
common stem form, e.g : daya bangun |
stemPluralWord()
protected method
Asian J. (2007) “Effective Techniques for Indonesian Text Retrieval” page 76-77.
stemSingularWord()
protected method
Stem a singular word to its common stem form.
stemWord()
protected method
Stem a word to its common stem form.
Property Details
$dictionary protected_oe property
The dictionary containing root words
protected DictionaryInterface,Sastrawi\Dictionary $dictionary |
return |
Sastrawi\Dictionary\DictionaryInterface |
|
$visitorProvider protected_oe property
protected VisitorProvider,Sastrawi\Stemmer\Context\Visitor $visitorProvider |
return |
Sastrawi\Stemmer\Context\Visitor\VisitorProvider |
|