Skip to main content

Data model for the args.me argument search engine

Project description

# args-me-model
Data model for args.me.

```python
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"
)
)
claim1.counter = claim3.id
claim3.counter = claim1.id

# 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)
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

args_me_model-0.2.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

args_me_model-0.2.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file args_me_model-0.2.0.tar.gz.

File metadata

  • Download URL: args_me_model-0.2.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for args_me_model-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c57e7c612d2267dbedcb2987dec21a008efefc86bae0f3a227538245e0e516b3
MD5 7c01df2ad37ae716c6e8bd610dfb3c87
BLAKE2b-256 3697f105f62ae0fbf25f50a422e76e5438600135fe4b945b12742e166e239d63

See more details on using hashes here.

Provenance

The following attestation bundles were made for args_me_model-0.2.0.tar.gz:

Publisher: publish.yml on webis-de/args-me-model

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file args_me_model-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: args_me_model-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for args_me_model-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f31fd0cea0a3d11097d7b93292932967e21aeb3b81d4a3d744b136a60e74d95
MD5 808eb67871bfc33d17ddfdeee78bf1d2
BLAKE2b-256 6070735154b8b5c4c788aededfb4b783381d1cce2897ffcf1655f32295d259e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for args_me_model-0.2.0-py3-none-any.whl:

Publisher: publish.yml on webis-de/args-me-model

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page