def __init__(self,
               nonterminals_to_t_rules,
               nonterminals_to_nt_rules,
               max_recursion=10,
               min_recursion=1,
               verbose=False):
    """Sample source and target in both QCFG and target CFG."""
    self.nonterminals_to_t_rules = nonterminals_to_t_rules
    self.nonterminals_to_nt_rules = nonterminals_to_nt_rules
    self.max_recursion = max_recursion
    self.min_recursion = min_recursion
    self.verbose = verbose
Sample source and target in both QCFG and target CFG.
language/compgen/csl/augment/joint_sampler.py