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
Copy file name to clipboardExpand all lines: README.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ See details in
93
93
|`PYTHAINLP_DATA`| Path to the data directory (default: `~/pythainlp-data`). | Current |
94
94
|`PYTHAINLP_DATA_DIR`| Legacy alias for `PYTHAINLP_DATA`. Emits a `DeprecationWarning`. Setting both raises `ValueError`. | Deprecated; use `PYTHAINLP_DATA`|
95
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 all write operations (downloads and catalog updates). | 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
97
|`PYTHAINLP_READ_MODE`| Legacy alias for `PYTHAINLP_READ_ONLY`. Emits a `DeprecationWarning`. Setting both raises `ValueError`. | Deprecated; use `PYTHAINLP_READ_ONLY`|
98
98
99
99
### Offline mode
@@ -111,8 +111,15 @@ print(pythainlp.is_offline_mode()) # True if PYTHAINLP_OFFLINE=1
111
111
112
112
### Read-only mode
113
113
114
-
Set `PYTHAINLP_READ_ONLY=1` to disable **all** write operations,
115
-
including both explicit and automatic corpus downloads as well as catalog updates.
114
+
Set `PYTHAINLP_READ_ONLY=1` to prevent implicit background writes to PyThaiNLP's
115
+
internal data directory. This blocks corpus downloads, catalog updates, and
116
+
automatic data directory creation — writes that happen as side effects the user
117
+
may not be aware of.
118
+
119
+
Operations where the user explicitly specifies an output path are unaffected
0 commit comments