From 0ee8cc14d7ec1a7893cf809d4eacc8a3f7363ea9 Mon Sep 17 00:00:00 2001 From: ydharavath Date: Thu, 5 Dec 2024 15:16:54 +0530 Subject: [PATCH] Add dnt_phrases field for NMT TranslateTextRequest (#44) * added custom_dnt_phrases to TranslateTextRequest * added custom_dnt_phrases to TranslateTextRequest * TranslateTextRequest - field name modified * TranslateTextRequest dnt_phrases description changed * formatted --------- Co-authored-by: Manisha Johnson --- riva/proto/riva_nmt.proto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/riva/proto/riva_nmt.proto b/riva/proto/riva_nmt.proto index 8158b2c..12b2c6a 100644 --- a/riva/proto/riva_nmt.proto +++ b/riva/proto/riva_nmt.proto @@ -138,6 +138,12 @@ message TranslateTextRequest { string source_language = 3; string target_language = 4; + // A list of words or phrases that are not to be translated or + // to be custom translated by the pipeline. Words to be custom translated + // should be specified as "##" and + // words not be translated should be specified as "". + repeated string dnt_phrases = 5; + // The ID to be associated with the request. If provided, this will be // returned in the corresponding response. RequestId id = 100;