Giter Site home page Giter Site logo

reranker error about mlconvgec2018 HOT 6 CLOSED

nusnlp avatar nusnlp commented on August 19, 2024
reranker error

from mlconvgec2018.

Comments (6)

wulouzhu avatar wulouzhu commented on August 19, 2024

A sample in output.tok.nbest.reformat.augmented.txt :
-1 ||| Keeping the Secret of Genetic Testing ||| F0= -0.14867456257343292 EditOps0= 0 1 5 ||| -0.14867456257343292 -1 ||| Keeping the Secret of the Genetic Testing ||| F0= -0.30441999435424805 EditOps0= 0 2 5 ||| -0.30441999435424805 -1 ||| Maintain the Secret of Genetic Testing ||| F0= -0.5522223711013794 EditOps0= 0 1 5 ||| -0.5522223711013794 -1 ||| To keep the Secret of the Genetic Testing ||| F0= -0.5662410855293274 EditOps0= 0 3 5 ||| -0.5662410855293274 -1 ||| To keep the Secret of Genetic Testing ||| F0= -0.5695184469223022 EditOps0= 0 2 5 ||| -0.5695184469223022 -1 ||| Keeping the Secret of Genetic Testing . ||| F0= -0.6078863143920898 EditOps0= 0 2 5 ||| -0.6078863143920898 -1 ||| Maintaining the Secret of Genetic Testing ||| F0= -0.6108198165893555 EditOps0= 0 1 5 ||| -0.6108198165893555 -1 ||| Keeping the Secret for the Genetic Testing ||| F0= -0.61934494972229 EditOps0= 0 2 5 ||| -0.61934494972229 -1 ||| Keeping the secret of the Genetic Testing ||| F0= -0.6822504997253418 EditOps0= 0 2 5 ||| -0.6822504997253418 -1 ||| To maintain the Secret of Genetic Testing ||| F0= -0.7254775762557983 EditOps0= 0 2 5 ||| -0.7254775762557983 -1 ||| Keeping the Secret of the Genetic Testing . ||| F0= -0.7767990827560425 EditOps0= 0 3 5 ||| -0.7767990827560425 -1 ||| The Secret of Genetic Testing ||| F0= -0.8103262782096863 EditOps0= 0 0 5 ||| -0.8103262782096863

from mlconvgec2018.

shamilcm avatar shamilcm commented on August 19, 2024

Seems like the LM scores have not been added. Check if you have downloaded the required language model file and have nbest-reranker downloaded.

from mlconvgec2018.

wulouzhu avatar wulouzhu commented on August 19, 2024

@shamilcm
I have downloaded the langugae model "94Bcclm.trie" and nbest-reranker before. When I run ./run.sh conlltest2014/test2014.en conlltest2014_reranker/ 0,1 models/mlconv models/reranker_weights/mlconv_embed_4ens_eo_lm.weights.txt 'eolm' . The same error happended.
One of samples in in output.tok.nbest.reformat.augmented.txt is:

-1 ||| Keeping the Secret of Genetic Testing ||| F0= -0.14867456257343292 EditOps0= 0 1 5   LM0= -40.0306  WordPenalty0= -6  ||| -0.14867456257343292
-1 ||| Keeping the Secret of the Genetic Testing ||| F0= -0.30441999435424805 EditOps0= 0 2 5   LM0= -46.3525  WordPenalty0= -7  ||| -0.30441999435424805
-1 ||| Maintain the Secret of Genetic Testing ||| F0= -0.5522223711013794 EditOps0= 0 1 5   LM0= -45.0082  WordPenalty0= -6  ||| -0.5522223711013794
-1 ||| To keep the Secret of the Genetic Testing ||| F0= -0.5662410855293274 EditOps0= 0 3 5   LM0= -50.3051  WordPenalty0= -8  ||| -0.5662410855293274
-1 ||| To keep the Secret of Genetic Testing ||| F0= -0.5695184469223022 EditOps0= 0 2 5   LM0= -43.9831  WordPenalty0= -7  ||| -0.5695184469223022
-1 ||| Keeping the Secret of Genetic Testing . ||| F0= -0.6078863143920898 EditOps0= 0 2 5   LM0= -41.7383  WordPenalty0= -7  ||| -0.6078863143920898
-1 ||| Maintaining the Secret of Genetic Testing ||| F0= -0.6108198165893555 EditOps0= 0 1 5   LM0= -44.7836  WordPenalty0= -6  ||| -0.6108198165893555
-1 ||| Keeping the Secret for the Genetic Testing ||| F0= -0.61934494972229 EditOps0= 0 2 5   LM0= -47.7624  WordPenalty0= -7  ||| -0.61934494972229
-1 ||| Keeping the secret of the Genetic Testing ||| F0= -0.6822504997253418 EditOps0= 0 2 5   LM0= -41.3848  WordPenalty0= -7  ||| -0.6822504997253418
-1 ||| To maintain the Secret of Genetic Testing ||| F0= -0.7254775762557983 EditOps0= 0 2 5   LM0= -45.4764  WordPenalty0= -7  ||| -0.7254775762557983

from mlconvgec2018.

wulouzhu avatar wulouzhu commented on August 19, 2024

In the rerank.py, I print the size of group, it is 0.

counter = 0
for group in input_aug_nbest:
    print('length of group:',group.size())
    index = 0
    scores = dict()
    for item in group:
        features = np.asarray([x for x in item.features.split() if is_number(x)], dtype=float)

from mlconvgec2018.

shamilcm avatar shamilcm commented on August 19, 2024

If you are using Fairseq 0.5, did you make sure you are using the branch 'fairseq0.5'. The nbest-reformat script needs to be modified as well. See this commit: 486864f

from mlconvgec2018.

wulouzhu avatar wulouzhu commented on August 19, 2024

Thank you very much!

from mlconvgec2018.

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.