Git Product home page Git Product logo

Comments (4)

shizhediao avatar shizhediao commented on August 21, 2024

In addition, I noticed that the F1@10 > F1 @5, while in your paper, F1@10 < F1@5

from opennmt-kpg-release.

memray avatar memray commented on August 21, 2024

Thank you for your questions. I cannot give any feedback without knowing your running arguments and dataset.

from opennmt-kpg-release.

shizhediao avatar shizhediao commented on August 21, 2024

Thanks for your reply!
I just run this command which is provided in README
python kp_gen_eval.py -tasks pred eval report -config config/test/config-test-keyphrase-one2seq.yml -data_dir data/keyphrase/meng17/ -ckpt_dir models/keyphrase/meng17-one2seq-kp20k-topmodels/ -output_dir output/meng17-one2seq-topbeam-selfterminating/meng17-one2many-beam10-maxlen40/ -testsets nus -gpu -1 --verbose --beam_size 10 --batch_size 32 --max_length 40 --onepass --beam_terminate topbeam
and got the results in the picture.
The F1@10 is 0.3772 while in the paper "Does order matters?" the result is 0.295.
I used your provided pre-trained models.
Thanks very much!

from opennmt-kpg-release.

memray avatar memray commented on August 21, 2024

The default search strategy is full as set in opts.py L670. This means it during beam search every search sequence will not be terminated until it reaches the max_len (say 50). It can boosts scores a lot when beam_size is small at the cost of slow searching speed. topbeam has merits of fast inference as well as comparable performance when beam_size is large enough. The F1 0.295 is based on the topbeam decoding. We will provide more comparisons about these two settings in the paper a little later.

from opennmt-kpg-release.

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.