https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/third_party/libtextclassifier/ https://chromium.googlesource.com/chromium/src/+/359be9f8e540f1a8b24a3242608fd2933bcafe8a/chromeos/services/machine_learning/public/mojom/
libtextclassifier
A library for on-device text classification (address, telephone number, emails etc.).
Usage in Chrome OS
To use libtextclassifier, one also needs to install a flatbuffer model defined in "model.fbs". For simplicity, this model file will be installed in the ebuild of ml-service.
And libtextclassifier currently depends on the chrome-icu package which requires explicitly initializing the icu data, just like chrome.
The ml-service is currently the only user of this library. If another library in Chrome OS also wants to use it, please let the owners of ml-service and libtextclassifier know because then,
- we need to make libtextclassifier into a shared library to save space;
- we may also need to move the installation of libtextclassifier's model file into libtextclassifier's ebuild.