Example #1
0
 def from_file(self, path):
     if os.path.isfile(path+".sqlite"):
         kb = Argument.from_database(path+".sqlite")  # Bit of bad factoring.
         print("Labelled DB detected. Using that.")
     else:
         kb = Argument.from_file(path)
         print("Loaded into DB, Labelling.", time.process_time())
         Labelling.grounded(kb)
     return Game(kb)
Example #2
0
 def from_af(cls, arguments, attack_relations):
     kb = Argument.from_af(arguments, attack_relations)
     Labelling.grounded(kb)
     return Game(kb)