Adjust formatting [ci skip]

This commit is contained in:
Ines Montani 2020-02-03 13:00:02 +01:00
parent 02a44c5be2
commit abd5c06374

View File

@ -72,15 +72,16 @@ Find all token sequences matching the supplied patterns on the `Doc`.
<Infobox title="Note on retrieving the string representation of the match_id" variant="warning"> <Infobox title="Note on retrieving the string representation of the match_id" variant="warning">
Because spaCy stores all strings as integers, the match_id you get back will be an integer, too but you can always get the string representation by looking it up in the vocabulary's StringStore, i.e. nlp.vocab.strings: Because spaCy stores all strings as integers, the `match_id` you get back will
be an integer, too but you can always get the string representation by looking
it up in the vocabulary's `StringStore`, i.e. `nlp.vocab.strings`:
``` ```python
match_id_string = nlp.vocab.strings[match_id] match_id_string = nlp.vocab.strings[match_id]
``` ```
</Infobox> </Infobox>
## PhraseMatcher.pipe {#pipe tag="method"} ## PhraseMatcher.pipe {#pipe tag="method"}
Match a stream of documents, yielding them in turn. Match a stream of documents, yielding them in turn.