Skip to content

How to use PyThaiNLP without internet connection #571

Closed Answered by bact
ranyaphat29 asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by wannaphong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants