code: def calculate(self, token_list_x, token_list_y):
          '''
          Calculate similarity with the Jaccard coefficient.
          
          Concrete method.
          
          Args:
              token_list_x:    [token, token, token, ...]
              token_list_y:    [token, token, token, ...]
          
          Returns:
              Similarity.
          '''
  
          x, y = self.unique(token_list_x, token_list_y)
          try:
              result = len(x & y) / len(x | y)
          except ZeroDivisionError:
              result = 0.0
          return resulf calculate(self, token_list_x, token_list_y):
          '''
          Calculate similarity with the Jaccard coefficient.
          
          Concrete method.
          
          Args:
              token_list_x:    [token, token, token, ...]
              token_list_y:    [token, token, token, ...]
          
          Returns:
              Similarity.
          '''
  
          x, y = self.unique(token_list_x, token_list_y)
          try:
              result = len(x & y) / len(x | y)
          except ZeroDivisionError:
              result = 0.0
          return result
docs: Calculate similarity with the Jaccard coefficient.
          
          Concrete method.
          
          Args:
              token_list_x:    [token, token, token, ...]
              token_list_y:    [token, token, token, ...]
          
          Returns:
              Similarity.