From 8c91f5c0d83e245e8e8d031e93d8456b2e54677c Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 13 Mar 2019 14:25:23 +0000 Subject: [PATCH] revert sentiment node to English only to save loads of space both in memory and on disk --- analysis/sentiment/72-sentiment.html | 131 ++------------------------- analysis/sentiment/72-sentiment.js | 10 +- analysis/sentiment/README.md | 11 +-- analysis/sentiment/package.json | 6 +- 4 files changed, 14 insertions(+), 144 deletions(-) diff --git a/analysis/sentiment/72-sentiment.html b/analysis/sentiment/72-sentiment.html index bf25617e..c91e0459 100644 --- a/analysis/sentiment/72-sentiment.html +++ b/analysis/sentiment/72-sentiment.html @@ -1,120 +1,11 @@ - @@ -129,22 +20,13 @@

Inputs

-
words object
-
an object of words and scores to override or add words can be supplied - { word:score,... }.
-
-
-
lang string
-
Two letter cldr code to specify the language to use - from the list below
+
overrides object
+
an object of word score overrides can be supplied - { word:score,... }.

Details

A score greater than zero is positive and less than zero is negative.

The score typically ranges from -5 to +5, but can go higher and lower.

-

See the Sentiment docs here.

-

The node can also be configured to let the language be specified by setting msg.lang to one of the codes below

-

The language codes supported are - af, am, ar, az, be, bg, bn, bs, ca, ceb, co, cs, cy, da, de, el, en, eo, es, et, eu, fa, fi, - fr, fy, ga, gd, gl, gu, ha, haw, hi, hmn, hr, ht, hu, hy, id, ig, is, it, iw, ja, jw, ka, kk, km, kn, ko, ku, ky, la, lb, lo, lt, - lv, mg, mi, mk, ml, mn, mr, ms, mt, my, ne, nl, no, ny, pa, pl, ps, pt, ro, ru, sd, si, sk, sl, sm, sn, so, sq, sr, st, su, sv, - sw, ta, te, tg, th, tl, tr, uk, ur, uz, vi, xh, yi, yo, zh, zh-tw, zu

+

See the Sentiment docs here.