blob: 9dab30a1c5ae09dc5b8ea635b73f860de7879b18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "lm/ngram.hh"
#include <iostream>
int main(int argc, char *argv[]) {
if (argc != 3) {
std::cerr << "Usage: " << argv[0] << " input.arpa output.mmap" << std::endl;
return 1;
}
lm::ngram::Config config;
config.write_mmap = argv[2];
lm::ngram::Model(argv[1], config);
}
|