PHP Class TextAnalysis\Models\Wordnet\Lemma

Author: dcardin
Inheritance: use trait TextAnalysis\Traits\WordnetPointerSymbolMap
Mostrar archivo Open project: yooper/php-text-analysis

Protected Properties

Property 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

Public Methods

Method 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 method

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 method

public getPCnt ( ) : integer
return integer

getPtrSymbols() public method

public getPtrSymbols ( ) : string[]
return string[]

getSynsetCnt() public method

public getSynsetCnt ( ) : integer
return integer

getSynsetOffsets() public method

public getSynsetOffsets ( ) : int[]
return int[]

getSynsets() public method

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

getWord() public method

public getWord ( ) : string
return string

setSynsets() public method

public setSynsets ( array $synsets ) : Lemma
$synsets array
return 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
return Synset[]

$word protected_oe property

protected $word