I have used Weka to classify my dataset using libSVM. I have received Sensitivity and Specificity values for my dataset. Is it possible to calculate accuracy using these two parameters.
So, generally speaking, it is impossible. But if you know (Am_TP + Am_FN) - amount of all positive objects or (Am_TN + Am_FP) - amount of all negative objects, or some else (e.g., Am_TP/Am_TN), it is, of course, possible.
Not sure if you can derive accuracy (ACC) from TPR and TNR, but if you know the total number of Positive and the total number Negative examples in your test data (Lets call it A and B, respectively), you may be able to compute ACC. Let's call the number of true positives given by your algorithm a and the number of true negatives b.
Since:
TPR = a/A
and
TNR = b/B
Then you can infer a and b and them compute ACC:
ACC = (a + b)/(A + B)
Hope it can help, but I think you also should be able to set Weka to output ACC, which would make you life easier.