PHP 클래스 TextAnalysis\Stemmers\SnowballStemmer

저자: yooper
상속: implements TextAnalysis\Interfaces\IStemmer
파일 보기 프로젝트 열기: yooper/php-text-analysis 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$exceptions array A lookup table for manually setting stems on words
$lang the language specific stemmer to use

공개 메소드들

메소드 설명
__construct ( string $lang = 'english', array $exceptions = [] ) Initialize the snowball stemmer
__destruct ( )
stem ( string $token ) : string

메소드 상세

__construct() 공개 메소드

Initialize the snowball stemmer
public __construct ( string $lang = 'english', array $exceptions = [] )
$lang string
$exceptions array

__destruct() 공개 메소드

public __destruct ( )

stem() 공개 메소드

public stem ( string $token ) : string
$token string
리턴 string

프로퍼티 상세

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

A lookup table for manually setting stems on words
protected array $exceptions
리턴 array

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

the language specific stemmer to use
protected $lang