Skip to content

Instantly share code, notes, and snippets.

Avatar

vincent d warmerdam koaning

View GitHub Profile
View new-benchmark.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View benchmark.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View mean_squared_terror.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View domain.yml
intents:
- greet
- goodbye
- affirm
- deny
- mood_great
- mood_unhappy
- bot_challenge
- give_joke
- give_another
View domain.yml
responses:
utter_joke:
- text: Are you sure you can handle my jokes? You might laugh your Ash off.
- text: Why did the Squirtle cross the road? To get to the other tide!
- text: What appears over Ash’s head when he gets an idea? A LightBulbasaur
- text: Where did Brock take Nurse Joy for a date? The PokeBall
- text: What’s better than one Pikachu? PikaTWO
- text: What does Moeowth see when it looks in the mirror? A copy-cat!
- text: When does a Gastly eat breakfast? In the moaning.
- text: Which Pokemon does Dracula like most? Koffin'
@koaning
koaning / domain.yml
Created Jun 26, 2020
Adding a few jokes
View domain.yml
intents:
- greet
- goodbye
- affirm
- deny
- mood_great
- mood_unhappy
- bot_challenge
- give_joke
@koaning
koaning / config.yml
Last active Apr 29, 2020
Rasa Workshop
View config.yml
# Configuration for Rasa NLU.
# https://rasa.com/docs/rasa/nlu/components/
language: en
pipeline:
- name: WhitespaceTokenizer
- name: RegexFeaturizer
- name: LexicalSyntacticFeaturizer
- name: CountVectorsFeaturizer
- name: CountVectorsFeaturizer
analyzer: "char_wb"
@koaning
koaning / tensorboard-config.yml
Created Apr 17, 2020
Rasa Tensorboard Example
View tensorboard-config.yml
pipeline:
- name: WhitespaceTokenizer
- name: CRFEntityExtractor
- name: CountVectorsFeaturizer
OOV_token: "oov"
token_pattern: (?u)\b\w+\b
- name: CountVectorsFeaturizer
analyzer: "char_wb"
min_ngram: 1
max_ngram: 4
@koaning
koaning / index.html
Last active Apr 8, 2020
DIET architecture interactive demo
View index.html
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://d3js.org/d3.v5.min.js"></script>
<div class="container" style="width=600px; margin: 0 auto;">
<h2>DIET Interactive Demo</h2>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" viewBox="-0.5 -0.5 1832 1057">
<defs>
<linearGradient x1="0%" y1="0%" x2="0%" y2="100%" id="mx-gradient-fff2cc-1-ffd966-1-s-0">
<stop offset="0%" style="stop-color:#fff2cc"/>
View config-mega-basic.yml
language: en
pipeline:
- name: WhitespaceTokenizer
- name: CountVectorsFeaturizer
- name: EmbeddingIntentClassifier
policies:
- name: EmbeddingPolicy
max_history: 10
epochs: 100
batch_size: