TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/arg-tech/xaif/llms.txt
Use this file to discover all available pages before exploring further.
get_csv method exports the argument graph as a pandas DataFrame, giving you a flat, tabular view of the proposition pairs and their relationships. This makes it straightforward to feed xAIF data directly into machine learning or NLP pipelines — for example, training a binary argument relation classifier or building a dataset for fine-tuning a language model on inference detection.
The Two Export Modes
get_csv accepts a single relation_type argument that controls which node types are used to form proposition pairs.
"argument-relation"
Traverses the RA, CA, and MA relation nodes to identify pairs of I-nodes (propositions) that are directly connected by an argument relation. The relation column contains the text of the relation node ("Default Inference", "Default Conflict", or "Default Rephrase").
All I-nodes in the graph are also combined into pairs without a relation, and those unrelated pairs are appended with relation="None". This produces a complete pairwise matrix over propositions, useful for training binary or multi-class classifiers.
"locution"
Traverses the YA nodes to identify pairs of L-nodes (raw locutions) mapped to I-nodes (their semantic propositions). Each row connects an L-node on the left with the I-node it illocutes on the right, with the YA-node’s text in the relation column.
DataFrame Schema
Both modes return a DataFrame with the same five columns:| Column | Description |
|---|---|
proposition1_id | Node ID of the first proposition (I-node or L-node, depending on mode) |
proposition1_text | Text content of the first proposition |
proposition2_id | Node ID of the second proposition (I-node, for both modes) |
proposition2_text | Text content of the second proposition |
relation | Relation type string, e.g. "Default Inference", "Default Conflict", "Default Rephrase", or "None" |
Full Example
Non-Related Pairs and relation="None"
For both "argument-relation" and "locution" modes, get_csv always appends every possible ordered pair of nodes that does not already appear as a related pair, and marks those rows with relation="None". For "argument-relation" mode this means every unrelated ordered I-node pair is included; for "locution" mode every unrelated ordered L-node pair is included. This design choice means you do not need to generate negative examples separately — the DataFrame already contains both related and unrelated pairs, which is useful for training binary classifiers.
To work only with proposition pairs that have an explicit relation, filter the DataFrame after export:
get_csv requires pandas to be installed. pandas is included as a
dependency of the xaif package, so it is available automatically when
you install xAIF via pip install xaif.