Commit 0139bd2
committed
ContextSpellChecker: fix unpredictable behavior of mutable.HashMap modification
genVocab would not iterate over all vocab in the mutable.HashMap. This is due to
the iterator state of the mutable.HashMap being changed during iteration. Fixed by
using mapValuesInPlace.1 parent cbbed3d commit 0139bd2
File tree
1 file changed
+1
-3
lines changed- src/main/scala/com/johnsnowlabs/nlp/annotators/spell/context
1 file changed
+1
-3
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
624 | | - | |
625 | | - | |
626 | | - | |
| 624 | + | |
627 | 625 | | |
628 | 626 | | |
629 | 627 | | |
| |||
0 commit comments