From 5205e4dfeec541167482541b547c3a8e3e292bf8 Mon Sep 17 00:00:00 2001 From: NHLOCAL Date: Thu, 27 Jul 2023 00:41:12 +0300 Subject: [PATCH] Optimizing the example code Significantly shortening the import time According to timeit, a normal spacy import will take 5.268464000000002 seconds Import of the specific load model, length 0.3568790000000064 seconds only --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3b64d44..e7f2e08 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,9 @@ pip install ## Getting started ```python -import spacy +from spacy import load -nlp = spacy.load("he_ner_news_trf") +nlp = load("he_ner_news_trf") text = """מרגלית דהן מספר זהות 11278904-5