Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| intents: | |
| - greet | |
| - goodbye | |
| - affirm | |
| - deny | |
| - mood_great | |
| - mood_unhappy | |
| - bot_challenge | |
| - give_joke | |
| - give_another |
This file contains hidden or 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
| 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' |
This file contains hidden or 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
| intents: | |
| - greet | |
| - goodbye | |
| - affirm | |
| - deny | |
| - mood_great | |
| - mood_unhappy | |
| - bot_challenge | |
| - give_joke |
This file contains hidden or 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
| # 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" |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| <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"/> |
This file contains hidden or 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
| language: en | |
| pipeline: | |
| - name: WhitespaceTokenizer | |
| - name: CountVectorsFeaturizer | |
| - name: EmbeddingIntentClassifier | |
| policies: | |
| - name: EmbeddingPolicy | |
| max_history: 10 | |
| epochs: 100 | |
| batch_size: |
This file contains hidden or 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
| import numpy as np | |
| import matplotlib.pylab as plt | |
| def run_with_samples(feats=1): | |
| n = 1000 | |
| xs = np.random.uniform(0, 2, (n, feats)) | |
| ys = 1.5 + xs.sum(axis=1) + np.random.normal(0, 1, (n,)) | |
| size_subset = 500 | |
| n_samples = 2000 |