UTIL_THROW_IF2(last_eos<=buf.begin(),"Encountered a sentence longer than the buffer size of "<<config.buf_per_thread<<" words. Rerun with increased buffer size. TODO: adaptable buffer");
("model,m",po::value<std::string>(&model)->required(),"Model to query or convert vocab ids")
("threads,t",po::value<std::size_t>(&config.threads)->default_value(boost::thread::hardware_concurrency()),"Threads to use (querying only; TODO vocab conversion)")
("buffer,b",po::value<std::size_t>(&config.buf_per_thread)->default_value(4096),"Number of words to buffer per task.")
("vocab,v",po::bool_switch(),"Convert strings to vocab ids")
("query,q",po::bool_switch(),"Query from vocab ids");
TEXT_TEST("in biarritz watching considering looking . on a little more loin also would consider higher to look good unknown the screening foo bar , unknown however unknown </s>");
TEXT_TEST("on a little more loin also would consider higher to look good unknown the screening foo bar , unknown however unknown </s>");
TEXT_TEST("on a little more loin also would consider higher to look good");
TEXT_TEST("more loin also would consider higher to look good");
TEXT_TEST("more loin also would consider higher to look");
#define KENLM_ORDER_MESSAGE "If your build system supports changing KENLM_MAX_ORDER, change it there and recompile. With cmake:\n cmake -DKENLM_MAX_ORDER=10 ..\nWith Moses:\n bjam --max-kenlm-order=10 -a\nOtherwise, edit lm/max_order.hh."
if(static_cast<std::size_t>(start-static_cast<uint8_t*>(base))!=goal_size)UTIL_THROW(FormatLoadException,"The data structures took "<<(start-static_cast<uint8_t*>(base))<<" but Size says they should take "<<goal_size);
UTIL_THROW_IF(counts.size()>KENLM_MAX_ORDER,FormatLoadException,"This model has order "<<counts.size()<<" but KenLM was compiled to support up to "<<KENLM_MAX_ORDER<<". "<<KENLM_ORDER_MESSAGE);
UTIL_THROW_IF(*i>static_cast<uint64_t>(std::numeric_limits<size_t>::max()),util::OverflowException,"This model has "<<*i<<" "<<(i-counts.begin()+1)<<"-grams which is too many for 32-bit machines.");
UTIL_THROW_IF(new_config.enumerate_vocab&&!parameters.fixed.has_vocabulary,FormatLoadException,"The decoder requested all the vocabulary strings, but this binary file does not have them. You may need to rebuild the binary file with an updated version of build_binary.");
FullDivide(m,"looking on a little more loin . </s>");
FullDivide(m,"in biarritz watching considering looking . on a little more loin also would consider higher to look good unknown the screening foo bar , unknown however unknown </s>");