Git Product home page Git Product logo

summarunner's Introduction

SummaRuNNer

Tensorflow implementation of SummaRuNNer

the version of Tensorflow is 1.2.0

Usage: Now data & w2v model is provided, you can use them to train a model directly, then you should change the model directory to your trained model position for evaluation.

Data & w2v model: 链接: https://pan.baidu.com/s/1AVwjhBTkkbpUMgo7DAg73w 提取码: ywf5
Google: https://drive.google.com/drive/folders/1Ym2BcE2MBkxfPYWOfzwbrhpJo51OgFlJ?usp=sharing

Reference: hpzhao 's PyTorch implementation of SummaRuNNer https://github.com/hpzhao/SummaRuNNer

Result: in our data, it gets almost the same result with the Pytorch one. for ndcg@5, the difference between them is no more than 0.004(~0.5%).

If you have any questions, please feel free to contact me.

summarunner's People

Contributors

pocheyeniu avatar

Stargazers

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

Watchers

 avatar

summarunner's Issues

interpret summaRunner test output

After testing outputs folder is created which contains two more folder hyp and ref. these two folders contain text files. What is difference in hyp and ref folder.
Does 1.txt tells sentence 1 summary and so on for other files?

Training

I use the data of CNN/Daily Mail and the hyper parameter of the paper to train the model based on your project. However, I found that the loss keeps almost constant when I set the batch size to 32 or 64 and if I set the batch size to 8, it will be convergence gradually. if you know the reasons, could you tell me about it , many thanks.

How do I generate the labeled data?

I get this error when I run "train.py":

Traceback (most recent call last): File "train.py", line 133, in <module> train("model.0201") File "train.py", line 55, in train dr.load_data(FLAGS.train_data_file, max_doc_length, max_sen_length) File "/scratch/user/phan3006/MATH689/SummaRuNNer/data_reader.py", line 83, in load_data for line in f.readlines(): File "/scratch/user/phan3006/MATH689/dl_proj_summarun_py2.7/lib/python2.7/codecs.py", line 696, in readlines return self.reader.readlines(sizehint) File "/scratch/user/phan3006/MATH689/dl_proj_summarun_py2.7/lib/python2.7/codecs.py", line 605, in readlines data = self.read() File "/scratch/user/phan3006/MATH689/dl_proj_summarun_py2.7/lib/python2.7/codecs.py", line 494, in read newchars, decodedbytes = self.decode(data, self.errors) UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 0: invalid start byte

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.