Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running #3

Open
yijinhua opened this issue Mar 6, 2017 · 1 comment
Open

Error when running #3

yijinhua opened this issue Mar 6, 2017 · 1 comment

Comments

@yijinhua
Copy link

yijinhua commented Mar 6, 2017

Hi Cheng,

I am testing out implementations of auto-encoders for text but am getting error messages when I tried to run your code from the command line. It says:
/Users/yhua/torch/install/bin/luajit: ./util/BatchLoaderC.lua:98: attempt to index local 'f' (a nil value)
stack traceback:
./util/BatchLoaderC.lua:98: in function 'text_to_tensor'
./util/BatchLoaderC.lua:22: in function 'create'
LSTMAutoencoder.lua:61: in main chunk
[C]: in function 'dofile'
...yhua/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x010b5cfbd0

Just wondering if I need to be loading in my own data set and if so how can I get the corpus? Thanks

@mglowacki100
Copy link

I have the same issue... I suppose that following parameters in command line are required, see LSTMAutoencoder.lua :
cmd:text('Options')
cmd:option('-data_dir', 'corpus', 'path of the dataset')
cmd:option('-sample_dir', 'samples', 'path of the sampled sentences')
Corpus probably you can get from: http://yknzhu.wixsite.com/mbweb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants