How to use PyThaiNLP without internet connection #571
-
Hi all,
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Can you check a ssl certificate verify? Is date present? |
Beta Was this translation helpful? Give feedback.
-
Some data files that required by the lib is not immediately included with the lib. When a required data file is about to be used for the first time, the lib will try to install it - by download it from the internet. This is of course not a very good design, from the perspective of being self-contained and should be able to run without network. Workaround: You can try to install those data files when you have internet connection. Once installed, they can be use without internet connection. Please refer to https://github.com/pythainlp/pythainlp#command-line-interface for the command line interface that you can use to install data files. |
Beta Was this translation helpful? Give feedback.
Some data files that required by the lib is not immediately included with the lib.
When a required data file is about to be used for the first time, the lib will try to install it - by download it from the internet.
( https://raw.githubusercontent.com/PyThaiNLP/pythainlp-corpus/2.2/db.json is basically a list of data files and where they can be download from )
This is of course not a very good design, from the perspective of being self-contained and should be able to run without network.
Workaround: You can try to install those data files when you have internet connection. Once installed, they can be use without internet connection.
Please refer to https://github.com/pythainlp/pythainlp#c…