Comments (9)
rulebased: rule parser + rule policy + retrieval generator
hybrid: rule parser + learned policy + retrieval generator
cmd: human-controlled bot used in a command line interface
fb-neural: obsolete
pt-neural: seq2seq
from cocoa.
Thank you for the clarification! It is really helpful! Basically, I want to run use hybrid model to generate the simulated dialogue. However, when I run the following command, I got the error "AttributeError: 'HybridSystem' object has no attribute 'env'".
PYTHONPATH=. python reinforce.py --schema-path data/bookhatball-schema.json
--scenarios-path data/train-scenarios.json
--valid-scenarios-path data/val-scenarios.json
--agent-checkpoints checkpoint/lf2lf/model_best.pt checkpoint/lf2lf/model_best.pt
--model-path checkpoint/lf2lf-margin
--optim adagrad --learning-rate 0.001
--agents hybrid pt-neural
--report-every 500 --max-turns 20 --num-dialogues 5000
--sample --temperature 0.5 --max-length 20 --reward margin
-- templates templates.pkl
--policy model.pkl
from cocoa.
I noticed that HybridSystem class does not have function of loading trained policy?
from cocoa.
The parameters are loaded through the manager
object of HybridSystem, which is the learned policy. Also, I don't think the command would run, because you cannot back-propagate through hybrid.
from cocoa.
Thank you! If I want to create an agent that use neural dialogue model as manager and rule-based template as generator (a hybrid system) to talk with human user, which kind of command I should use? The default commands you provided in README only output dialogue act instead of the utterance?
from cocoa.
One more extra question: what does it mean lf2lf vs lflm? Thank you!
from cocoa.
You can use https://github.com/stanfordnlp/cocoa/blob/master/scripts/generate_dataset.py to generate bot-bot/human chat by setting one agent to be hybrid
and the other to be cmd
(human). lflm
means learning a LM as the action predictor instead of a seq2seq model, this is obsolete though.
from cocoa.
Thank you! What does "LF" stand for?
from cocoa.
logical form
from cocoa.
Related Issues (20)
- IndexError: index 0 is out of bounds for axis 0 with size 0 HOT 6
- where is the data data/train.json HOT 2
- TypeError: where() takes at most 2 arguments (3 given) HOT 1
- Include PYTHONPATH environment variable
- Scoping issues in template HOT 1
- Integration with AMT for crowdsourcing HOT 1
- Where is FBnegLossCompute? HOT 3
- Question: Cannot execute craigslistbargain/web/chat_app.py HOT 8
- How to solve problems in Chat with the bot HOT 3
- Natural Language Generation for Dealornodeal HOT 1
- What the soulution to ImportError: cannot import name LIWC ? HOT 1
- How to restrict being selected scenarios in craigslistbargain HOT 3
- IndexError: too many indices for array HOT 3
- SL(act)+ Rule model HOT 1
- NameError when lunching web server HOT 1
- Modular approach question HOT 1
- ImportError: No module named torchtext.data HOT 1
- KeyError: 'post_id'
- can't access data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cocoa.