Giter VIP home page Giter VIP logo

Comments (5)

donglixp avatar donglixp commented on July 26, 2024 1

Thanks for spotting the incorrect script path.

-li

from unilm.

donglixp avatar donglixp commented on July 26, 2024

Hi @colanim ,

Could you also post the evaluation command? It seems that the evaluation script is not correctly executed.

-li

from unilm.

astariul avatar astariul commented on July 26, 2024

I used :

python gigaword/eval.py --pred ${MODEL_RECOVER_PATH}.${EVAL_SPLIT}.alp1.0
  --gold ${DATA_DIR}/org_data/${EVAL_SPLIT}.summary --trunc_len 70 --perl

where

echo $MODEL_RECOVER_PATH

/root/code/unilm/src/cnndm_model/cnndm_model.bin

echo $EVAL_SPLIT

test

echo $DATA_DIR

/root/code/unilm/src/cnndm_data

from unilm.

astariul avatar astariul commented on July 26, 2024

It seems to be from my pyrouge installation.

When I run : (without --perl option)

python gigaword/eval.py --pred ${MODEL_RECOVER_PATH}.${EVAL_SPLIT}.alp1.0
  --gold ${DATA_DIR}/org_data/${EVAL_SPLIT}.summary --trunc_len 70

ROUGE-1: 0.4330151757396155 ROUGE-2: 0.1900106125427025


However I would like to make it work with the official ROUGE script...
I installed pyrouge differently than you did in your README (unit tests of pyrouge were not passing when I followed steps of the README). I followed this answer to install pyrouge.

from unilm.

astariul avatar astariul commented on July 26, 2024

8c1f46d fixed my problem : I was using wrong script.

Using cnndm/eval.py instead of gigaword/eval.py fixed it.

I could reproduce your result, using official ROUGE script.

Thanks a lot of the help !! 👍

from unilm.

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.