Skip to content

Instantly share code, notes, and snippets.

View koaning's full-sized avatar

vincent d warmerdam koaning

View GitHub Profile
@koaning
koaning / new-benchmark.ipynb
Last active July 6, 2020 19:53
benchmark two
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@koaning
koaning / benchmark.ipynb
Last active June 28, 2020 19:11
benchmark
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@koaning
koaning / mean_squared_terror.ipynb
Last active June 29, 2020 07:29
mean squared terror
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@koaning
koaning / domain.yml
Created June 26, 2020 08:47
Another intent
intents:
- greet
- goodbye
- affirm
- deny
- mood_great
- mood_unhappy
- bot_challenge
- give_joke
- give_another
@koaning
koaning / domain.yml
Created June 26, 2020 08:44
more jokes
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 June 26, 2020 08:40
Adding a few jokes
intents:
- greet
- goodbye
- affirm
- deny
- mood_great
- mood_unhappy
- bot_challenge
- give_joke
@koaning
koaning / config.yml
Last active April 29, 2020 14:47
Rasa Workshop
# 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 April 17, 2020 09:02
Rasa Tensorboard Example
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 April 8, 2020 12:52
DIET architecture interactive demo
<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"/>
@koaning
koaning / config-mega-basic.yml
Last active November 1, 2022 11:39
DIET Benchmarks
language: en
pipeline:
- name: WhitespaceTokenizer
- name: CountVectorsFeaturizer
- name: EmbeddingIntentClassifier
policies:
- name: EmbeddingPolicy
max_history: 10
epochs: 100
batch_size: