diff options
| author | Paul Baltescu <pauldb89@gmail.com> | 2013-06-19 15:06:34 +0100 | 
|---|---|---|
| committer | Paul Baltescu <pauldb89@gmail.com> | 2013-06-19 15:06:34 +0100 | 
| commit | 459775095b46b4625ce26ea5a34001ec74ab3aa8 (patch) | |
| tree | 844d1a650a302114ae619d37b8778ab66207a834 /klm/lm/builder | |
| parent | 02099a01350a41a99ec400e9b29df08a01d88979 (diff) | |
| parent | 0dc7755f7fb1ef15db5a60c70866aa61b6367898 (diff) | |
Merge branch 'master' of https://github.com/redpony/cdec
Diffstat (limited to 'klm/lm/builder')
| -rw-r--r-- | klm/lm/builder/lmplz_main.cc | 15 | ||||
| -rw-r--r-- | klm/lm/builder/ngram.hh | 2 | 
2 files changed, 9 insertions, 8 deletions
diff --git a/klm/lm/builder/lmplz_main.cc b/klm/lm/builder/lmplz_main.cc index 1e086dcc..c87abdb8 100644 --- a/klm/lm/builder/lmplz_main.cc +++ b/klm/lm/builder/lmplz_main.cc @@ -52,13 +52,14 @@ int main(int argc, char *argv[]) {        std::cerr <<           "Builds unpruned language models with modified Kneser-Ney smoothing.\n\n"          "Please cite:\n" -        "@inproceedings{kenlm,\n" -        "author    = {Kenneth Heafield},\n" -        "title     = {{KenLM}: Faster and Smaller Language Model Queries},\n" -        "booktitle = {Proceedings of the Sixth Workshop on Statistical Machine Translation},\n" -        "month     = {July}, year={2011},\n" -        "address   = {Edinburgh, UK},\n" -        "publisher = {Association for Computational Linguistics},\n" +        "@inproceedings{Heafield-estimate,\n" +        "  author = {Kenneth Heafield and Ivan Pouzyrevsky and Jonathan H. Clark and Philipp Koehn},\n" +        "  title = {Scalable Modified {Kneser-Ney} Language Model Estimation},\n" +        "  year = {2013},\n" +        "  month = {8},\n" +        "  booktitle = {Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics},\n" +        "  address = {Sofia, Bulgaria},\n" +        "  url = {http://kheafield.com/professional/edinburgh/estimate\\_paper.pdf},\n"          "}\n\n"          "Provide the corpus on stdin.  The ARPA file will be written to stdout.  Order of\n"          "the model (-o) is the only mandatory option.  As this is an on-disk program,\n" diff --git a/klm/lm/builder/ngram.hh b/klm/lm/builder/ngram.hh index 2984ed0b..f5681516 100644 --- a/klm/lm/builder/ngram.hh +++ b/klm/lm/builder/ngram.hh @@ -53,7 +53,7 @@ class NGram {      Payload &Value() { return *reinterpret_cast<Payload *>(end_); }      uint64_t &Count() { return Value().count; } -    const uint64_t Count() const { return Value().count; } +    uint64_t Count() const { return Value().count; }      std::size_t Order() const { return end_ - begin_; }  | 
