Skip to content

Commit

Permalink
dict: Fix typos in comments and strings
Browse files Browse the repository at this point in the history
All of them were found by codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Sep 14, 2015
1 parent 55c81cb commit 97d47a4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dict/context.cpp
Expand Up @@ -33,7 +33,7 @@ static const int kMinAbsoluteGarbageWordLength = 10;
static const float kMinAbsoluteGarbageAlphanumFrac = 0.5f;

const int case_state_table[6][4] = { {
/* 0. Begining of word */
/* 0. Beginning of word */
/* P U L D */
/* -1. Error on case */
0, 1, 5, 4
Expand Down
2 changes: 1 addition & 1 deletion dict/dawg.h
Expand Up @@ -447,7 +447,7 @@ class SquishedDawg : public Dawg {
EDGE_REF edge = node;
if (!edge_occupied(edge) || edge == NO_EDGE) return;
assert(forward_edge(edge)); // we don't expect any backward edges to
do { // be present when this funciton is called
do { // be present when this function is called
if (!word_end || end_of_word_from_edge_rec(edges_[edge])) {
vec->push_back(NodeChild(unichar_id_from_edge_rec(edges_[edge]), edge));
}
Expand Down
2 changes: 1 addition & 1 deletion dict/dict.cpp
Expand Up @@ -127,7 +127,7 @@ Dict::Dict(CCUtil* ccutil)
" when there is a need to explore all segmentations",
getCCUtil()->params()),
BOOL_MEMBER(save_raw_choices, false,
"Deprecated- backward compatablity only",
"Deprecated- backward compatibility only",
getCCUtil()->params()),
INT_MEMBER(tessedit_truncate_wordchoice_log, 10,
"Max words to keep in list",
Expand Down
2 changes: 1 addition & 1 deletion dict/dict.h
Expand Up @@ -614,7 +614,7 @@ class Dict {
"Make AcceptableChoice() always return false. Useful"
" when there is a need to explore all segmentations");
BOOL_VAR_H(save_raw_choices, false,
"Deprecated- backward compatability only");
"Deprecated- backward compatibility only");
INT_VAR_H(tessedit_truncate_wordchoice_log, 10, "Max words to keep in list");
STRING_VAR_H(word_to_debug, "", "Word for which stopper debug information"
" should be printed to stdout");
Expand Down
2 changes: 1 addition & 1 deletion dict/permdawg.cpp
Expand Up @@ -303,7 +303,7 @@ void Dict::append_choices(
*
* The given prev_char_frag_info contains:
* - fragment: if not NULL contains information about immediately
* preceeding fragmented character choice
* preceding fragmented character choice
* - num_fragments: number of fragments that have been used so far
* to construct a character
* - certainty: certainty of the current choice or minimum
Expand Down

0 comments on commit 97d47a4

Please sign in to comment.