nemo_curator.stages.text.experimental.translation.stages.format_translation_output
nemo_curator.stages.text.experimental.translation.stages.format_translation_output
Stage for shaping translation output columns.
Module Contents
Classes
Data
API
Dataclass
Bases: ProcessingStage[DocumentBatch, DocumentBatch]
Apply the requested translation output format.
messages_content_field
messages_field
name
output_field
output_mode
reconstruct_messages
target_lang
Construct the translation_metadata JSON column.
Construct the translated_messages column from original messages.
staticmethod
Parse helper JSON emitted by ReassemblyStage when present.
Apply output formatting to the batch.