Метод | Описание | |
---|---|---|
getDistinctLabels ( ) : array | Get distinct names of labels | |
getInverseWordProbabilityWithLabel ( $word, $label ) : float | Get the probability that this word shows up in a any other LABEL | |
getWordCount ( $word ) : integer | Get how many times we have seen this word before | |
getWordProbabilityWithLabel ( $word, $label ) : float | Get the probability that this word shows up in a LABEL document | |
insertLabel ( $label ) | ||
insertWord ( $word, $label ) |
public getDistinctLabels ( ) : array | ||
Результат | array |
public getInverseWordProbabilityWithLabel ( $word, $label ) : float | ||
$word | ||
$label | ||
Результат | float |
public getWordCount ( $word ) : integer | ||
$word | ||
Результат | integer |
public getWordProbabilityWithLabel ( $word, $label ) : float | ||
$word | ||
$label | ||
Результат | float |