Git Product home page Git Product logo

Comments (9)

hhexiy avatar hhexiy commented on August 27, 2024

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.

rzhao1 avatar rzhao1 commented on August 27, 2024

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.

rzhao1 avatar rzhao1 commented on August 27, 2024

I noticed that HybridSystem class does not have function of loading trained policy?

from cocoa.

hhexiy avatar hhexiy commented on August 27, 2024

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.

rzhao1 avatar rzhao1 commented on August 27, 2024

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.

rzhao1 avatar rzhao1 commented on August 27, 2024

One more extra question: what does it mean lf2lf vs lflm? Thank you!

from cocoa.

hhexiy avatar hhexiy commented on August 27, 2024

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.

rzhao1 avatar rzhao1 commented on August 27, 2024

Thank you! What does "LF" stand for?

from cocoa.

hhexiy avatar hhexiy commented on August 27, 2024

logical form

from cocoa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.