Skip to content

Commit

Permalink
Add combine_lang_model to cmake and cppan builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Aug 6, 2017
1 parent 08ec577 commit c67c2e9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ccutil/unicharset.h
Expand Up @@ -151,7 +151,7 @@ class UNICHARSET {
static TESS_API const char* kCustomLigatures[][2];

// List of strings for the SpecialUnicharCodes. Keep in sync with the enum.
static const char* kSpecialUnicharCodes[SPECIAL_UNICHAR_CODES_COUNT];
static TESS_API const char* kSpecialUnicharCodes[SPECIAL_UNICHAR_CODES_COUNT];

// ICU 2.0 UCharDirection enum (from third_party/icu/include/unicode/uchar.h)
enum Direction {
Expand Down
5 changes: 5 additions & 0 deletions cppan.yml
Expand Up @@ -180,6 +180,10 @@ projects:
files: training/classifier_tester.cpp
dependencies: common_training

combine_lang_model:
files: training/combine_lang_model.cpp
dependencies: unicharset_training

combine_tessdata:
files: training/combine_tessdata.cpp
dependencies: libtesseract
Expand Down Expand Up @@ -216,6 +220,7 @@ projects:
files:
- training/fileio.*
- training/icuerrorcode.h
- training/lang_model_helpers.*
- training/lstmtester.*
- training/normstrngs.*
- training/unicharset_training_utils.*
Expand Down
11 changes: 11 additions & 0 deletions training/CMakeLists.txt
Expand Up @@ -177,6 +177,8 @@ set(unicharset_training_src
fileio.cpp
fileio.h
icuerrorcode.h
lang_model_helpers.cpp
lang_model_helpers.h
lstmtester.cpp
lstmtester.h
normstrngs.cpp
Expand All @@ -199,6 +201,15 @@ endif()
project_group (unicharset_training "Training Tools")


########################################
# EXECUTABLE combine_lang_model
########################################

add_executable (combine_lang_model combine_lang_model.cpp)
target_link_libraries (combine_lang_model unicharset_training)
project_group (combine_lang_model "Training Tools")


########################################
# EXECUTABLE lstmeval
########################################
Expand Down

0 comments on commit c67c2e9

Please sign in to comment.