32 #ifndef WORD_SIZE_MODEL_H
33 #define WORD_SIZE_MODEL_H
67 static double PairCost(
int width_0,
int height_0,
int top_0,
68 int width_1,
int height_1,
int top_1,
70 bool Save(
string file_name);
73 return font_pair_size_models_.size();
76 return &font_pair_size_models_[0];
80 static inline int SizeCode(
int cls_id,
int start,
int end) {
81 return (cls_id << 2) + (end << 1) + start;
87 static const int kShapeModelScale = 1000;
88 static const int kExpectedTokenCount = 10;
94 vector<FontPairSizeInfo> font_pair_size_models_;
97 bool Init(
const string &data_file_path,
const string &lang);
100 #endif // WORD_SIZE_MODEL_H