PHP Class TextAnalysis\Models\Wordnet\Lemma

Author: dcardin
Inheritance: use trait TextAnalysis\Traits\WordnetPointerSymbolMap
Afficher le fichier Open project: yooper/php-text-analysis

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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 méthode

public getPCnt ( ) : integer
Résultat integer

getPtrSymbols() public méthode

public getPtrSymbols ( ) : string[]
Résultat string[]

getSynsetCnt() public méthode

public getSynsetCnt ( ) : integer
Résultat integer

getSynsetOffsets() public méthode

public getSynsetOffsets ( ) : int[]
Résultat int[]

getSynsets() public méthode

Get the synsets for this lemma
public getSynsets ( ) : Synset[]
Résultat Synset[]

getWord() public méthode

public getWord ( ) : string
Résultat string

setSynsets() public méthode

public setSynsets ( array $synsets ) : Lemma
$synsets array
Résultat Lemma

Property Details

$pCnt protected_oe property

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

$synsetCnt protected_oe property

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 protected_oe property

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_oe property

protected Synset[],TextAnalysis\Models\Wordnet $synsets
Résultat Synset[]

$word protected_oe property

protected $word