mirror of
https://github.com/explosion/spaCy.git
synced 2025-11-19 01:05:56 +03:00
Fix an off-by-one in `TransitionModel.forward`, where we always did one move more than the maximum number of moves. This explosed another issue: when creating cut states, we skipped states where the (maximum number of) moves from that state only applied transitions that did not modify the buffer. Replace uses of `random.uniform` by `random.randrange`. |
||
|---|---|---|
| .. | ||
| models | ||
| __init__.py | ||
| callbacks.py | ||
| character_embed.py | ||
| extract_ngrams.py | ||
| extract_spans.py | ||
| featureextractor.py | ||
| staticvectors.py | ||
| tb_framework.pxd | ||
| tb_framework.pyx | ||