Clone this repo:
  1. ecd17cc ml: uprev tclib to potentially support vocab by Honglin Yu · 13 days ago master
  2. adbbad2 Fix compilation with C++17 by Tom Hughes · 4 weeks ago firmware-volteer-13521.B release-R87-13505.B stabilize-13525.B stabilize-13532.B stabilize-rust-13514.B
  3. ca11ca7 Fix compilation with C++17 by Tom Hughes · 10 weeks ago factory-trogdor-13443.B factory-zork-13427.B firmware-zork-13421.B firmware-zork-13434.B release-R86-13421.B stabilize-13421.42.B stabilize-13421.53.B stabilize-13421.73.B stabilize-13421.80.B stabilize-13482.B
  4. ebcc1a8 Add lang id and uprev tclib/annotator by Honglin Yu · 4 months ago stabilize-13360.B
  5. 8b1eb41 libtextclassifier: fix a "divide-by-zero" bug. by Honglin Yu · 6 months ago factory-endeavour-13295.B factory-puff-13329.B firmware-endeavour-13259.B firmware-puff-13324.B release-R84-13099.B release-R85-13310.B stabilize-13099.101.B stabilize-13099.110.B stabilize-13099.118.B stabilize-13099.70.B stabilize-13099.72.B stabilize-13099.73.B stabilize-13099.85.B stabilize-13099.90.B stabilize-13099.94.B stabilize-13310.72.B stabilize-13310.74.B stabilize-13310.83.B stabilize-13310.94.B stabilize-13310.99.B stabilize-lazor-13278.B stabilize-quickfix-13099.93.B stabilize-quickfix-13310.73.B stabilize-quickfix-13310.76.B stabilize-quickfix-13310.91.B


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,

  1. we need to make libtextclassifier into a shared library to save space;
  2. we may also need to move the installation of libtextclassifier‘s model file into libtextclassifier’s ebuild.