10#include "./kenlm/util/getopt.hh"
14#include <bits/stdc++.h>
16#include "./kenlm/lm/model.hh"
17#include "./kenlm/lm/sizes.hh"
18#include "./kenlm/util/file_piece.hh"
19#include "./kenlm/util/usage.hh"
22#include "./kenlm/util/getopt.hh"
28#include "../scripts/sentencepiece/src/sentencepiece_processor.h"
39 double Score(
const wstring sentence);
KenLMFilter()
Score sentence by KenLM.
double PerplexityWithSentencePiece(const wstring sentence)
Perplexity sentence by KenLM with SentencePiece Tokenizing.
double ScoreWithSentencePiece(const wstring sentence)
Score sentence by KenLM with SentencePiece Tokenizing.
sentencepiece::SentencePieceProcessor processor
double Score(const wstring sentence)
Score sentence by KenLM.
double Perplexity(const wstring sentence)
Perplexity sentence by KenLM.