GithubHelp home page GithubHelp logo

acl_ckbc's People

Contributors

lorraine333 avatar

Stargazers

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

Watchers

 avatar

acl_ckbc's Issues

AttributeError: 'TensorVariable' object has no attribute 'get_value'

Hi,

I am getting following error when I tried running train.py file from bilinear_ce. Can you help me on this?

Using cuDNN version 7003 on context None
Mapped name None to device cuda: Tesla K80 (0000:00:1E.0)
Using Training Data../commonsendata/Training/new_omcs600.txt
Using Word Embeddings with Dimension 200
Training on 600000 examples using lambda=1e-05
Saving models to: ../models/Bilinear_cetrainSize300frac1.0dSize200relSize150acti0.001.1e-05.800.RAND.tanh.txt
Traceback (most recent call last):
  File "train.py", line 84, in <module>
    tm = theano_word_model(We, words, params.embedsize, rel, params.relsize, Rel_init, params.LC, params.Lw, params.eta, params.margin, params.usepeep, params.activation)
  File "/home/ubuntu/data/sarcasm/bilinear_ce/commonsense.py", line 262, in __init__
    l_emb = lasagne.layers.EmbeddingLayer(l_in, input_size=self.we.get_value().shape[0], output_size=self.we.get_value().shape[1], W=self.we)
AttributeError: 'TensorVariable' object has no attribute 'get_value'

Thank you.

Training Data Missing?

Hi,

In each train.py of different model, there is a line:

"(words, We) = getWordmap('../commonsendata/embeddings/tuples/embeddings.skip.newtask.en.d'+str(sys.argv[1])+'.m1.w5.s0.it20.txt')"

I don't understand where is the file '../commonsendata/embeddings/tuples/embeddings.skip.newtask.en.d'+str(sys.argv[1])+'.m1.w5.s0.it20.txt'?

Thanks a lot,
-A Python/Github/DNN/... Newcomer

AttributeError: 'SharedVariable' object has no attribute 'astype'

Thank you for your sharing your code. But when I am running code I encounter the below problem: do you have any ideas what is wrong? thank you!!!

packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module.
  "downsample module has been moved to the theano.tensor.signal.pool module.")
Using Training Data../commonsendata/Training/new_omcs100.txt
Using Word Embeddings with Dimension 200
Training on 1000 examples using lambda=1e-05
Saving models to: ../models/Bilinear_cetrainSize300frac0.01dSize200relSize150acti0.001.1e-05.200.RAND.tanh.txt
Traceback (most recent call last):
  File "train.py", line 80, in <module>
    tm = theano_word_model(We, words, params.embedsize, rel, params.relsize, Rel_init, params.LC, params.Lw, params.eta, params.margin, params.usepeep, params.activation)
  File "/home/kaharjan/kbGit/ACL_CKBC/bilinear_ce/commonsense.py", line 243, in __init__
    self.we = theano.shared(We_initial).astype(theano.config.floatX)
AttributeError: 'SharedVariable' object has no attribute 'astype'
/home/kaharjan/python-env/gpu/local/lib/python2.7/site-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module.
  "downsample module has been moved to the theano.tensor.signal.pool module.")
Using Training Data../commonsendata/Training/new_omcs100.txt
Using Word Embeddings with Dimension 200
Training on 1000 examples using lambda=1e-05
Saving models to: ../models/Bilinear_cetrainSize300frac0.01dSize200relSize150acti0.001.1e-05.200.MIX.tanh.txt
Traceback (most recent call last):
  File "train.py", line 80, in <module>
    tm = theano_word_model(We, words, params.embedsize, rel, params.relsize, Rel_init, params.LC, params.Lw, params.eta, params.margin, params.usepeep, params.activation)
  File "/home/kaharjan/kbGit/ACL_CKBC/bilinear_ce/commonsense.py", line 243, in __init__
    self.we = theano.shared(We_initial).astype(theano.config.floatX)
AttributeError: 'SharedVariable' object has no attribute 'astype'
/home/kaharjan/python-env/gpu/local/lib/python2.7/site-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module.
  "downsample module has been moved to the theano.tensor.signal.pool module.")
Using Training Data../commonsendata/Training/new_omcs100.txt
Using Word Embeddings with Dimension 200
Training on 1000 examples using lambda=1e-05
Saving models to: ../models/Bilinear_cetrainSize300frac0.01dSize200relSize150acti0.001.1e-05.200.MAX.tanh.txt
Traceback (most recent call last):
  File "train.py", line 80, in <module>
    tm = theano_word_model(We, words, params.embedsize, rel, params.relsize, Rel_init, params.LC, params.Lw, params.eta, params.margin, params.usepeep, params.activation)
  File "/home/kaharjan/kbGit/ACL_CKBC/bilinear_ce/commonsense.py", line 243, in __init__
    self.we = theano.shared(We_initial).astype(theano.config.floatX)
AttributeError: 'SharedVariable' object has no attribute 'astype'

lab environment

Hi,
Can I use the Windows system to implement the model?
But the pytorch official website does not provide a pytorch that conforms to the python2.7 version.
Can you give some advice?

Best,
Sun

score other models

I successfully ran “demo_bilinear.py” and got the results. And I ran the training code, generating the.pickle file. If I want to score other models, do I just put the new“.pickle” file on demo_bilinear.py? Or other demos, can you help me? Thank you ~

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.