PHP Класс Documer\Storage\Memory

Наследование: implements Documer\Storage\Adapter
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$labels
$words

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

Метод Описание
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 )

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

getDistinctLabels() публичный метод

См. также: Adapter::getDistinctLabels()
public getDistinctLabels ( )

getInverseTotalDocsGroupByLabel() публичный метод

Get how many documents there are that does not contain a label grouped by label
public getInverseTotalDocsGroupByLabel ( ) : array
Результат array

getInverseWordProbabilityWithLabel() публичный метод

См. также: Adapter::getInverseWordProbabilityWithLabel()
public getInverseWordProbabilityWithLabel ( $word, $label )

getTotalDocs() публичный метод

Get total documents the system has been trained, by counting the number of labels (not distinct)
public getTotalDocs ( ) : integer
Результат integer

getTotalDocsGroupByLabel() публичный метод

Get how many documents we have seen so far for each label
public getTotalDocsGroupByLabel ( ) : array
Результат array

getWordCount() публичный метод

См. также: Adapter::getWordCount()
public getWordCount ( $word )

getWordProbabilityWithLabel() публичный метод

См. также: Adapter::getWordProbabilityWithLabel()
public getWordProbabilityWithLabel ( $word, $label )

insertLabel() публичный метод

См. также: Adapter::insertLabel()
public insertLabel ( $label )

insertWord() публичный метод

См. также: Adapter::insertWord()
public insertWord ( $word, $label )

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

$labels публичное свойство

public $labels

$words публичное свойство

public $words