Skip to content

Commit

Permalink
example notebook updated with josn import functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Morrizzzzz committed Nov 22, 2023
1 parent d206d80 commit 2e97210
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/notebooks/example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,38 @@
"source": [
"GCSAusE.write_json(path = \"CGSAusE.json\")\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Vice versa a `Corpus` `.json` file can be loaded as a dictionary:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"Corpus.from_json(\"path/to/corpus_file.json\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"`Conversation` `.json` files can be added as a dictionary through: "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"Conversation.from_json(\"path/to/conversation_file.json\")"
]
}
],
"metadata": {
Expand Down

0 comments on commit 2e97210

Please sign in to comment.