stability_label_algorithm/modules/dataset_generator/argumentation_system_generator/layered/layered_argumentation_system_generator.py
def generate(self) -> ArgumentationSystem:
        """
        Generate an ArgumentationSystem with a layered structure according to the
        LayeredArgumentationSystemGeneratorParameters.

        :return: The generated ArgumentationSystem.
        """
        max_remaining_tries = 25
        while max_remaining_tries > 0:
            try:
                max_remaining_tries -= 1
                layered_language = self._generate_language_initial()
                rules = self._generate_rules(layered_language)
                language = {str(literal): literal for literals in layered_language.values() for literal in literals}
                highest_layer = max(list(layered_language.keys()))
                topic_literals = layered_language[highest_layer]
                argumentation_system = ArgumentationSystem(language, rules, topic_literals=topic_literals)
                return argumentation_system
            except ValueError:
                pass
        raise ValueError('Could not generate an ArgumentationSystem with these properties.')

        Generate an ArgumentationSystem with a layered structure according to the
        LayeredArgumentationSystemGeneratorParameters.

        :return: The generated ArgumentationSystem.
        
Generate an ArgumentationSystem with a layered structure according to the
LayeredArgumentationSystemGeneratorParameters.
Generate an ArgumentationSystem with a layered structure according to the LayeredArgumentationSystemGeneratorParameters .
def generate(self) -> ArgumentationSystem:
        max_remaining_tries = 25
        while max_remaining_tries > 0:
            try:
                max_remaining_tries -= 1
                layered_language = self._generate_language_initial()
                rules = self._generate_rules(layered_language)
                language = {str(literal): literal for literals in layered_language.values() for literal in literals}
                highest_layer = max(list(layered_language.keys()))
                topic_literals = layered_language[highest_layer]
                argumentation_system = ArgumentationSystem(language, rules, topic_literals=topic_literals)
                return argumentation_system
            except ValueError:
                pass
        raise ValueError('Could not generate an ArgumentationSystem with these properties.')
def generate ( self ) -> ArgumentationSystem : max_remaining_tries = 25 while max_remaining_tries > 0 : try : max_remaining_tries -= 1 layered_language = self . _generate_language_initial ( ) rules = self . _generate_rules ( layered_language ) language = { str ( literal ) : literal for literals in layered_language . values ( ) for literal in literals } highest_layer = max ( list ( layered_language . keys ( ) ) ) topic_literals = layered_language [ highest_layer ] argumentation_system = ArgumentationSystem ( language , rules , topic_literals = topic_literals ) return argumentation_system except ValueError : pass raise ValueError ( 'Could not generate an ArgumentationSystem with these properties.' )
Generate an ArgumentationSystem with a layered structure according to the
LayeredArgumentationSystemGeneratorParameters.
Generate an ArgumentationSystem with a layered structure according to the LayeredArgumentationSystemGeneratorParameters .
"""
        Generate an ArgumentationSystem with a layered structure according to the
        LayeredArgumentationSystemGeneratorParameters.

        :return: The generated ArgumentationSystem.
        """
The generated ArgumentationSystem.
The generated ArgumentationSystem .
self