def setUp(self):
        self.sut = None
        self.randomizer = Randomizer(Random())
        self.cyk_configuration = CykConfiguration.create(
            should_correct_grammar=False,
            terminal_chance=0,
            universal_chance=0,
            aggressive_chance=0,
            starting_chance=0,
            full_chance=0
        )

        self.rule_adding = AddingRuleSupervisor.default(self.randomizer)

        self.grammar_sentence = self.create_sentence(
            Symbol('she'),
            Symbol('eats'),
            Symbol('a'),
            Symbol('fish'),
            Symbol('with'),
            Symbol('a'),
            Symbol('fork'))

        self.service_creator = None
        self.statistics = None
 def __init__(self, randomizer, run_no, cyk_service_variant=None):
     self.cyk_service_variant = cyk_service_variant if cyk_service_variant is not None \
         else CykServiceVariationManager(False)
     self.randomizer = randomizer
     self.configuration = None
     self.rule_adding = AddingRuleSupervisor.default(randomizer)
     self.grammar_estimator = None
     self.induction = self.cyk_service_variant.create_cyk_service(randomizer, self.rule_adding)
     self.evolution = EvolutionService(randomizer)
     self.stop_criteria = [NoStopCriteriaSpecified()]
     self.run_no = run_no