We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7af17c0 commit 83f656bCopy full SHA for 83f656b
text_preprocessing/preprocessor.py
@@ -310,12 +310,6 @@ def __init__(self, vocab):
310
self.vocab = vocab
311
312
def __call__(self, tokens):
313
- # if isinstance(tokens, list):
314
- # try:
315
- # return spacy.tokens.Doc(self.vocab, words=[t.text for t in tokens])
316
- # except AttributeError:
317
- # return spacy.tokens.Doc(self.vocab, words=tokens)
318
- # else:
319
try:
320
return spacy.tokens.Doc(self.vocab, words=[t.text for t in tokens])
321
except AttributeError:
0 commit comments