mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Adjust formatting [ci skip]
This commit is contained in:
parent
02a44c5be2
commit
abd5c06374
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user