Closed hfst-importer closed 8 years ago
Sorry, the link was not turned into a real link. Here it is: https://divvun.no/static_files/sma-hfst-ospell-n-bug-2015_09_15.zhfst
Original comment by: snomos
Verified bug. This appears to be due to me brain-deadedly misunderstanding std::priority_queue. Should be fixed soon when I get the opportunity.
Original comment by: Traubert
The following comment was just posted on IRC:
Regarding hfst-ospell r4440, std::list should be avoided at almost all costs. If you need something that doesn't invalidate iterators on insert, use std::deque - otherwise, default to std::vector.
Original comment by: snomos
I wonder is that due to the frequently true assumption that lists are usually slow? In this case my tests indicate that the list implementation is a little bit faster.
Original comment by: Traubert
Original comment by: Traubert
To repeat:
Result:
Notice how the expected suggestion «Zealaantesne« is the first suggestion (ie lowest weight) when -n=15, whereas it is not suggested at all when -n=5. Also note that there is no real speed difference between the two values of -n (and also not compared to no -n at all).
Expected behavior:
Reported by: snomos