deep-spin / efficient_kNN_MT

MIT License
5 stars 2 forks source link

this code cannot run successfully #3

Closed jiezhangGt closed 1 year ago

jiezhangGt commented 2 years ago

Thank you very much for being able to open source this code. However, this code cannot run successfully. The member parameters of some classes in the code are undefined, for example: self.use_faiss_centroids of TransformerDecoderBase, etc.

in scoring/tokenizer.py: from sacrebleu.tokenizers import TOKENIZERS which TOKENIZERS is not defined, it must added to /relatedPATH/site-packages/sacrebleu/tokenizers/init.py with

from .tokenizer_13a import Tokenizer13a   # noqa: F401

TOKENIZERS = {
    '13a': Tokenizer13a,
}