Making the “YLD Happy Police” Slack Bot

Tom Gallacher
Jul 8 · 3 min read
https://www.pexels.com/photo/glass-bottles-on-shelf-1771809/
We have a #yelling channel, it is great :D And our ML Bot is using Slack reactions!
#!/usr/bin/env python3.7pip install ludwig
pip install tensorflow-gpu==1.13.1
python -m spacy download en
comment_text,toxic,severe_toxic,obscene,threat,insult,identity_hate
input_features:
- name: comment_text
type: text
level: word
encoder: parallel_cnn
preprocessing:
lowercase: true
output_features:
- name: toxic
type: binary
- name: severe_toxic
type: binary
- name: threat
type: binary
- name: insult
type: binary
- name: obscene
type: binary
- name: identity_hate
type: binary

YLD Blog

YLD's latest thoughts on Software Engineering, Design and Digital Products

Tom Gallacher

Written by

🏎️🛣️🚴👨‍💻🍺. Linux performance privateer & DevOps extraordinaire, Often seen happily writing code without any knowledge of his surroundings. @YLDio

YLD Blog

YLD Blog

YLD's latest thoughts on Software Engineering, Design and Digital Products