mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-13 07:55:49 +03:00
now span.merge returns token like it says on documentation
This commit is contained in:
parent
bb33c30f77
commit
b38cfd0ef9
|
@ -99,7 +99,7 @@ cdef class Span:
|
|||
token (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):
|
||||
'''Make a semantic similarity estimate. The default estimate is cosine
|
||||
|
|
Loading…
Reference in New Issue
Block a user