nemo_curator.stages.text.experimental.translation.utils.field_paths
nemo_curator.stages.text.experimental.translation.utils.field_paths
Helpers for wildcard dot-path reads and writes.
Module Contents
Functions
API
Append value when it is a string.
Recursive worker for wildcard dot-path extraction.
Return the next replacement value, or None when exhausted.
Set a terminal dict value when the current value is a string.
Set matching list items for wildcard traversal.
Recursive worker for wildcard dot-path writes.
Extract string values matching a wildcard dot-path.
Return whether the path contains *.
Normalize text_field to a list of field paths.
Return parsed dict/list data when the value looks like JSON.
Write values back to a wildcard dot-path in traversal order.