Свойство | Тип | Описание | |
---|---|---|---|
$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 ) |
public getInverseTotalDocsGroupByLabel ( ) : array | ||
Результат | array |
public getInverseWordProbabilityWithLabel ( $word, $label ) |
public getTotalDocs ( ) : integer | ||
Результат | integer |
public getTotalDocsGroupByLabel ( ) : array | ||
Результат | array |