Replace the bigram list position with the map and filter
Passing the position will not allow us a reasonable lookup time. Replace this with a map and bloom filter for very fast lookup. Bug: 6313806 Change-Id: I3a61c0001cbc987c1c3c7b8df635d4590a370144
Showing
- native/jni/src/bigram_dictionary.cpp 5 additions, 0 deletionsnative/jni/src/bigram_dictionary.cpp
- native/jni/src/binary_format.h 7 additions, 4 deletionsnative/jni/src/binary_format.h
- native/jni/src/dictionary.h 2 additions, 6 deletionsnative/jni/src/dictionary.h
- native/jni/src/unigram_dictionary.cpp 28 additions, 25 deletionsnative/jni/src/unigram_dictionary.cpp
- native/jni/src/unigram_dictionary.h 18 additions, 12 deletionsnative/jni/src/unigram_dictionary.h
Loading
Please register or sign in to comment