diff options
author | Matthias Huck <mhuck@inf.ed.ac.uk> | 2015-05-01 00:26:30 +0300 |
---|---|---|
committer | Matthias Huck <mhuck@inf.ed.ac.uk> | 2015-05-01 00:26:30 +0300 |
commit | 4ee8f2dec1c200858c4ed82becc95ed1f7c1017f (patch) | |
tree | 07ecd1b03f6aa7926bfa3fdeaf176833b836ed7b /mert/Ngram.h | |
parent | 1d86b8fde7f62dbd0897815479d44df981de5d84 (diff) |
sentence-bleu less greedy regarding memory
Don't load all references, read them line by line.
Corpora with millions of sentences can now be evaluated without consuming gigabytes of RAM.
Diffstat (limited to 'mert/Ngram.h')
-rw-r--r-- | mert/Ngram.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mert/Ngram.h b/mert/Ngram.h index 521dc4928..de2703605 100644 --- a/mert/Ngram.h +++ b/mert/Ngram.h @@ -1,5 +1,4 @@ -#ifndef MERT_NGRAM_H_ -#define MERT_NGRAM_H_ +#pragma once #include <vector> #include <string> @@ -121,4 +120,3 @@ private: } -#endif // MERT_NGRAM_H_ |