From 6389f8d4765e4a6650503d0725827942cfa2c0da Mon Sep 17 00:00:00 2001 From: onur gungor Date: Sun, 21 Jan 2018 15:18:27 +0300 Subject: [PATCH] Jupyter notebook is added. --- README.md | 5 +++++ notebook.ipynb | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 notebook.ipynb diff --git a/README.md b/README.md index 7d10131..ef45e4d 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,11 @@ Example code to save a figure: plot_values, counts, total_count, all_keywords = corpus_loader.corpus._word_freqs_given_a_regexp_for_each_year(r"^(milletvekil|vekil)", keyword="milletvekil",) +## Jupyter Notebook + +You can use the `notebook.ipynb` file to load and query the corpus. + +![notebook image](notebook.png) ## Preprocessing diff --git a/notebook.ipynb b/notebook.ipynb new file mode 100644 index 0000000..bf2ad4e --- /dev/null +++ b/notebook.ipynb @@ -0,0 +1,34 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import corpus_loader" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.2" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +}