PHP Interface Documer\Storage\Adapter

Afficher le fichier Open project: kbariotis/documer

Méthodes publiques

Méthode Description
getDistinctLabels ( ) : array Get distinct names of labels
getInverseWordProbabilityWithLabel ( $word, $label ) : float Get the probability that this word shows up in a any other LABEL
getWordCount ( $word ) : integer Get how many times we have seen this word before
getWordProbabilityWithLabel ( $word, $label ) : float Get the probability that this word shows up in a LABEL document
insertLabel ( $label )
insertWord ( $word, $label )

Method Details

getDistinctLabels() public méthode

Get distinct names of labels
public getDistinctLabels ( ) : array
Résultat array

getInverseWordProbabilityWithLabel() public méthode

Get the probability that this word shows up in a any other LABEL
public getInverseWordProbabilityWithLabel ( $word, $label ) : float
$word
$label
Résultat float

getWordCount() public méthode

Get how many times we have seen this word before
public getWordCount ( $word ) : integer
$word
Résultat integer

getWordProbabilityWithLabel() public méthode

Get the probability that this word shows up in a LABEL document
public getWordProbabilityWithLabel ( $word, $label ) : float
$word
$label
Résultat float

insertLabel() public méthode

public insertLabel ( $label )

insertWord() public méthode

public insertWord ( $word, $label )