blob: 4db631a226b4164f8941e3bf056cd040558049a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "lm/model.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);
}
|