commit | 8b1eb41e82a6b7004cc03c46b0b18288ef9d13bd | [log] [tgz] |
---|---|---|
author | Honglin Yu <honglinyu@chromium.org> | Tue May 05 12:11:14 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Wed May 06 04:58:29 2020 |
tree | 67b8c7d946cd11ccb2e16e28ae9f29825f592230 | |
parent | 3b6aa2b3f62f5907434edf316e5e60f39592a4a5 [diff] |
libtextclassifier: fix a "divide-by-zero" bug. Fix the bug and be consistent with upstream's CL: cl/309912555 BUG=chromium:1077405 TEST=unit test of ml-serivce passed. Change-Id: I6084e011cb5819c889f47add17d7c72bf9b26831 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/libtextclassifier/+/2181935 Reviewed-by: Lukas Zilka <zilka@google.com> Reviewed-by: Andrew Moylan <amoylan@chromium.org> Commit-Queue: Honglin Yu <honglinyu@chromium.org> Tested-by: Honglin Yu <honglinyu@chromium.org>
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,