PHP Класс TextAnalysis\Indexes\WordnetIndex

Автор: yooper
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$lemmasIdx array
$wordnetCorpus TextAnalysis\Corpus\WordnetCorpus

Открытые методы

Метод Описание
__construct ( WordnetCorpus $wordnetCorpus )
__destruct ( )
getLemma ( string $word, string $pos = '' ) : Lemma[] Return the lemmas that are linked to the given word, provide a pos to filter down the results
getMorph ( string $word, string | null $pos = '' ) : string Concept taken from nltk Find a possible base form for the given form, with the given part of speech, by checking WordNet's list of exceptional forms, and by recursively stripping affixes for this part of speech until a form in WordNet is found.
getMorphilogicalSubstitutions ( ) : array
getWordnetCorpus ( ) : WordnetCorpus

Описание методов

__construct() публичный Метод

public __construct ( WordnetCorpus $wordnetCorpus )
$wordnetCorpus TextAnalysis\Corpus\WordnetCorpus

__destruct() публичный Метод

public __destruct ( )

getLemma() публичный Метод

Return the lemmas that are linked to the given word, provide a pos to filter down the results
public getLemma ( string $word, string $pos = '' ) : Lemma[]
$word string
$pos string
Результат TextAnalysis\Models\Wordnet\Lemma[]

getMorph() публичный Метод

Concept taken from nltk Find a possible base form for the given form, with the given part of speech, by checking WordNet's list of exceptional forms, and by recursively stripping affixes for this part of speech until a form in WordNet is found.
public getMorph ( string $word, string | null $pos = '' ) : string
$word string
$pos string | null
Результат string return the base word

getMorphilogicalSubstitutions() публичный Метод

public getMorphilogicalSubstitutions ( ) : array
Результат array

getWordnetCorpus() публичный Метод

public getWordnetCorpus ( ) : WordnetCorpus
Результат TextAnalysis\Corpus\WordnetCorpus

Описание свойств

$lemmasIdx защищенное свойство

protected array $lemmasIdx
Результат array

$wordnetCorpus защищенное свойство

protected WordnetCorpus,TextAnalysis\Corpus $wordnetCorpus
Результат TextAnalysis\Corpus\WordnetCorpus