now span.merge returns token like it says on documentation

This commit is contained in:
tiago 2016-11-09 14:58:19 +00:00
parent bb33c30f77
commit b38cfd0ef9

View File

@ -99,7 +99,7 @@ cdef class Span:
token (Token): token (Token):
The newly merged token. The newly merged token.
""" """
self.doc.merge(self.start_char, self.end_char, *args, **attributes) return self.doc.merge(self.start_char, self.end_char, *args, **attributes)
def similarity(self, other): def similarity(self, other):
'''Make a semantic similarity estimate. The default estimate is cosine '''Make a semantic similarity estimate. The default estimate is cosine