args-me-model¶
Release: 0.4.1 [code] [package]
A statement that something it true. |
|
The source of a text or support relationship. |
|
A list of premises (claims) that, when taken together ("linked"), support some conclusion (another claim). |
The data model of the args.me search engine (work-in-progress).
Claims are extracted from or generated by one or more Sources and connected via Support relations. Two claims can reference each other as their counter
if they state the opposite of each other. Each of Claim, Source, and Support have additional fields to store information and allow for arbitrary annotations
.
Install¶
pip install args-me-model
Quickstart¶
from args_me_model import Claim, Source
# Creating claims
claim1 = Claim.from_source(
Source(
name="common-knowledge",
text="Blue is scattered more than other colors"
)
)
claim2 = Claim.from_source(
Source(
name="common-knowledge",
text="The sky is blue"
),
support = [[claim1]] # list of linked support
)
claim3 = Claim.from_source(
Source(
name="uncommon-knowledge",
text="The sky is not blue"
),
counter = claim2 # claim2 and claim3 are counter claims
)
# Writing claims to a file
Claim.write_ndjson([claim1, claim2, claim3], "myclaim.ndjson")
# Iterating over claims from a file
for claim in Claim.read_ndjson("myclaim.ndjson"):
print(claim.text)
Contributing¶
See the development notes.