thunlp / attribute_charge Goto Github PK
View Code? Open in Web Editor NEWThe source code of our COLING'18 paper "Few-Shot Charge Prediction with Discriminative Legal Attributes".
The source code of our COLING'18 paper "Few-Shot Charge Prediction with Discriminative Legal Attributes".
how to understander the dataset struct
Excuse , I am very interested in this project, May you apply Criminal-M and Criminal-L dataset? Thank you very much!
Hello , This is very Contributing work for us! I am very interested in this work , May you apply Criminal-M and Criminal-L dataset?
如题。
./attribute_charge/code/init.py", line 52, in
content = [(float)(i) for i in content]
ValueError: could not convert string to float: '炜'
baseline 可以一起公布吗
为什么会出现这个问题呢?请问
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
代码疑惑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,想知道这可能是什么原因造成的?谢谢!
Excuse me, what does "NA" mean in your charge attributes data? "unrelated" or "not sure"
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.