PHP 클래스 TextAnalysis\Models\Wordnet\Lemma

저자: dcardin
상속: use trait TextAnalysis\Traits\WordnetPointerSymbolMap
파일 보기 프로젝트 열기: yooper/php-text-analysis

보호된 프로퍼티들

프로퍼티 타입 설명
$pCnt Number of different pointers that lemma has in all synsets containing it.
$synsetCnt Number of synsets that lemma is in. This is the number of senses of the word in WordNet. See Sense Numbers below for a discussion of how sense numbers are assigned and the order of synset_offset s in the index files.
$synsetOffsets Byte offset in data.pos file of a synset containing lemma . Each synset_offset in the list corresponds to a different sense of lemma in WordNet. synset_offset is an 8 digit, zero-filled decimal integer t hat can be used with fseek(3) to read a synset from the data file
$synsets Synset[]
$word

공개 메소드들

메소드 설명
__construct ( string $word, string $pos, integer $synsetCnt, integer $pCnt, array $ptrSymbols, array $synsetOffsets )
getPCnt ( ) : integer
getPtrSymbols ( ) : string[]
getSynsetCnt ( ) : integer
getSynsetOffsets ( ) : int[]
getSynsets ( ) : Synset[] Get the synsets for this lemma
getWord ( ) : string
setSynsets ( array $synsets ) : Lemma

메소드 상세

__construct() 공개 메소드

public __construct ( string $word, string $pos, integer $synsetCnt, integer $pCnt, array $ptrSymbols, array $synsetOffsets )
$word string
$pos string
$synsetCnt integer
$pCnt integer
$ptrSymbols array
$synsetOffsets array

getPCnt() 공개 메소드

public getPCnt ( ) : integer
리턴 integer

getPtrSymbols() 공개 메소드

public getPtrSymbols ( ) : string[]
리턴 string[]

getSynsetCnt() 공개 메소드

public getSynsetCnt ( ) : integer
리턴 integer

getSynsetOffsets() 공개 메소드

public getSynsetOffsets ( ) : int[]
리턴 int[]

getSynsets() 공개 메소드

Get the synsets for this lemma
public getSynsets ( ) : Synset[]
리턴 Synset[]

getWord() 공개 메소드

public getWord ( ) : string
리턴 string

setSynsets() 공개 메소드

public setSynsets ( array $synsets ) : Lemma
$synsets array
리턴 Lemma

프로퍼티 상세

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

Number of different pointers that lemma has in all synsets containing it.
protected $pCnt

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

Number of synsets that lemma is in. This is the number of senses of the word in WordNet. See Sense Numbers below for a discussion of how sense numbers are assigned and the order of synset_offset s in the index files.
protected $synsetCnt

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

Byte offset in data.pos file of a synset containing lemma . Each synset_offset in the list corresponds to a different sense of lemma in WordNet. synset_offset is an 8 digit, zero-filled decimal integer t hat can be used with fseek(3) to read a synset from the data file
protected $synsetOffsets

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

protected Synset[],TextAnalysis\Models\Wordnet $synsets
리턴 Synset[]

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

protected $word