Merge "Disable language logging in TextClassifier/TranslateEvent" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
934df62467
@@ -971,7 +971,8 @@ public final class SelectionActionModeHelper {
|
|||||||
return new TextClassifierEvent.LanguageDetectionEvent.Builder(eventType)
|
return new TextClassifierEvent.LanguageDetectionEvent.Builder(eventType)
|
||||||
.setEventContext(classificationContext)
|
.setEventContext(classificationContext)
|
||||||
.setResultId(classification.getId())
|
.setResultId(classification.getId())
|
||||||
.setEntityTypes(language)
|
// b/158481016: Disable language logging.
|
||||||
|
//.setEntityTypes(language)
|
||||||
.setScores(score)
|
.setScores(score)
|
||||||
.setActionIndices(classification.getActions().indexOf(translateAction))
|
.setActionIndices(classification.getActions().indexOf(translateAction))
|
||||||
.setModelName(model)
|
.setModelName(model)
|
||||||
|
|||||||
Reference in New Issue
Block a user