mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Temporarily put back the tokenize_from_strings method, while tests aren't updated yet.
This commit is contained in:
parent
586206c7b8
commit
a36353df47
|
@ -107,10 +107,11 @@ cdef class Tokenizer:
|
||||||
return (self.__class__, args, None, None)
|
return (self.__class__, args, None, None)
|
||||||
|
|
||||||
cpdef Doc tokens_from_list(self, list strings):
|
cpdef Doc tokens_from_list(self, list strings):
|
||||||
raise NotImplementedError(
|
return Doc(self.vocab, words=strings)
|
||||||
"Method deprecated in 1.0.\n"
|
#raise NotImplementedError(
|
||||||
"Old: tokenizer.tokens_from_list(strings)\n"
|
# "Method deprecated in 1.0.\n"
|
||||||
"New: Doc(tokenizer.vocab, words=strings)")
|
# "Old: tokenizer.tokens_from_list(strings)\n"
|
||||||
|
# "New: Doc(tokenizer.vocab, words=strings)")
|
||||||
|
|
||||||
@cython.boundscheck(False)
|
@cython.boundscheck(False)
|
||||||
def __call__(self, unicode string):
|
def __call__(self, unicode string):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user