scripts for converting from sampler output to cdec grammar format