This repository is organized for submission in a notebook-first format.
-
notebooks/01_data_and_benchmark.ipynbData-focused notebook for loading the UD benchmark, checking split statistics, inspecting labels, and verifying the dataset before training. -
notebooks/02_averaged_perceptron.ipynbExperiment notebook for the averaged perceptron baseline. -
notebooks/03_hmm_viterbi.ipynbExperiment notebook for the HMM + Viterbi baseline. -
notebooks/04_crf.ipynbExperiment notebook for the CRF model. -
notebooks/05_compact_bilstm.ipynbExperiment notebook for the compact BiLSTM model.
notebooks/Primary experiment narrative and implementation used for the submitted case study.data/Raw benchmark data used by the notebooks.
The notebooks expect the raw UD English EWT files in data/raw/:
data/raw/en_ewt-ud-train.conlludata/raw/en_ewt-ud-dev.conlludata/raw/en_ewt-ud-test.conllu
The repository does not bundle these raw files. Download them from the Universal Dependencies repository and place them into data/raw/ before running the notebooks.
Dataset repository:
https://github.com/UniversalDependencies/UD_English-EWT
Example:
mkdir -p data/raw
curl -L https://raw.githubusercontent.com/UniversalDependencies/UD_English-EWT/master/en_ewt-ud-train.conllu -o data/raw/en_ewt-ud-train.conllu
curl -L https://raw.githubusercontent.com/UniversalDependencies/UD_English-EWT/master/en_ewt-ud-dev.conllu -o data/raw/en_ewt-ud-dev.conllu
curl -L https://raw.githubusercontent.com/UniversalDependencies/UD_English-EWT/master/en_ewt-ud-test.conllu -o data/raw/en_ewt-ud-test.conllu- Open
notebooks/01_data_and_benchmark.ipynb - Open the four model notebooks in order from
02to05 - Open
FINAL_REPORT.mdfor the final written conclusions
- The notebooks are intentionally structured, commented, and separated by purpose.
- The main implementation is intentionally embedded directly into the notebooks so the repository matches the expected notebook-centric submission format.
- Generated experiment artifacts are intended to appear in notebook cell outputs rather than be committed as separate result files.