Skip to content

Commit 83f656b

Browse files
committed
clean-up
1 parent 7af17c0 commit 83f656b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

text_preprocessing/preprocessor.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,6 @@ def __init__(self, vocab):
310310
self.vocab = vocab
311311

312312
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:
319313
try:
320314
return spacy.tokens.Doc(self.vocab, words=[t.text for t in tokens])
321315
except AttributeError:

0 commit comments

Comments
 (0)