Typeerror from docs:
Raised when an operation or function is applied to an object of inappropriate type. The associated value is a string giving details about the type mismatch.
At you case you have a function names res_similarity()
that need to take 2 arguments.
The reason you see 3 and 2 given is because it has also self
.
For example res_similarity(self, arg1, arg2)
you are passing only 1 parameter - s2
You need to pass one more parameter to this method