{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# HW4: Who Said It?\n", "- https://sites.pitt.edu/~naraehan/ling1330/hw4.html\n", "### Your name, email, date, etc. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# [PART A] Python Code" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": false }, "outputs": [], "source": [ "# hw4_whosaid.TEMPLATE.py \n", "# as a single code cell. \n", "# Copy-and-paste the script content, then edit. " ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "# [PART B] Analysis and Write-up" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Q1. Classifier accuracy\n", "Your answer here. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Q2. Features\n", "Your answer here. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Q3. Main character names\n", "\n", "Your answer here. You can edit the code cell for [PART A] and re-run. Make sure to change back the code and re-run the whole thing! " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Q4. Trying out sentences" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# your code for a. here" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "[Q4a] ... and your write-up here. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Q5. Label probabilities for a sentence\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# your code for a." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "[Q5a] your write-up. Make sure to **clearly label your answers** (\"[Q5a]\", etc.)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# your code for b." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "[Q5b] your write-up." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# your code for c." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "[Q5c] your write-up." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Q6. Trying out made-up sentences" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# your code for a." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "[Q6a] your write-up" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# your code for b." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "[Q6b] your write-up" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Q7. Base probabilities (=priors)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Q8. Calculating odds ratio" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Q9. Feature weights in model" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Q10. Zero counts and feature weights" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Q11. Combining feature weights\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Q12. Development-test data performance\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Q13. Error analysis" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "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.10.9" } }, "nbformat": 4, "nbformat_minor": 2 }