Storage of License Data and License Search behaviour
The John Snow Labs library caches license data in
~/.johnsnowlabs/licenses whenever a new one is provided .
After having provided license data once, you don’t need to specify it again since the cached licensed will be used.
remote_license_number parameters to switch between multiple licenses.
Note: Locally cached licenses are numbered in the order they have been provided, starting at 0.
remote_license_number=0 might not be the same as
Use the following functions to see all your avaiable licenses.
List all available licenses
This shows you all licenses for your account in https://my.johnsnowlabs.com/ .
Use this to decide which license number to install when installing via browser or access token.
List all locally cached licenses
Use this to decide which license number to use when using nlp.start() or nlp.install() to specify which local license you want to load.
License Search precedence
If there are multiples possible sources for licenses, the following order takes precedence:
- Manually provided license data by defining all license parameters.
- Browser/ Access Token.
Os environment Variablesfor any var names that match up with secret names.
/content/*.jsonfor any json file smaller than 1 MB.
current_working_dir/*.jsonfor any json smaller than 1 MB.
~/.johnsnowlabs/licensesfor any licenses.
JSON files are scanned if they have any keys that match up with names of secrets.
Name of the json file does not matter, file just needs to end with .json.