How to build confusion matrix , when predicted value and actual value is in sentence? I am building some model, which predict on basis of  highest probability from history and I am assuming this is best action.
I am comparing this with real action. 

Predicted : process resumed somedate2

Actual :  process resumed at somedate1

As both are similar and assumed this is correct prediction.

I have applied cosine similarity for same and doing comparison.

Is there any better way to compare same and to check accuracy ?

Any help will be appreciated.
You could create 2 new columns (1 for the truth, 1 for the prediction) which have a more generalised value like PROCESS_RESUMED. You can then use those columns to create the confusion matrix.