Merge "Disable language logging in TextClassifier/TranslateEvent" into rvc-dev

This commit is contained in:
Abodunrinwa Toki
2020-06-11 16:40:13 +00:00
committed by Android (Google) Code Review

View File

@@ -971,7 +971,8 @@ public final class SelectionActionModeHelper {
return new TextClassifierEvent.LanguageDetectionEvent.Builder(eventType)
.setEventContext(classificationContext)
.setResultId(classification.getId())
.setEntityTypes(language)
// b/158481016: Disable language logging.
//.setEntityTypes(language)
.setScores(score)
.setActionIndices(classification.getActions().indexOf(translateAction))
.setModelName(model)