PHP Class Documer\Storage\Memory

Inheritance: implements Documer\Storage\Adapter
Afficher le fichier Open project: kbariotis/documer

Méthodes publiques

Свойство Type Description
$labels
$words

Méthodes publiques

Méthode Description
getDistinctLabels ( )
getInverseTotalDocsGroupByLabel ( ) : array Get how many documents there are that does not contain a label grouped by label
getInverseWordProbabilityWithLabel ( $word, $label )
getTotalDocs ( ) : integer Get total documents the system has been trained, by counting the number of labels (not distinct)
getTotalDocsGroupByLabel ( ) : array Get how many documents we have seen so far for each label
getWordCount ( $word )
getWordProbabilityWithLabel ( $word, $label )
insertLabel ( $label )
insertWord ( $word, $label )

Method Details

getDistinctLabels() public méthode

See also: Adapter::getDistinctLabels()
public getDistinctLabels ( )

getInverseTotalDocsGroupByLabel() public méthode

Get how many documents there are that does not contain a label grouped by label

getInverseWordProbabilityWithLabel() public méthode

See also: Adapter::getInverseWordProbabilityWithLabel()
public getInverseWordProbabilityWithLabel ( $word, $label )

getTotalDocs() public méthode

Get total documents the system has been trained, by counting the number of labels (not distinct)
public getTotalDocs ( ) : integer
Résultat integer

getTotalDocsGroupByLabel() public méthode

Get how many documents we have seen so far for each label
public getTotalDocsGroupByLabel ( ) : array
Résultat array

getWordCount() public méthode

See also: Adapter::getWordCount()
public getWordCount ( $word )

getWordProbabilityWithLabel() public méthode

See also: Adapter::getWordProbabilityWithLabel()
public getWordProbabilityWithLabel ( $word, $label )

insertLabel() public méthode

See also: Adapter::insertLabel()
public insertLabel ( $label )

insertWord() public méthode

See also: Adapter::insertWord()
public insertWord ( $word, $label )

Property Details

$labels public_oe property

public $labels

$words public_oe property

public $words