Skip to content

Commit dba4e7b

Browse files
authored
Add info to stringstore and vocab (#12471)
1 parent 2fba21b commit dba4e7b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

website/docs/api/stringstore.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ Look up strings by 64-bit hashes. As of v2.0, spaCy uses hash values instead of
88
integer IDs. This ensures that strings always map to the same ID, even from
99
different `StringStores`.
1010

11+
<Infobox variant ="warning">
12+
13+
Note that a `StringStore` instance is not static. It increases in size as texts
14+
with new tokens are processed.
15+
16+
</Infobox>
17+
1118
## StringStore.\_\_init\_\_ {id="init",tag="method"}
1219

1320
Create the `StringStore`.

website/docs/api/vocab.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ The `Vocab` object provides a lookup table that allows you to access
1010
[`StringStore`](/api/stringstore). It also owns underlying C-data that is shared
1111
between `Doc` objects.
1212

13+
<Infobox variant ="warning">
14+
15+
Note that a `Vocab` instance is not static. It increases in size as texts with
16+
new tokens are processed.
17+
18+
</Infobox>
19+
1320
## Vocab.\_\_init\_\_ {id="init",tag="method"}
1421

1522
Create the vocabulary.

0 commit comments

Comments
 (0)