Fix compilation with C++17 error: 'Length' is deprecated: use size() instead [-Werror,-Wdeprecated-declarations] BUG=b:162949739 TEST=emerge-volteer libtextclassifier Change-Id: I99ca3248cd161bddfe3fa6aeb18b1b0fd628d209 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/libtextclassifier/+/2417230 Tested-by: Tom Hughes <[email protected]> Auto-Submit: Tom Hughes <[email protected]> Reviewed-by: Honglin Yu <[email protected]> Commit-Queue: Honglin Yu <[email protected]>
A library for on-device text classification (address, telephone number, emails etc.).
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,