parameters: (cls, a, b)
return_statement: return float(len(a & b)) / len(a | b)
docstring: Compute the similarity of two core sets.
  
      We use the Jaccard index. See https://goo.gl/LmqQRS for discussion.
  
      Args:
        a: The first core set, as a set of strings.
        b: The second core set, as a set of strings.
  
      Returns:
        A similarity score between zero and one. If both sets are empty the
        similarity is zero.
docstring_summary: Compute the similarity of two core sets.
docstring_tokens: Compute the similarity of two core sets .
function: def CoreSimilarity(cls, a, b):
      """Compute the similarity of two core sets.
  
      We use the Jaccard index. See https://goo.gl/LmqQRS for discussion.
  
      Args:
        a: The first core set, as a set of strings.
        b: The second core set, as a set of strings.
  
      Returns:
        A similarity score between zero and one. If both sets are empty the
        similarity is zero.
      """
      if not a and not b:
        return 0
      return float(len(a & b)) / len(a | b)
function_tokens: def CoreSimilarity ( cls , a , b ) : if not a and not b : return 0 return float ( len ( a & b ) ) / len ( a | b )