mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Fix historical info of bigrams reading."
This commit is contained in:
commit
7ceee45376
@ -215,11 +215,12 @@ public class Ver4DictDecoder extends AbstractDictDecoder {
|
|||||||
|
|
||||||
if (options.mHasTimestamp) {
|
if (options.mHasTimestamp) {
|
||||||
probability = buffer.readUnsignedByte();
|
probability = buffer.readUnsignedByte();
|
||||||
final int pos = buffer.position();
|
// Skip timestamp
|
||||||
// Skip historical info.
|
buffer.readInt();
|
||||||
buffer.position(pos + FormatSpec.BIGRAM_TIMESTAMP_SIZE
|
// Skip level
|
||||||
+ FormatSpec.BIGRAM_LEVEL_SIZE
|
buffer.readUnsignedByte();
|
||||||
+ FormatSpec.BIGRAM_COUNTER_SIZE);
|
// Skip count
|
||||||
|
buffer.readUnsignedByte();
|
||||||
} else {
|
} else {
|
||||||
probability = bigramFlags
|
probability = bigramFlags
|
||||||
& FormatSpec.FLAG_BIGRAM_SHORTCUT_ATTR_FREQUENCY;
|
& FormatSpec.FLAG_BIGRAM_SHORTCUT_ATTR_FREQUENCY;
|
||||||
|
Loading…
Reference in New Issue
Block a user