mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Fixed a minor typo in deep learning tutorial docs.
This commit is contained in:
parent
718e66a7b9
commit
464a4f3f6f
|
@ -71,7 +71,7 @@ p
|
||||||
def pipe(self, docs, batch_size=1000, n_threads=2):
|
def pipe(self, docs, batch_size=1000, n_threads=2):
|
||||||
for minibatch in cytoolz.partition_all(batch_size, docs):
|
for minibatch in cytoolz.partition_all(batch_size, docs):
|
||||||
Xs = get_features(minibatch)
|
Xs = get_features(minibatch)
|
||||||
ys = self._model.predict(X)
|
ys = self._model.predict(Xs)
|
||||||
for i, doc in enumerate(minibatch):
|
for i, doc in enumerate(minibatch):
|
||||||
doc.sentiment = ys[i]
|
doc.sentiment = ys[i]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user