CW_ (for "content warning") as part of the title, and contain a forward indicating the presence of hateful language.CW_ (or test_CW_ in the case of pytest files) contain hateful slurs and terms within them.The written report for the project is viewable here.
pip install -r"requirements.txt"python3 src/path/to/script.pydatasets/collect_datasets.pydatasets/preprocess_hatexplain.py
To train models, the models/hyperparameter_sweep.py file can be called. This will iterate over the different model configs set out in that file.
Otherwise, you can call each of the base files (e.g bert_with_attention_entropy.py) and adjust parameter settings inside that to change your model configs.
The other files contain helper functions and structures to minimise the amount of code that clutters up the main files, in an effort to make the logic more readable.
To run the tests, from the root of the repo, you can just call
pytest tests
8 commits
Python
100.0%
CW_ (for "content warning") as part of the title, and contain a forward indicating the presence of hateful language.CW_ (or test_CW_ in the case of pytest files) contain hateful slurs and terms within them.The written report for the project is viewable here.
pip install -r"requirements.txt"python3 src/path/to/script.pydatasets/collect_datasets.pydatasets/preprocess_hatexplain.py
To train models, the models/hyperparameter_sweep.py file can be called. This will iterate over the different model configs set out in that file.
Otherwise, you can call each of the base files (e.g bert_with_attention_entropy.py) and adjust parameter settings inside that to change your model configs.
The other files contain helper functions and structures to minimise the amount of code that clutters up the main files, in an effort to make the logic more readable.
To run the tests, from the root of the repo, you can just call
pytest tests
8 commits
Python
100.0%