PHP 클래스 Documer\Storage\Memory

상속: implements Documer\Storage\Adapter
파일 보기 프로젝트 열기: kbariotis/documer

공개 프로퍼티들

프로퍼티 타입 설명
$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

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