Code Monkey home page Code Monkey logo

Comments (5)

memray avatar memray commented on August 25, 2024

“Size of test data=0” means it doesn't load the test data correctly. Could you check that part out?

from seq2seq-keyphrase.

vio0109 avatar vio0109 commented on August 25, 2024

我查看了这个路径 /home/majun/keyphrase_generation/seq2seq-keyphrase-master/dataset/keyphrase/baseline-data/kp20k/ 里面确实有keyphrase和text文件夹。而且文件夹里也有下载好的数据

from seq2seq-keyphrase.

memray avatar memray commented on August 25, 2024

It's my bad. Please check out the latest code. The previous one loads .keyphrase files instead of .txt. I only tested it on CPU (I cannot run GPU version after updating CUDA and Theano) and hope it will work now.

from seq2seq-keyphrase.

vio0109 avatar vio0109 commented on August 25, 2024

非常感谢您的回复!我下载了您最新的源码,并将Experiment/ 和 dataset/放在了project中。很抱歉还要一些路径的问题需要咨询您一下。

  1. 执行predict部分,将其他置为false。预测kp20k的时候,首先遇到以下错误:

1

我修改了一下keyphrase_test_dataset.py中的路径,可能改的不是很对。

2

之后可以运行了

3

但是在运行过程中,我并没有找到config['predict_path']/predict.generative.dataset_name.pkl这个生成文件,是全部预测完才会生成吗??

2.预测SemEval。
4
想请教一下这些路径都代表什么?如何加载才不会报错
5

from seq2seq-keyphrase.

memray avatar memray commented on August 25, 2024
  1. Yes, predict.generative.dataset_name.pkl will be generated once all predictions are finished. So it takes very long time on KP20K.
  2. I think they are all included in seq2seq-keyphrase.zip

from seq2seq-keyphrase.

Related Issues (20)

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.