The notebooks can be run via Jupyter.
Pre-requisites:
- Docker and Docker Compose
docker-compose up --build sciencebeam-judge-jupyter
Open http://localhost:8891/.
(The port can be configured using the CITATION_SENTIMENT_JUPYTER_PORT environment variable)
Pre-requisites:
Install the additional dependencies:
pip install -r requirements.txt
The following notebooks are currently present:
- athar-dataset.ipynb: A look at the Athar dataset itself
- athar-bag-of-words-baseline-naive-bayes.ipynb: Baseline Naive Bayes model
- athar-bag-of-words-baseline-naive-bayes-balance-and-bias.ipynb: Showing different options of balancing the Athar dataset (and importance of randomising it)
- athar-bag-of-words-model-comparison.ipynb: Comparison of some standard models using Bag of Words as an input (including Naive Bayes)