PHP Class TextAnalysis\Analysis\Keywords\Rake

Author: yooper
Afficher le fichier Open project: yooper/php-text-analysis Class Usage Examples

Protected Properties

Свойство Type Description
$document ContentDocument;
$nGramSize integer
$tokens array

Méthodes publiques

Méthode Description
__construct ( TokensDocument $document, integer $nGramSize = NGramFactory::BIGRAM )
__destruct ( )
getKeywordScores ( ) : array
getPhrases ( ) : array Get all the possible phrases
getTokens ( ) : array
getTokensDocument ( ) : TokensDocument

Method Details

__construct() public méthode

public __construct ( TokensDocument $document, integer $nGramSize = NGramFactory::BIGRAM )
$document TextAnalysis\Documents\TokensDocument
$nGramSize integer

__destruct() public méthode

public __destruct ( )

getKeywordScores() public méthode

public getKeywordScores ( ) : array
Résultat array returns an array with the key as the phrase and the value is the score it is already sorted

getPhrases() public méthode

Get all the possible phrases
public getPhrases ( ) : array
Résultat array

getTokens() public méthode

public getTokens ( ) : array
Résultat array

getTokensDocument() public méthode

public getTokensDocument ( ) : TokensDocument
Résultat TextAnalysis\Documents\TokensDocument

Property Details

$document protected_oe property

protected ContentDocument; $document
Résultat ContentDocument;

$nGramSize protected_oe property

protected int $nGramSize
Résultat integer

$tokens protected_oe property

protected array $tokens
Résultat array