class documentation
Collection of _Hypothesis objects
| Method | __bool__ |
Undocumented |
| Method | __contains__ |
Undocumented |
| Method | __init__ |
No summary |
| Method | __iter__ |
Undocumented |
| Method | best |
No summary |
| Method | push |
Add hypothesis to the stack. Removes lowest scoring hypothesis if the stack is full. After insertion, hypotheses that score less than beam_threshold times the score of the best hypothesis are removed. |
| Method | threshold |
Undocumented |
| Instance Variable | items |
Undocumented |
| Instance Variable | max |
Undocumented |
| Instance Variable | __log |
Undocumented |
| Parameters | |
| max | Undocumented |
| beam | Hypotheses that score less than this factor of the best hypothesis are discarded from the stack. Value must be between 0.0 and 1.0. |