#include "ratngs.h"
#include <algorithm>
#include <string>
#include "blobs.h"
#include "callcpp.h"
#include "genericvector.h"
#include "matrix.h"
#include "normalis.h"
#include "unicharset.h"
Go to the source code of this file.
Definition at line 805 of file ratngs.cpp.
808 if (word2.
unicharset() != uchset)
return false;
813 if (w1end - w1start != w2end - w2start)
return false;
814 for (
int i = 0; i < w1end - w1start; i++) {
UNICHAR_ID to_lower(UNICHAR_ID unichar_id) const
void punct_stripped(int *start_core, int *end_core) const
UNICHAR_ID unichar_id(int index) const
const UNICHARSET * unicharset() const
Definition at line 180 of file ratngs.cpp.
183 BLOB_CHOICE_IT choice_it(bc_list);
184 for (choice_it.mark_cycle_pt(); !choice_it.cycled_list();
185 choice_it.forward()) {
UNICHAR_ID unichar_id() const
| void print_ratings_list |
( |
const char * |
msg, |
|
|
BLOB_CHOICE_LIST * |
ratings, |
|
|
const UNICHARSET & |
current_unicharset |
|
) |
| |
print_ratings_list
Send all the ratings out to the logfile.
- Parameters
-
| msg | intro message |
| ratings | list of ratings |
| current_unicharset | unicharset that can be used for id-to-unichar conversion |
Definition at line 833 of file ratngs.cpp.
836 if (ratings->length() == 0) {
844 c_it.set_to_list(ratings);
845 for (c_it.mark_cycle_pt(); !c_it.cycled_list(); c_it.forward()) {
846 c_it.data()->print(¤t_unicharset);
847 if (!c_it.at_last())
tprintf(
"\n");
DLLSYM void tprintf(const char *format,...)
| const double kMaxBaselineDrift = 0.0625 |
| const int kMaxDropCapBottom = -128 |
| const double kMaxOverlapDenominator = 0.125 |
| const int kMinSubscriptOffset = 20 |
| const int kMinSuperscriptOffset = 20 |
| const double kMinXHeightMatch = 0.5 |