Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stanfordnlp/stanza.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stanza/pipeline/multilingual.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/stanza/pipeline/multilingual.py b/stanza/pipeline/multilingual.py
index 00ca6ed7..f8ab6abd 100644
--- a/stanza/pipeline/multilingual.py
+++ b/stanza/pipeline/multilingual.py
@@ -84,7 +84,7 @@ class MultilingualPipeline:
# clear least recently used lang from pipeline cache
if len(self.pipeline_cache) == self.max_cache_size:
lru_lang = self.lang_request_history[0]
- self.pipeline_cache.remove(lru_lang)
+ self.pipeline_cache.pop(lru_lang)
self.lang_request_history.remove(lru_lang)
self.pipeline_cache[lang] = Pipeline(dir=self.model_dir, **self.lang_configs[lang])