From dba4e7becedeeca9d920439e271702680d7e7122 Mon Sep 17 00:00:00 2001
From: Edward <43848523+thomashacker@users.noreply.github.com>
Date: Mon, 27 Mar 2023 13:15:14 +0200
Subject: [PATCH] Add info to stringstore and vocab (#12471)
---
website/docs/api/stringstore.mdx | 7 +++++++
website/docs/api/vocab.mdx | 7 +++++++
2 files changed, 14 insertions(+)
diff --git a/website/docs/api/stringstore.mdx b/website/docs/api/stringstore.mdx
index 47d3715c1..6a3e9d664 100644
--- a/website/docs/api/stringstore.mdx
+++ b/website/docs/api/stringstore.mdx
@@ -8,6 +8,13 @@ Look up strings by 64-bit hashes. As of v2.0, spaCy uses hash values instead of
integer IDs. This ensures that strings always map to the same ID, even from
different `StringStores`.
+
+
+Note that a `StringStore` instance is not static. It increases in size as texts
+with new tokens are processed.
+
+
+
## StringStore.\_\_init\_\_ {id="init",tag="method"}
Create the `StringStore`.
diff --git a/website/docs/api/vocab.mdx b/website/docs/api/vocab.mdx
index 131e4ce0a..fe774d1a8 100644
--- a/website/docs/api/vocab.mdx
+++ b/website/docs/api/vocab.mdx
@@ -10,6 +10,13 @@ The `Vocab` object provides a lookup table that allows you to access
[`StringStore`](/api/stringstore). It also owns underlying C-data that is shared
between `Doc` objects.
+
+
+Note that a `Vocab` instance is not static. It increases in size as texts with
+new tokens are processed.
+
+
+
## Vocab.\_\_init\_\_ {id="init",tag="method"}
Create the vocabulary.