Skip to content

BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications.

refactor(spacy_models): remove unused language models from SPACY_MODEL_NAMES and update tests accordingly

Christianfc820ae095ab
diff --git a/src/constants/spacy_models.py b/src/constants/spacy_models.py
index de1c683..8c7c52a 100644
--- a/src/constants/spacy_models.py
+++ b/src/constants/spacy_models.py
@@ -10,15 +10,4 @@ SPACY_MODEL_NAMES = {
"zh": "zh_core_web_sm",
"ja": "ja_core_news_sm",
"ko": "ko_core_news_sm",
- "ar": "ar_core_news_sm",
- "hi": "hi_core_news_sm",
- "bn": "bn_core_news_sm",
- "pa": "pa_core_news_sm",
- "ml": "ml_core_news_sm",
- "id": "id_core_news_sm",
- "ms": "ms_core_news_sm",
- "fil": "fil_core_news_sm",
- "lo": "lo_core_news_sm",
- "my": "my_core_news_sm",
- "km": "km_core_news_sm",
}
diff --git a/tests/test_spacy_fixes_verification.py b/tests/test_spacy_fixes_verification.py
index 0389085..abdcf85 100644
--- a/tests/test_spacy_fixes_verification.py
+++ b/tests/test_spacy_fixes_verification.py
@@ -52,7 +52,24 @@ class TestDockerfileSpacyModels(unittest.TestCase):
def test_no_languages_without_spacy_3_8_pipelines(self):
from src.constants.spacy_models import SPACY_MODEL_NAMES
- for code in ("ta", "te", "th", "tr", "vi"):
+ for code in (
+ "ar",
+ "bn",
+ "fil",
+ "hi",
+ "id",
+ "km",
+ "lo",
+ "ml",
+ "ms",
+ "my",
+ "pa",
+ "ta",
+ "te",
+ "th",
+ "tr",
+ "vi",
+ ):
self.assertNotIn(code, SPACY_MODEL_NAMES)