Comments (6)
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.
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.
@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.
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.
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.
Thank you very much!
from mlconvgec2018.
Related Issues (20)
- Using interactive instead of generate to evaluate HOT 1
- Python error: <stdin> is a directory, cannot continue HOT 2
- the size of training dataset? HOT 2
- How to use language model (94Bcclm.trie)? HOT 2
- TypeError: iter() returned non-iterator of type 'NBestList' HOT 9
- An error about Compile and install PyTorch(0.2.0) HOT 5
- Accuracy of trained model? HOT 12
- Fairseq-py Installation Issue HOT 5
- About training data
- pytorch version? HOT 3
- pre-trainined embeddings. HOT 1
- ImportError: cannot import name 'libbleu' HOT 4
- 'Levenshtein greater than source size' when training re-ranker HOT 1
- Output directory error while running run.sh in google colab HOT 1
- ImportError: cannot import name 'libbleu' from 'fairseq' HOT 3
- Requesting NUCLE dataset 3.2
- Error loading state_size in FConvModel : size mismatch in encoder-decoder weights
- General question: GEC data preprocessing
- Can this model be used for any language?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlconvgec2018.