Property | Type | Description | |
---|---|---|---|
$labels | |||
$words |
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 ) |
public getInverseTotalDocsGroupByLabel ( ) : array | ||
return | array |
public getInverseWordProbabilityWithLabel ( $word, $label ) |
public getTotalDocs ( ) : integer | ||
return | integer |
public getTotalDocsGroupByLabel ( ) : array | ||
return | array |