Skip to content

Commit dc6fb07

Browse files
chore: test on node 18 and update README
1 parent 3018cc3 commit dc6fb07

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,17 @@ Use [npm](https://www.npmjs.com/package/wink-nlp) install:
5151
npm install wink-nlp --save
5252
```
5353

54-
In order to use winkNLP after its installation, you also need to install a language model. The following command installs the latest version of default language model — the light weight English language model called [wink-eng-lite-model](https://github.com/winkjs/wink-eng-lite-model).
54+
In order to use winkNLP after its installation, you also need to install a language model according to the node version used. The following table outlines the version specific installation command:
5555

56-
```shell
57-
node -e "require( 'wink-nlp/models/install' )"
58-
```
59-
Any required model can be installed by specifying its name as the last parameter in the above command. For example:
60-
```shell
61-
node -e "require( 'wink-nlp/models/install' )" wink-eng-lite-model
62-
```
56+
| Node.js Version |Installation |
57+
| --- | --- |
58+
| 16 or 18 | `npm wink-eng-lite-web-model --save` |
59+
| 14 or older | `node -e "require('wink-nlp/models/install')"` |
60+
61+
The [wink-eng-lite-web-model](https://github.com/winkjs/wink-eng-lite-web-model) is designed to work with Node.js version 16 or 18. The second command installs the [wink-eng-lite-model](https://github.com/winkjs/wink-eng-lite-model), which works with Node.js version 14 or older. It can also work on browsers as described in the next section.
6362

6463
### How to install for Web Browser
65-
If you’re using winkNLP in the browser use the [wink-eng-lite-web-model](https://www.npmjs.com/package/wink-eng-lite-web-model) instead. Learn about its installation and usage in our [guide to using winkNLP in the browser](https://winkjs.org/wink-nlp/wink-nlp-in-browsers.html).
64+
If you’re using winkNLP in the browser use the [wink-eng-lite-web-model](https://www.npmjs.com/package/wink-eng-lite-web-model) instead. Learn about its installation and usage in our [guide to using winkNLP in the browser](https://winkjs.org/wink-nlp/wink-nlp-in-browsers.html). Explore **[winkNLP recipes](https://observablehq.com/collection/@winkjs/winknlp-recipes)** on [Observable](https://observablehq.com/) for live browser based examples.
6665

6766
## Getting Started
6867
The "Hello World!" in winkNLP is given below:

0 commit comments

Comments
 (0)