improve pipe, tee, izip explanation

Use an example from an old issue https://github.com/explosion/spaCy/issues/172#issuecomment-183963403.
This commit is contained in:
Gideon Dresdner 2017-08-06 13:21:45 +02:00 committed by GitHub
parent 864cefd3b2
commit 7e98a3613c

View File

@ -98,7 +98,8 @@ p
| important metadata, e.g. a JSON document. To pair up the metadata
| with the processed #[code Doc] object, you should use the tee
| function to split the generator in two, and then #[code izip] the
| extra stream to the document stream.
| extra stream to the document stream. Here's an
| #[a(href="https://github.com/explosion/spaCy/issues/172#issuecomment-183963403")= "example"]
+h(2, "own-annotations") Bringing your own annotations