├── .github └── workflows │ └── pylint.yml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── MANIFEST.in ├── README.md ├── docs ├── README_advanced_mode.md └── experiments.md ├── features ├── crowdtruth │ ├── README.md │ ├── crowd_cause_features_ud.json │ ├── crowd_treat_features_ud.json │ ├── crowdtruth.ipynb │ └── data.sh ├── food │ ├── README.md │ ├── data.sh │ ├── food.ipynb │ ├── food_cause_features_ud.json │ └── food_treat_features_ud.json ├── hasoc │ ├── 2019_train_features.json │ ├── 2020_train_features_task1.json │ ├── 2021_train_features_task1.json │ ├── README.md │ ├── data.sh │ ├── hasoc_2019_test_normalized.csv │ ├── hasoc_2019_train_normalized.csv │ ├── hasoc_2020_en_test_new_normalized.csv │ ├── hasoc_2020_en_train_new.xlsx │ ├── hasoc_2020_en_train_new_normalized.csv │ ├── hasoc_2021_test_normalized.csv │ └── hasoc_2021_train_normalized.csv └── semeval │ ├── README.md │ ├── data.sh │ └── test_features.json ├── files ├── potato_logo.png └── re_example.svg ├── frontend ├── __init__.py ├── app.py └── utils.py ├── notebooks ├── hasoc_examples.ipynb ├── openie.ipynb └── relation_examples.ipynb ├── scripts ├── convert_pickle.py ├── convert_rules.py ├── evaluate.py ├── evaluate_hatexplain.py └── read_hatexplain.py ├── services └── main.py ├── setup.cfg ├── setup.py ├── tests ├── features.json ├── features.tsv ├── features_openie.tsv └── test_ruleset.py └── xpotato ├── __init__.py ├── dataset ├── __init__.py ├── dataset.py ├── explainable_dataset.py ├── explainable_sample.py ├── relation_dataset.py ├── relation_sample.py ├── sample.py └── utils.py ├── features ├── __init__.py └── utils.py ├── graph_extractor ├── __init__.py ├── extract.py ├── graph.py └── rule.py └── models ├── __init__.py ├── model.py ├── trainer.py └── utils.py /.github/workflows/pylint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/.github/workflows/pylint.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/.gitignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | recursive-include xpotato * -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/README.md -------------------------------------------------------------------------------- /docs/README_advanced_mode.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/docs/README_advanced_mode.md -------------------------------------------------------------------------------- /docs/experiments.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/docs/experiments.md -------------------------------------------------------------------------------- /features/crowdtruth/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/crowdtruth/README.md -------------------------------------------------------------------------------- /features/crowdtruth/crowd_cause_features_ud.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/crowdtruth/crowd_cause_features_ud.json -------------------------------------------------------------------------------- /features/crowdtruth/crowd_treat_features_ud.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/crowdtruth/crowd_treat_features_ud.json -------------------------------------------------------------------------------- /features/crowdtruth/crowdtruth.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/crowdtruth/crowdtruth.ipynb -------------------------------------------------------------------------------- /features/crowdtruth/data.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/crowdtruth/data.sh -------------------------------------------------------------------------------- /features/food/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/food/README.md -------------------------------------------------------------------------------- /features/food/data.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/food/data.sh -------------------------------------------------------------------------------- /features/food/food.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/food/food.ipynb -------------------------------------------------------------------------------- /features/food/food_cause_features_ud.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/food/food_cause_features_ud.json -------------------------------------------------------------------------------- /features/food/food_treat_features_ud.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/food/food_treat_features_ud.json -------------------------------------------------------------------------------- /features/hasoc/2019_train_features.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/hasoc/2019_train_features.json -------------------------------------------------------------------------------- /features/hasoc/2020_train_features_task1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/hasoc/2020_train_features_task1.json -------------------------------------------------------------------------------- /features/hasoc/2021_train_features_task1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/hasoc/2021_train_features_task1.json -------------------------------------------------------------------------------- /features/hasoc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/hasoc/README.md -------------------------------------------------------------------------------- /features/hasoc/data.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/hasoc/data.sh -------------------------------------------------------------------------------- /features/hasoc/hasoc_2019_test_normalized.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/hasoc/hasoc_2019_test_normalized.csv -------------------------------------------------------------------------------- /features/hasoc/hasoc_2019_train_normalized.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/hasoc/hasoc_2019_train_normalized.csv -------------------------------------------------------------------------------- /features/hasoc/hasoc_2020_en_test_new_normalized.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/hasoc/hasoc_2020_en_test_new_normalized.csv -------------------------------------------------------------------------------- /features/hasoc/hasoc_2020_en_train_new.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/hasoc/hasoc_2020_en_train_new.xlsx -------------------------------------------------------------------------------- /features/hasoc/hasoc_2020_en_train_new_normalized.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/hasoc/hasoc_2020_en_train_new_normalized.csv -------------------------------------------------------------------------------- /features/hasoc/hasoc_2021_test_normalized.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/hasoc/hasoc_2021_test_normalized.csv -------------------------------------------------------------------------------- /features/hasoc/hasoc_2021_train_normalized.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/hasoc/hasoc_2021_train_normalized.csv -------------------------------------------------------------------------------- /features/semeval/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/semeval/README.md -------------------------------------------------------------------------------- /features/semeval/data.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/semeval/data.sh -------------------------------------------------------------------------------- /features/semeval/test_features.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/features/semeval/test_features.json -------------------------------------------------------------------------------- /files/potato_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/files/potato_logo.png -------------------------------------------------------------------------------- /files/re_example.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/files/re_example.svg -------------------------------------------------------------------------------- /frontend/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /frontend/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/frontend/app.py -------------------------------------------------------------------------------- /frontend/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/frontend/utils.py -------------------------------------------------------------------------------- /notebooks/hasoc_examples.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/notebooks/hasoc_examples.ipynb -------------------------------------------------------------------------------- /notebooks/openie.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/notebooks/openie.ipynb -------------------------------------------------------------------------------- /notebooks/relation_examples.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/notebooks/relation_examples.ipynb -------------------------------------------------------------------------------- /scripts/convert_pickle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/scripts/convert_pickle.py -------------------------------------------------------------------------------- /scripts/convert_rules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/scripts/convert_rules.py -------------------------------------------------------------------------------- /scripts/evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/scripts/evaluate.py -------------------------------------------------------------------------------- /scripts/evaluate_hatexplain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/scripts/evaluate_hatexplain.py -------------------------------------------------------------------------------- /scripts/read_hatexplain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/scripts/read_hatexplain.py -------------------------------------------------------------------------------- /services/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/services/main.py -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [metadata] 2 | description-file = README.md -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/setup.py -------------------------------------------------------------------------------- /tests/features.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/tests/features.json -------------------------------------------------------------------------------- /tests/features.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/tests/features.tsv -------------------------------------------------------------------------------- /tests/features_openie.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/tests/features_openie.tsv -------------------------------------------------------------------------------- /tests/test_ruleset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/tests/test_ruleset.py -------------------------------------------------------------------------------- /xpotato/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /xpotato/dataset/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /xpotato/dataset/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/xpotato/dataset/dataset.py -------------------------------------------------------------------------------- /xpotato/dataset/explainable_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/xpotato/dataset/explainable_dataset.py -------------------------------------------------------------------------------- /xpotato/dataset/explainable_sample.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/xpotato/dataset/explainable_sample.py -------------------------------------------------------------------------------- /xpotato/dataset/relation_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/xpotato/dataset/relation_dataset.py -------------------------------------------------------------------------------- /xpotato/dataset/relation_sample.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/xpotato/dataset/relation_sample.py -------------------------------------------------------------------------------- /xpotato/dataset/sample.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/xpotato/dataset/sample.py -------------------------------------------------------------------------------- /xpotato/dataset/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/xpotato/dataset/utils.py -------------------------------------------------------------------------------- /xpotato/features/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /xpotato/features/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/xpotato/features/utils.py -------------------------------------------------------------------------------- /xpotato/graph_extractor/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /xpotato/graph_extractor/extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/xpotato/graph_extractor/extract.py -------------------------------------------------------------------------------- /xpotato/graph_extractor/graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/xpotato/graph_extractor/graph.py -------------------------------------------------------------------------------- /xpotato/graph_extractor/rule.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/xpotato/graph_extractor/rule.py -------------------------------------------------------------------------------- /xpotato/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /xpotato/models/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/xpotato/models/model.py -------------------------------------------------------------------------------- /xpotato/models/trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/xpotato/models/trainer.py -------------------------------------------------------------------------------- /xpotato/models/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaamko/POTATO/HEAD/xpotato/models/utils.py --------------------------------------------------------------------------------