Update 19/readme.md
Browse files- 19/readme.md +25 -8
19/readme.md
CHANGED
|
@@ -1,14 +1,31 @@
|
|
| 1 |
https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/third_party/libtextclassifier/
|
| 2 |
|
| 3 |
-
libtextclassifier
|
| 4 |
-
A library for on-device text classification (address, telephone number, emails etc.).
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
|
| 9 |
-
|
| 10 |
|
| 11 |
-
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/third_party/libtextclassifier/
|
| 2 |
|
| 3 |
+
# libtextclassifier
|
|
|
|
| 4 |
|
| 5 |
+
A library for on-device text classification (address, telephone number,
|
| 6 |
+
emails etc.).
|
| 7 |
|
| 8 |
+
# Usage in Chrome OS
|
| 9 |
|
| 10 |
+
To use libtextclassifier, one also needs to install a flatbuffer model defined
|
| 11 |
+
in "model.fbs". For simplicity, this model file will be installed in the
|
| 12 |
+
[ebuild of ml-service][ml-9999-ebuild].
|
| 13 |
|
| 14 |
+
And libtextclassifier currently [depends on][tclib-depend-chrome-icu] the
|
| 15 |
+
[chrome-icu][chrome-icu-ebuild-folder] package which requires explicitly
|
| 16 |
+
initializing the icu data, just like [chrome][chrome-init-icu].
|
| 17 |
+
|
| 18 |
+
The [ml-service] is currently the only user of this library. If another library
|
| 19 |
+
in Chrome OS also wants to use it, please let the owners of [ml-service] and
|
| 20 |
+
libtextclassifier know because then,
|
| 21 |
+
|
| 22 |
+
1. we need to make libtextclassifier into a shared library to save space;
|
| 23 |
+
2. we may also need to move the installation of libtextclassifier's model file
|
| 24 |
+
into libtextclassifier's ebuild.
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
[chrome-icu-ebuild-folder]: https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/HEAD/chromeos-base/chrome-icu/
|
| 28 |
+
[chrome-init-icu]: https://source.chromium.org/chromium/chromium/src/+/master:base/i18n/icu_util.cc;l=234;drc=928bcad29884064f83bf05ecadf82369f8b4622f?originalUrl=https:%2F%2Fcs.chromium.org%2F
|
| 29 |
+
[ml-9999-ebuild]: https://source.chromium.org/chromiumos/chromiumos/codesearch/+/master:src/third_party/chromiumos-overlay/chromeos-base/ml/ml-9999.ebuild
|
| 30 |
+
[ml-service]: https://source.chromium.org/chromiumos/chromiumos/codesearch/+/master:src/platform2/ml/;l=1?q=ml%2F&sq=&ss=chromiumos
|
| 31 |
+
[tclib-depend-chrome-icu]: https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/HEAD/dev-libs/libtextclassifier/libtextclassifier-9999.ebuild#24
|