GithubHelp home page GithubHelp logo

snakeztc / neuraldialog-laed Goto Github PK

View Code? Open in Web Editor NEW
198.0 198.0 40.0 13.08 MB

PyTorch implementation for Interpretable Dialog Generation ACL 2018, It is released by Tiancheng Zhao (Tony) from Dialog Research Center, LTI, CMU

Home Page: http://www.cs.cmu.edu/~tianchez/

License: Apache License 2.0

Python 1.03% OpenEdge ABL 98.97%
acl-2018 di-vae di-vst dialogue-systems discrete-variational-autoencoders mutual-information sentence-representation

neuraldialog-laed's People

Contributors

ishalyminov avatar snakeztc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

neuraldialog-laed's Issues

runtime error

afer running ptb-utt.py. I got error
RuntimeError: cuda runtime error (30) : unknown error at /pytorch/aten/src/THC/THCGeneral.cpp:51

Order problem of <s> and </s>

BOS and EOS have the same count in the vocabulary. The counter sort the utterances by frequency. Since BOS and EOS have the same count in the vocabulary, the order is random. Sometimes BOS is 4 in vocabulary. Sometimes EOS is 4 in vocabulary.

code not working on python 3.5 TypeError: a bytes-like object is required, not 'str'

Traceback (most recent call last):
File "ptb-utt.py", line 155, in
main(config)
File "ptb-utt.py", line 97, in main
prepare_dirs_loggers(config, os.path.basename(file))
File "C:\Users\hw\NeuralDialog-LAED-master\laed\utils.py", line 105, in prepare_dirs_loggers
json.dump(config.dict, fp, indent=4, sort_keys=True)
File "C:\Users\hw\Anaconda3\envs\py35\lib\json_init_.py", line 179, in dump
fp.write(chunk)
TypeError: a bytes-like object is required, not 'str'

What's the best way of using a dataset without metadata?

Looking at DailyDialogSkipLoader, It's apparent in this line that metadata like dialog acts and emotion are being appended to the dialogue.

dialog.append(Pack(utt=utt, speaker=t_id%2,
                                   meta={'emotion': raw_emotion[t_id], 'act': raw_act[t_id]}))

I'm using a dataset without such metadata, how should I change the code?
Should I put None/0 or remove the meta parameter completely?

Unused parameter in scripts

It seems like kl_step is not being used while still presented in dailydialog-utt-skip.py and ptb-utt.py. Maybe it's better to comment/delete it so to not confuse people?

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.