Skip to content

Instantly share code, notes, and snippets.

@ixixi
Last active August 29, 2015 14:03
Show Gist options
  • Save ixixi/d7da4683cd4a7ba11f28 to your computer and use it in GitHub Desktop.
Save ixixi/d7da4683cd4a7ba11f28 to your computer and use it in GitHub Desktop.
nicolive_norikra.conf
<source>
type forward
</source>
<match nicolive.comment>
type exec_filter
command node /path/to/analyze_comment_wrapper.js
in_format json
out_format msgpack
tag nicolive.classified
flush_interval 1s
</match>
<match nicolive.classified>
type norikra
target_map_tag yes
</match>
<source>
type norikra
norikra localhost:26571
<fetch>
method event
target last_comment
tag string result.msg
interval 1s
</fetch>
<fetch>
method event
target raw_score
tag string result.score
interval 1s
</fetch>
<fetch>
method event
target exp_decay
tag string result.exp_decay
interval 1s
</fetch>
<fetch>
method event
target mood_score
tag string result.mood_score
interval 1s
</fetch>
<fetch>
method event
target abstract_mood_score
tag string result.abstract_mood_score
interval 1s
</fetch>
</source>
<match result.**>
type websocket
port 25258
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment