PHP Class Documer\Storage\Memory

Inheritance: implements Documer\Storage\Adapter
Mostrar archivo Open project: kbariotis/documer

Public Properties

Property Type Description
$labels
$words

Public Methods

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

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

getInverseTotalDocsGroupByLabel() public method

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

getInverseWordProbabilityWithLabel() public method

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

getTotalDocs() public method

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

getTotalDocsGroupByLabel() public method

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

getWordCount() public method

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

getWordProbabilityWithLabel() public method

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

insertLabel() public method

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

insertWord() public method

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

Property Details

$labels public_oe property

public $labels

$words public_oe property

public $words