-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi, As shown in Scorer.h and Scorer.cpp, this project works when language model is provided. Thus, will you provide the implementation of the language model?
Scorer.cpp:
`#include
#include "scorer.h"
#include "lm/model.hh"
#include "util/tokenize_piece.hh"
#include "util/string_piece.hh"
using namespace lm::ngram;`
Scorer.h:
`#ifndef SCORER_H_
#define SCORER_H_
#include
class Scorer{
private:
float _alpha;
float _beta;
void *_language_model;
public:
Scorer(){}
Scorer(float alpha, float beta, std::string lm_model_path);
~Scorer();
int word_count(std::string);
double language_model_score(std::string);
double get_score(std::string);
};
#endif
`
Metadata
Metadata
Assignees
Labels
No labels