kepei1106 / sentencefunction Goto Github PK
View Code? Open in Web Editor NEWCode for the paper at ACL2018
License: Apache License 2.0
Code for the paper at ACL2018
License: Apache License 2.0
您好啊,非常感谢您公开您的代码,我想问一下当时您训练的时候运行速度怎么样呢,我训练的时候感觉特别慢呢,特别想请教一下您,看看是不是出什么问题了
Is there a code for pmi calculation?
hi,thanks for your opening code.the keyword data is not exist in the opening dataset, how to get it?
best.
你好,请问下可以告知下,论文中结果是训练了多少步测试的结果吗
hi,thanks for your opening code. but i can't find this files in the dataset or coda file, where can i find it ?
ValueError: setting an array element with a sequence.
global step 0 learning rate 0.1000 step-time 0.00 perplexity [1.00] kl_loss [0.00] dec_loss [0.00] dis_loss [0.00]
Traceback (most recent call last):
File "main.py", line 342, in
evaluate(model, sess, data_dev)
File "main.py", line 202, in evaluate
outputs = model.step_decoder(sess, batched_data, forward_only=True, global_t = FLAGS.full_kl_step)
File "/home/Documents/code/sentence-function/model.py", line 262, in step_decoder
return session.run(output_feed, input_feed)
File "/home/anaconda3/envs/conda36/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 929, in run
run_metadata_ptr)
File "/home/anaconda3/envs/conda36/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1121, in _run
np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)
File "/home/anaconda3/envs/conda36/lib/python3.6/site-packages/numpy/core/numeric.py", line 538, in asarray
return array(a, dtype, copy=False, order=order)
ValueError: setting an array element with a sequence.
I saw @shaneshbi solved this problem by adjusting .label files, but still can't figure it out.
您好,
http://coai.cs.tsinghua.edu.cn/hml/dataset 这个数据链接好像失效了,能否麻烦给下新的数据下载链接?非常谢谢!
ValueError: setting an array element with a sequence.
global step 0 learning rate 0.1000 step-time 0.00 perplexity [1.00] kl_loss [0.00] dec_loss [0.00] dis_loss [0.00]
Traceback (most recent call last):
File "main.py", line 342, in
evaluate(model, sess, data_dev)
File "main.py", line 202, in evaluate
outputs = model.step_decoder(sess, batched_data, forward_only=True, global_t = FLAGS.full_kl_step)
File "/home/Documents/code/sentence-function/model.py", line 262, in step_decoder
return session.run(output_feed, input_feed)
File "/home/anaconda3/envs/conda36/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 929, in run
run_metadata_ptr)
File "/home/anaconda3/envs/conda36/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1121, in _run
np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)
File "/home/anaconda3/envs/conda36/lib/python3.6/site-packages/numpy/core/numeric.py", line 538, in asarray
return array(a, dtype, copy=False, order=order)
ValueError: setting an array element with a sequence.
error occurs when execute sess.run()
it seems like to be some input dim errors .
i tried many ways but haven't do with it
can u help solve it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.