Method | Description | |
---|---|---|
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 | ||
return | array |
public getInverseWordProbabilityWithLabel ( $word, $label ) : float | ||
$word | ||
$label | ||
return | float |
public getWordCount ( $word ) : integer | ||
$word | ||
return | integer |
public getWordProbabilityWithLabel ( $word, $label ) : float | ||
$word | ||
$label | ||
return | float |