@@ -85,13 +85,30 @@ def __init__(self, **kwargs):
8585 self .text : str = kwargs .get ('text' )
8686 self .translatable : bool = kwargs .get ('translatable' , True )
8787
88+ class NGMemoryMatch (LaraObject ):
89+ def __init__ (self , ** kwargs ):
90+ self .memory : str = kwargs .get ('memory' )
91+ self .tuid : Optional [str ] = kwargs .get ('tuid' ) if kwargs .get ('tuid' ) else None
92+ self .source : str = kwargs .get ('source' )
93+ self .target : str = kwargs .get ('target' )
94+ self .sentence : str = kwargs .get ('sentence' )
95+ self .translation : float = kwargs .get ('translation' )
96+
97+ class NGGlossaryMatch (LaraObject ):
98+ def __init__ (self , ** kwargs ):
99+ self .memory : str = kwargs .get ('memory' )
100+ self .language : List [str ] = kwargs .get ('language' )
101+ self .term : str = kwargs .get ('term' )
102+ self .translation : str = kwargs .get ('translation' )
88103
89104class TextResult (LaraObject ):
90105 def __init__ (self , ** kwargs ):
91106 self .content_type : str = kwargs .get ('content_type' )
92107 self .source_language : str = kwargs .get ('source_language' )
93108 self .translation : Union [str , List [str ], List [TextBlock ]]
94109 self .adapted_to : Optional [List [str ]] = kwargs .get ('adapted_to' , None )
110+ self .adapted_to_matches : Optional [Union [List [NGMemoryMatch ], List [List [NGMemoryMatch ]]]] = kwargs .get ('adapted_to_matches' , None )
111+ self .glossaries_matches : Optional [Union [List [NGGlossaryMatch ], List [List [NGGlossaryMatch ]]]] = kwargs .get ('glossaries_matches' , None )
95112
96113 translation = kwargs .get ('translation' )
97114
0 commit comments