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

Paragraph level: preprocess data #29

Open
wentsun12 opened this issue Feb 7, 2019 · 0 comments
Open

Paragraph level: preprocess data #29

wentsun12 opened this issue Feb 7, 2019 · 0 comments

Comments

@wentsun12
Copy link

I met the following error when I tried to process the paragraph level data. I have no idea about how to use Lua or correct. Could anyone give some advices?

preprocess.lua -config config-preprocess

Building source vocabulary...
Created dictionary of size 45004 (pruned from 71333)

Building target vocabulary...
Created dictionary of size 28003 (pruned from 35366)

Building prgrph vocabulary...
Created dictionary of size 45004 (pruned from 87180)

Preparing training data...
... shuffling sentences
... sorting sentences by size
/usr/bin/lua: preprocess.lua:162: bad argument #1 to 'pairs' (table expected, got userdata)
stack traceback:
[C]: in function 'pairs'
preprocess.lua:162: in function 'vecToTensor'
preprocess.lua:270: in function 'makeData'
preprocess.lua:321: in function 'main'
preprocess.lua:354: in main chunk
[C]: ?

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

1 participant