def METHOD_NAME(self, toktype, debug=False):
    """
    Compute the overlap between text and hypothesis.
    :param toktype: distinguish Named Entities from ordinary words
    :type toktype: 'ne' or 'word'
    """
    ne_overlap = {token for token in self._overlap if self._ne(token)}
    if toktype == "ne":
        if debug:
            print("ne overlap", ne_overlap)
        return ne_overlap
    elif toktype == "word":
        if debug:
            print("word overlap", self._overlap - ne_overlap)
        return self._overlap - ne_overlap
    else:
        raise ValueError("Type not recognized:'%s'" % toktype)