2014-07-06 22:29:30 +02:00
|
|
|
node-red-node-wordpos
|
|
|
|
=====================
|
|
|
|
|
2016-03-02 14:24:56 +01:00
|
|
|
A <a href="http://nodered.org" target="_new">Node-RED</a> node that breaks a sentence into the various parts of (English) speech.
|
2014-07-06 22:29:30 +02:00
|
|
|
|
|
|
|
Install
|
|
|
|
-------
|
|
|
|
|
2016-03-02 14:24:56 +01:00
|
|
|
Run the following command in your Node-RED user directory - typically `~/.node-red`
|
2014-07-06 22:29:30 +02:00
|
|
|
|
|
|
|
npm install node-red-node-wordpos
|
|
|
|
|
|
|
|
|
|
|
|
Usage
|
|
|
|
-----
|
|
|
|
|
2016-03-02 14:24:56 +01:00
|
|
|
Uses the wordpos npm to analyse the `msg.payload` and classify the part-of-speech of each word.
|
2014-07-06 22:29:30 +02:00
|
|
|
|
2016-03-02 14:24:56 +01:00
|
|
|
The resulting message has a `msg.pos` object added with the results split into the following:
|
2014-07-06 22:29:30 +02:00
|
|
|
|
|
|
|
nouns:[],
|
|
|
|
verbs:[],
|
|
|
|
adjectives:[],
|
|
|
|
adverbs:[],
|
|
|
|
rest:[]
|
|
|
|
|
|
|
|
**Note:** a word may appear in multiple POS (eg, 'great' is both a noun and an adjective).
|