Giter Site home page Giter Site logo

attribute_charge's Issues

bug for init words.vec

./attribute_charge/code/init.py", line 52, in
content = [(float)(i) for i in content]
ValueError: could not convert string to float: '炜'

关于代码的一些疑惑与结果复现

  • 代码疑惑1
    model.py中,125行的unmasked_attr_loss的shape是[batch_size,],126行的attr_mask的shape是[batch_size, 1],两者经过tf.multiply后的attr_loss的shape就会是[batch_size, batch_size]。是不是应该先把attr_mask reshape成[batch_size,]?

  • 代码疑惑2
    model.py中,71行是否应该用tf.reduce_mean而非tf.reduce_sum

  • 结果复现
    这是我复现的结果:Acc: 93.4; MP: 56.9; MR: 57.7; F1: 55.6。F1值没有达到论文的64.9,想知道这可能是什么原因造成的?谢谢!

what does "NA" mean ?

Excuse me, what does "NA" mean in your charge attributes data? "unrelated" or "not sure"

运行时出现错误,请教这是怎么回事

Traceback (most recent call last):
File "train.py", line 368, in
tf.app.run()
File "/home/lx/anaconda2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 125, in run
_sys.exit(main(argv))
File "train.py", line 83, in main
lstm_model = model.LSTM_MODEL(word_embeddings=word_embeddings,attr_table=attr_table,config = lstm_config)
File "/home/lx/attribute_charge-master/code/model.py", line 50, in init
self.attn_weights = tf.concat(1, [tf.expand_dims(temp,1) for temp in self.attention_weights])
File "/home/lx/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.py", line 1122, in concat
tensor_shape.scalar())
File "/home/lx/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/tensor_shape.py", line 848, in assert_is_compatible_with
raise ValueError("Shapes %s and %s are incompatible" % (self, other))
ValueError: Shapes (10, 32, 1, 500) and () are incompatible

Baseline

baseline 可以一起公布吗

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.