Closed OUDON closed 2 years ago
Bug in the SegmentOptimizer.
SegmentOptimizer
A cost computed by SegmentOptimizer is too small in Byte Mode. This bug causes invalid segmentation.
>>> qr._optimized_segments("点茗") [{'data': '点茗', 'encoder_class': <class 'rmqrcode.encoder.byte_encoder.ByteEncoder'>}
>>> qr._optimized_segments("点茗") [{'data': '点茗', 'encoder_class': <class 'rmqrcode.encoder.byte_encoder.KanjiEncoder'>}
Bug in the
SegmentOptimizer
.Summary
A cost computed by SegmentOptimizer is too small in Byte Mode. This bug causes invalid segmentation.
Current Behaviour
Expected Behaviour