Skip to content

Commit

Permalink
Add dnt_phrases field for NMT TranslateTextRequest (#44)
Browse files Browse the repository at this point in the history
* 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 <manishaj@nvidia.com>
  • Loading branch information
ydharavath and manishaj-nv authored Dec 5, 2024
1 parent d73d7c1 commit 0ee8cc1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions riva/proto/riva_nmt.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<word>##<custom_translation>" and
// words not be translated should be specified as "<word>".
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;
Expand Down

0 comments on commit 0ee8cc1

Please sign in to comment.