You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`PYTHAINLP_DATA`| Path to the data directory (default: `~/pythainlp-data`). | Current |
80
+
|`PYTHAINLP_DATA_DIR`| Legacy alias for `PYTHAINLP_DATA`. Emits a `DeprecationWarning`. Setting both raises `ValueError`. | Deprecated; use `PYTHAINLP_DATA`|
81
+
|`PYTHAINLP_OFFLINE`| Set to `1` to disable automatic corpus downloads. Explicit `download()` calls still work. | Current |
82
+
|`PYTHAINLP_READ_ONLY`| Set to `1` to enable read-only mode, which prevents implicit background writes to PyThaiNLP's internal data directory (corpus downloads, catalog updates, directory creation). Explicit user-initiated saves to user-specified paths are unaffected. | Current |
83
+
|`PYTHAINLP_READ_MODE`| Legacy alias for `PYTHAINLP_READ_ONLY`. Emits a `DeprecationWarning`. Setting both raises `ValueError`. | Deprecated; use `PYTHAINLP_READ_ONLY`|
84
+
85
+
### Data directory
76
86
77
87
PyThaiNLP downloads data (see the data catalog `db.json` at
|`PYTHAINLP_DATA`| Path to the data directory (default: `~/pythainlp-data`). | Current |
94
-
|`PYTHAINLP_DATA_DIR`| Legacy alias for `PYTHAINLP_DATA`. Emits a `DeprecationWarning`. Setting both raises `ValueError`. | Deprecated; use `PYTHAINLP_DATA`|
95
-
|`PYTHAINLP_OFFLINE`| Set to `1` to disable automatic corpus downloads. Explicit `download()` calls still work. | Current |
96
-
|`PYTHAINLP_READ_ONLY`| Set to `1` to enable read-only mode, which prevents implicit background writes to PyThaiNLP's internal data directory (corpus downloads, catalog updates, directory creation). Explicit user-initiated saves to user-specified paths are unaffected. | Current |
97
-
|`PYTHAINLP_READ_MODE`| Legacy alias for `PYTHAINLP_READ_ONLY`. Emits a `DeprecationWarning`. Setting both raises `ValueError`. | Deprecated; use `PYTHAINLP_READ_ONLY`|
98
-
99
99
### Offline mode
100
100
101
101
Set `PYTHAINLP_OFFLINE=1` to disable **automatic** corpus downloads.
0 commit comments