From 6aabe589d88e7bedcab2987e6d8461514c98d71c Mon Sep 17 00:00:00 2001 From: John Giorgi Date: Sun, 25 Jun 2023 10:59:49 -0700 Subject: [PATCH] Add a note about make_serializable argument --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 041dcd1..c74af2c 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,10 @@ for abrv in doc._.abbreviations: >>> SBMA (6, 7) Spinal and bulbar muscular atrophy >>> AR (29, 30) androgen receptor ``` + +> **Note** +> If you want to be able to [serialize your `doc` objects](https://spacy.io/usage/saving-loading), load the abbreviation detector with `make_serializable=True`, e.g. `nlp.add_pipe("abbreviation_detector", config={"make_serializable": True})` + ### EntityLinker The `EntityLinker` is a SpaCy component which performs linking to a knowledge base. The linker simply performs