Skip to content

Commit aeac7b6

Browse files
committed
🗑️ refactor(infer.py): remove outdated fallback policy and cache directory behavior comments for clarity
1 parent b775f8c commit aeac7b6

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/fast_langdetect/infer.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""
33
FastText based language detection module.
4-
5-
Fallback policy (keep it simple):
6-
- Only MemoryError triggers fallback: when loading the large model with
7-
low_memory=False raises MemoryError, smart 会回退到小模型。
8-
- No fallback for I/O/network/integrity errors: download failures, offline,
9-
invalid path, permission issues, verification failures all raise DetectError.
10-
11-
Cache directory behavior:
12-
- Default cache (FTLANG_CACHE or internal temp-based path) is auto-created.
13-
- If a user-specified cache_dir does not exist, raise DetectError rather than
14-
silently creating or using another location.
154
"""
165

176
import logging

0 commit comments

Comments
 (0)