mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Merge pull request #633 from tjrileywisc/master
Fixed a minor typo in deep learning tutorial docs.
This commit is contained in:
commit
caa84e3a12
|
@ -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