diff --git a/docs/notebooks/example.ipynb b/docs/notebooks/example.ipynb index 06344d6..a3d932b 100644 --- a/docs/notebooks/example.ipynb +++ b/docs/notebooks/example.ipynb @@ -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": {