This repo contains the results of the work "Structure or Content? Towards assessing Argument Relevance".
The data from /Webis-ArgRank-17-Dataset
is here available.
Python >= 3.6
is expected.
First, all packages must be installed using:
$ pip install -r requirements.txt
Afterwards the spacy
language pack en
must be installed. For this purpose it should be used:
$ python -m spacy download en
Make sure this will install en_core_web_sm==2.1.0
.
It is very important to follow the steps in the given order, since otherwise the results may differ due to different hardware setups.
- Run
Groundtruth-Graph.ipynb
to create the argumentation-graph - Run
Remapping-Graph.ipynb
to give each node a unique ID in [0, N-1] - Run
OriginalPageRank.py
to create all PageRank values for the graph given the alpha-values in [0, 1] - Run
Embeddings.py
to generate the BERT and EMLo embeddings - Run
NeuronalNetworkSentimentClassification.py
to train the neuronal network for predicting sentiment - Run
PageRankAnalysis.ipynb
to generate figure 1 of our paper - Run
VisualizationOfResults.ipynb
to generate figure 2 of our paper - Run
RankingOfArguments.ipynb
to generate table 1 of our paper