-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add sentiment and tail node translations
bump versions on npm
- Loading branch information
Dave Conway-Jones
committed
Dec 7, 2018
1 parent
d0f36dc
commit 20b2eac
Showing
7 changed files
with
106 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!-- | ||
Copyright JS Foundation and other contributors, http://js.foundation | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<script type="text/x-red" data-help-name="sentiment"> | ||
<p>指定したプロパティ(デフォルトは<code>payload</code>)を分析し、<code>sentiment</code>オブジェクトを追加します。</p> | ||
<h3>出力</h3> | ||
<dl class="message-properties"> | ||
<dt>sentiment <span class="property-type">オブジェクト</span></dt> | ||
<dd>AFINN-111による感情分析の結果</dd> | ||
<dt>sentiment.score <span class="property-type">数値</span></dt> | ||
<dd>感情分析スコア</dd> | ||
</dl> | ||
<h3>入力</h3> | ||
<dl class="message-properties"> | ||
<dt>overrides <span class="property-type">オブジェクト</span></dt> | ||
<dd>単語スコアの上書きをするためのオブジェクト - <code>{ word:score,... }</code></dd> | ||
</dl> | ||
<h3>詳細</h3> | ||
<p>ゼロ以上のスコアはポジティブ、ゼロ以下はネガティブを意味します。</p> | ||
<p>スコアの範囲は通常-5から+5ですが、より大きかったり小さかったりすることもあります。</p> | ||
<p>詳細は<a href="https://github.com/thisandagain/sentiment/blob/master/README.md" target="_blank">the Sentiment docs here</a>を参照してください。</p> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"sentiment": { | ||
"sentiment": "sentiment", | ||
"label": { | ||
"language": "言語" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!-- | ||
Copyright JS Foundation and other contributors, http://js.foundation | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<script type="text/x-red" data-help-name="tail"> | ||
<p>設定したファイルの末尾を出力(追加されたデータを監視)します。(Linux/Macのみ)</p> | ||
<p>このノードは<b>tail -F</b>コマンドを内部で利用しているため、Windowsファイルシステムでは動作しません。</p> | ||
<h3>出力</h3> | ||
<ul> | ||
<li>(UTF-8形式の)テキストファイルは文字列を返却。</li> | ||
<li>バイナルファイルはバッファオブジェクトを返却。</li> | ||
</ul> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"tail": { | ||
"tail": "tail", | ||
"label": { | ||
"filename": "ファイル名", | ||
"type": "ファイル形式", | ||
"splitlines": "改行でメッセージを分割", | ||
"name": "名前", | ||
"regex": "正規表現を使用" | ||
}, | ||
"action": { | ||
"text": "文字列", | ||
"binary": "バイナリバッファ" | ||
}, | ||
"errors": { | ||
"windowsnotsupport": "現在Windows上での動作は対応していません" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"tail": { | ||
"tail": "tail", | ||
"label": { | ||
"filename": "文件名", | ||
"type": "文件类型", | ||
"splitlines": "以\\n来拆分行?" | ||
}, | ||
"action": { | ||
"text": "文本 - 返回字符串", | ||
"binary": "二进制 - 返回Buffer" | ||
}, | ||
"errors": { | ||
"windowsnotsupport": "Windows目前不支持." | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters