Skip to content
Snippets Groups Projects
Commit 3df93c12 authored by Odekerken, D. (Daphne)'s avatar Odekerken, D. (Daphne)
Browse files

Added example use to README.md

parent 70cac73a
No related branches found
No related tags found
No related merge requests found
# Abstract Argumentation Solver
This is a solver for abstract argumentation.
It currently only labels arguments by grounded semantics.
\ No newline at end of file
It currently only labels arguments by grounded semantics.
## Example use
```python
from abstract_argumentation_solver.cls.label import Label
from abstract_argumentation_solver.import_export.read_argumentation_framework_aspartix import read_argumentation_framework_aspartix
from abstract_argumentation_solver.import_export.write_extension import write_extension
from abstract_argumentation_solver.labeling.grounded_extension_labeler import GroundedExtensionLabeler
af = read_argumentation_framework_aspartix('example_af.apx')
labeler = GroundedExtensionLabeler()
labels = labeler.get_labels(af)
grounded_extension = labeler.get_extension(af)
write_extension(grounded_extension, 'result_path.txt')
```
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment