[LangDetection] Refactor detection utility for model migration.
This change decouples detecting the language of text from the model inference of CLD3. This will enable the TFLite-based model to rely on the same detection utilities that are not model specific. Bug: 1151409 Change-Id: I7780a9a66efe8b0f1cdf765cfc838a4e98954f58 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2560662 Commit-Queue: Michael Crouse <mcrouse@chromium.org> Reviewed-by:Sophie Chang <sophiechang@chromium.org> Reviewed-by:
Michael Crouse <mcrouse@chromium.org> Reviewed-by:
Megan Jablonski <megjablon@chromium.org> Reviewed-by:
Tarun Bansal <tbansal@chromium.org> Cr-Commit-Position: refs/heads/master@{#832128}
Showing
Please register or sign in to comment