PHP 클래스 Sastrawi\Stemmer\Stemmer

Nazief & Adriani, CS Stemmer, ECS Stemmer, Improved ECS.
상속: implements Sastrawi\Stemmer\StemmerInterface
파일 보기 프로젝트 열기: sastrawi/sastrawi

보호된 프로퍼티들

프로퍼티 타입 설명
$dictionary Sastrawi\Dictionary\DictionaryInterface The dictionary containing root words
$visitorProvider Sastrawi\Stemmer\Context\Visitor\VisitorProvider Visitor provider

공개 메소드들

메소드 설명
__construct ( Sastrawi\Dictionary\DictionaryInterface $dictionary )
getDictionary ( ) : Sastrawi\Dictionary\DictionaryInterface
stem ( string $text ) : string Stem a text string to its common stem form.

보호된 메소드들

메소드 설명
isPlural ( string $word ) : boolean
stemPluralWord ( string $plural ) : string Stem a plural word to its common stem form.
stemSingularWord ( string $word ) : string Stem a singular word to its common stem form.
stemWord ( string $word ) : string Stem a word to its common stem form.

메소드 상세

__construct() 공개 메소드

public __construct ( Sastrawi\Dictionary\DictionaryInterface $dictionary )
$dictionary Sastrawi\Dictionary\DictionaryInterface

getDictionary() 공개 메소드

public getDictionary ( ) : Sastrawi\Dictionary\DictionaryInterface
리턴 Sastrawi\Dictionary\DictionaryInterface

isPlural() 보호된 메소드

protected isPlural ( string $word ) : boolean
$word string
리턴 boolean

stem() 공개 메소드

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
리턴 string common stem form, e.g : daya bangun

stemPluralWord() 보호된 메소드

Asian J. (2007) “Effective Techniques for Indonesian Text Retrieval” page 76-77.
protected stemPluralWord ( string $plural ) : string
$plural string the word to stem, e.g : bersama-sama
리턴 string common stem form, e.g : sama

stemSingularWord() 보호된 메소드

Stem a singular word to its common stem form.
protected stemSingularWord ( string $word ) : string
$word string the word to stem, e.g : mengalahkan
리턴 string common stem form, e.g : kalah

stemWord() 보호된 메소드

Stem a word to its common stem form.
protected stemWord ( string $word ) : string
$word string the word to stem, e.g : memberdayakan
리턴 string common stem form, e.g : daya

프로퍼티 상세

$dictionary 보호되어 있는 프로퍼티

The dictionary containing root words
protected DictionaryInterface,Sastrawi\Dictionary $dictionary
리턴 Sastrawi\Dictionary\DictionaryInterface

$visitorProvider 보호되어 있는 프로퍼티

Visitor provider
protected VisitorProvider,Sastrawi\Stemmer\Context\Visitor $visitorProvider
리턴 Sastrawi\Stemmer\Context\Visitor\VisitorProvider