Hi,
The main metric is the F1-score over the sarcastic class (F1-sarcastic). You need the precision and recall to be calculated with respect to the sarcastic class and then using the mentioned equation. The precision and recall reported in the table are the macro-Precision and macro-Recall over the available classes, thus you cannot use them directly to the equation.
You can use the following to calculate the F1-sarcastic:
from sklearn.metrics import f1_score, precision_score, recall_score
f1_sarcastic = f1_score(truths,submitted, average = "binary", pos_label = 1)
OR
p_score_sarcastic = precision_score(truths,submitted, average = "binary", pos_label = 1)
r_score_sarcastic = recall_score(truths,submitted, average = "binary", pos_label = 1)
f1_sarcastic=(2*p_score_sarcastic*r_score_sarcastic)/(p_score_sarcastic+r_score_sarcastic)