this mostly just updates the SimpleTranslator to fit with the updated Translator interface.
It also adds an apply_normalizer_for_simpleclient wrapper, since the translator wants both the raw metadata and the normalized output. So it invokes the normalizer function with a single-element generator (wrapped in a function) for each record, and yields a dictionary with raw and metadata keys as expected by the SimpleTranslator.
seems to work, but so far I've just tested with one pexels compactsplit
this mostly just updates the SimpleTranslator to fit with the updated Translator interface.
It also adds an
apply_normalizer_for_simpleclient
wrapper, since the translator wants both the raw metadata and the normalized output. So it invokes the normalizer function with a single-element generator (wrapped in a function) for each record, and yields a dictionary withraw
andmetadata
keys as expected by the SimpleTranslator.seems to work, but so far I've just tested with one pexels compactsplit