Gaia/System/Keyboard/IME/Latin/Dictionary Blob: Difference between revisions

no edit summary
No edit summary
Line 1: Line 1:
See Also: [[Gaia/System/Keyboard/IME/Latin/Prediction_%26_Auto_Correction]]
See Also: [[Gaia/System/Keyboard/IME/Latin/Prediction_%26_Auto_Correction]]


We serialize a dictionary Ternary Search Tree, along with supporting metadata and auxiliary data structures,
into a compact binary blob for the prediction engine to consume.
The [https://github.com/mozilla-b2g/gaia/blob/master/apps/keyboard/js/imes/latin/dictionaries/xml2dict.py xml2dict.py] script
The [https://github.com/mozilla-b2g/gaia/blob/master/apps/keyboard/js/imes/latin/dictionaries/xml2dict.py xml2dict.py] script
processes the word list, generates the TST along with supporting metadata and auxiliary data structures, and
is responsible for generating the binary blob. The format of the blob is described in this article.
serializes it into a compact binary blob, which is written as the *.dict file, to be unserialized and used by
the predictions engine.


== Header ==
== Header ==
Confirmed users
346

edits