diff --git a/tutorials/Getting_Started.ipynb b/tutorials/Getting_Started.ipynb index 859b5ede7d4d9a2e75cbbd4dcde294547df2c1e9..4a3b5aca7f5dd6c3762f82acb85a670cc1f2938e 100644 --- a/tutorials/Getting_Started.ipynb +++ b/tutorials/Getting_Started.ipynb @@ -10,7 +10,8 @@ }, "kernelspec": { "name": "python3", - "display_name": "Python 3" + "display_name": "Python 3", + "language": "python" } }, "cells": [ @@ -54,9 +55,26 @@ "# first install ConvLab-2 and restart the notebook\n", "! git clone https://github.com/thu-coai/ConvLab-2.git && cd ConvLab-2 && pip install -e ." ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# installing en_core_web_sm for spacy to resolve error in BERTNLU\n", + "!python -m spacy download en_core_web_sm" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, { "cell_type": "markdown", "metadata": { @@ -92,7 +110,7 @@ "import numpy as np\n", "import torch" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -125,7 +143,7 @@ "# assemble\n", "sys_agent = PipelineAgent(sys_nlu, sys_dst, sys_policy, sys_nlg, name='sys')" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -148,7 +166,7 @@ "source": [ "sys_agent.response(\"I want to find a moderate hotel\")" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -161,7 +179,7 @@ "source": [ "sys_agent.response(\"Which type of hotel is it ?\")" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -174,7 +192,7 @@ "source": [ "sys_agent.response(\"OK , where is its address ?\")" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -187,7 +205,7 @@ "source": [ "sys_agent.response(\"Thank you !\")" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -200,7 +218,7 @@ "source": [ "sys_agent.response(\"Try to find me a Chinese restaurant in south area .\")" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -213,7 +231,7 @@ "source": [ "sys_agent.response(\"Which kind of food it provides ?\")" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -226,7 +244,7 @@ "source": [ "sys_agent.response(\"Book a table for 5 , this Sunday .\")" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -262,7 +280,7 @@ "# assemble\n", "user_agent = PipelineAgent(user_nlu, user_dst, user_policy, user_nlg, name='user')" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -289,7 +307,7 @@ "evaluator = MultiWozEvaluator()\n", "sess = BiSession(sys_agent=sys_agent, user_agent=user_agent, kb_query=None, evaluator=evaluator)" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -337,7 +355,7 @@ "pprint(sess.evaluator.goal)\n", "print('='*100)" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -396,7 +414,7 @@ "from convlab2.e2e.sequicity.multiwoz import Sequicity\n", "from convlab2.e2e.damd.multiwoz import Damd" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -428,7 +446,7 @@ "# sys_dst = SUMBT()\n", "# sys_dst = TRADE()" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -464,7 +482,7 @@ "# sys_policy = MDRGWordPolicy()\n", "# sys_nlg = None" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -487,7 +505,7 @@ "source": [ "sys_agent = PipelineAgent(sys_nlu, sys_dst, sys_policy, sys_nlg, 'sys')" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -511,7 +529,7 @@ "# sys_agent = Sequicity()\n", "# sys_agent = Damd()" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -542,7 +560,7 @@ "# user_nlg = SCLSTM(is_user=True)\n", "user_agent = PipelineAgent(user_nlu, user_dst, user_policy, user_nlg, name='user')" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -574,7 +592,7 @@ "set_seed(20200131)\n", "analyzer.comprehensive_analyze(sys_agent=sys_agent, model_name='sys_agent', total_dialog=100)" ], - "execution_count": 0, + "execution_count": null, "outputs": [] }, { @@ -598,7 +616,7 @@ "set_seed(20200131)\n", "analyzer.compare_models(agent_list=[sys_agent1, sys_agent2], model_name=['sys_agent1', 'sys_agent2'], total_dialog=100)" ], - "execution_count": 0, + "execution_count": null, "outputs": [] } ]