SoftwareApplication
name: What does a Text Classifier Learn about Morality? An Explainable Method for Cross-Domain Comparison of Moral Rhetoric - code
description: What does a Text Classifier Learn about Morality? An Explainable Method for Cross-Domain Comparison of Moral Rhetoric - code
description: Code for the paper "What does a Text Classifier Learn about Morality? An Explainable Method for Cross-Domain Comparison of Moral Rhetoric", published at ACL '23. This code implements Tomea, an Explainable AI method for investigating the difference in how language models represent morality across domains. Given a pair of datasets and models trained on the datasets, Tomea generates 10 m-distances and one d-distance to measure the difference between the datasets, based on the SHAP method. We make pairwise comparisons of seven models trained on the MFTC datasets (available at this DOI: 10.4121/646b20e3-e24f-452d-938a-bcb6ce30913c).
code repository: https://data.4tu.nl/v3/datasets/14693061-797f-4105-b4b3-812c7cbcd759.git
author: https://orcid.org/0000-0002-8285-5867
author: https://orcid.org/0000-0003-3224-0001
author: https://orcid.org/0000-0003-2422-5055
author: https://orcid.org/0009-0003-5494-0161
author: https://orcid.org/0000-0003-4780-7461
author: https://orcid.org/0000-0001-8068-5916
author: https://orcid.org/0000-0002-1261-6908
keywords: NLP
keywords: explainable artificial intelligence
keywords: Morality
keywords: Ethics
keywords: Natural Language Processing
keywords: XAI
programming language: Markdown
programming language: Other
programming language: Python
license:
  creative work: creativeWork
    name: MIT
reference publication: 2023.acl-long.789

https://orcid.org/0000-0002-8285-5867
type: Person
given name: Enrico
family name: Liscio
name: Enrico Liscio

https://orcid.org/0000-0003-3224-0001
type: Person
given name: Oscar
family name: Araque
name: Oscar Araque

https://orcid.org/0000-0003-2422-5055
type: Person
given name: Lorenzo
family name: Gatti
name: Lorenzo Gatti

https://orcid.org/0009-0003-5494-0161
type: Person
given name: Ionut
family name: Constantinescu
name: Ionut Constantinescu

https://orcid.org/0000-0003-4780-7461
type: Person
given name: C.M.
family name: (Catholijn) Jonker
name: C.M. (Catholijn) Jonker

https://orcid.org/0000-0001-8068-5916
type: Person
given name: Kyriaki
family name: Kalimeri
name: Kyriaki Kalimeri

https://orcid.org/0000-0002-1261-6908
type: Person
given name: Pradeep K.
family name: Murukannaiah
name: Pradeep K. Murukannaiah

2023.acl-long.789
type: ScholarlyArticle
name: What does a Text Classifier Learn about Morality? An Explainable Method for Cross-Domain Comparison of Moral Rhetoric
pagination: 14113-14132
url: https://doi.org/10.18653%2Fv1%2F2023.acl-long.789