Home | Trees | Indices | Help |
|
---|
|
object --+ | Suggestion
A suggestion consists of a string and a probility.
The string is in fact a token and the probability is the probability associated to this token by the predictor which compute it. The probability reflect how accurate the word is over prediction.
![]() |
Class Hierarchy for Suggestion |
|
|||
|
|||
bool |
|
||
bool |
|
||
bool |
|
||
Inherited from |
|
|||
Inherited from |
|
Suggestion creator A suggestion is a couple formed by a suggested word and its probability.
Note: the probabilities of each predictors should have the same weight. Otherwise the suggestion selection will be truncated. |
Override the == operator in order to compare instances equality. Two Suggestion instances are equal if their word and probability are equal.
|
Override the < operator in order to compare instances. A Suggestion instance is less than another if its probability is less than the probability of the other. If their probabilities are equal then the Suggestion instance is less than the other if its word is alphabetically 'before' the word of the other instance.
|
Override the > operator in order to compare instances. A Suggestion instance is greater than another if its probability is greater than the probability of the other. If their probabilities are equal then the Suggestion instance is greater than the other if its word is alphabetically 'after' the word of the other instance.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jul 14 21:07:50 2015 | http://epydoc.sourceforge.net |