Repository for CS 591 W1 Active Learning in Machine Translation and Error Classification.
- Navigate to Experiments/Error Classification/Generate Error Labels For Translations.ipynb
- Run the code under different sections marked in the file. Remember to change paths where applicable for the machine translation results and also for loading the pre-trained Error Classification model.
- Navigate to Experiments/Error Classification/classification_stats.ipynb
- Change paths where applicable for the main folder where the error labels are present (by default in the code, the error_predictions.csv file is stored under the same directory of the machine translation results under the specific layer/head for a particular budget).
- Run the code under different sections marked in the file.
- Navigate to Experiments/Error Classification/classification_plots.ipynb
- Change paths where applicable.
- Run the code under different marked down sections in the file for specific plots.