changed calamancy version
Browse filesFiles changed (3)
- Dockerfile+3
- feature_core.py+14-1
- requirements.txt+1-1
17 unmodified lines18192021222317 unmodified linesCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# Copy the rest of your appCOPY . .17 unmodified lines18192021222324252617 unmodified linesCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# Pre-download CalamanCy model during image build so runtime startup is stable.RUN python -c "import calamancy; calamancy.load('tl_calamancy_md-0.2.0')"# Copy the rest of your appCOPY . .
5 unmodified lines67891011125 unmodified linesdef load_nlp_model(model_name: str = "tl_calamancy_md-0.2.0"):"""Load the CalamanCy model once for either training or web inference."""return calamancy.load(model_name)def merge_dash_sentences(doc) -> List:5 unmodified lines6789101112131415161718192021222324255 unmodified linesdef load_nlp_model(model_name: str = "tl_calamancy_md-0.2.0"):"""Load the CalamanCy model once for either training or web inference."""candidates = [model_name, "tl_calamancy_md-0.2.0", "tl_calamancy_md"]seen = set()errors = []for candidate in candidates:if candidate in seen:continueseen.add(candidate)try:return calamancy.load(candidate)except Exception as exc:errors.append(f"{candidate}: {exc}")raise RuntimeError("Failed to load any CalamanCy model variant. " + " | ".join(errors))def merge_dash_sentences(doc) -> List:
3 unmodified lines456789103 unmodified linespandas==2.2.2numpy==1.26.4scikit-learn==1.7.2calamancy==0.2.0gunicorn==21.2.0setuptools>=69.0.0wheel>=0.42.03 unmodified lines456789103 unmodified linespandas==2.2.2numpy==1.26.4scikit-learn==1.7.2calamancy==0.2.2gunicorn==21.2.0setuptools>=69.0.0wheel>=0.42.0
Dockerfile+3
feature_core.py+14-1
requirements.txt+1-1