Skip to content

Commit 643fa6c

Browse files
authored
tableau#467 Update server-config.md to include nltk config options
1 parent d6f337a commit 643fa6c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/server-config.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ at [`logging.config` documentation page](https://docs.python.org/3.6/library/log
9191
value - `30`. This timeout does not apply when evaluating models either
9292
through the `/query` method, or using the `tabpy.query(...)` syntax with
9393
the `/evaluate` method.
94+
95+
`[nltk]` parameters:
96+
97+
- `NLTK_DOWNLOAD_PATH` - Set the NLTK download path. Defaul '~/nltk_data'.
98+
- `NLTK_PROXY` - Set the proxy server used for for NLTK `nltk.download()`.
99+
94100

95101
### Configuration File Example
96102

@@ -130,6 +136,14 @@ settings._
130136
# The value should be a float representing the timeout time in seconds.
131137
# TABPY_EVALUATE_TIMEOUT = 30
132138

139+
[nltk]
140+
# Set the download directory for nltk downloads.
141+
# NLTK_DOWNLOAD_PATH = ~/nltk_data
142+
143+
# If TabPy is behind a proxy and it needs to connect to the internet for
144+
# some tasks, you can define a proxy here.
145+
# NLTK_PROXY = http://proxy:3128
146+
133147
[loggers]
134148
keys=root
135149

0 commit comments

Comments
 (0)