Skip to content

Commit

Permalink
main/tesseract: simplify a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
triallax committed Sep 26, 2024
1 parent 527e069 commit db29b70
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions main/tesseract/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,27 +37,23 @@
def _(self):
self.subdesc = "training tools"

def install():
for tool in [
"ambiguous_words",
"classifier_tester",
"cntraining",
"combine_lang_model",
"combine_tessdata",
"dawg2wordlist",
"lstmeval",
"lstmtraining",
"merge_unicharsets",
"mftraining",
"set_unicharset_properties",
"shapeclustering",
"text2image",
"unicharset_extractor",
"wordlist2dawg",
]:
self.take(f"cmd:{tool}")

return install
return [
"cmd:ambiguous_words",
"cmd:classifier_tester",
"cmd:cntraining",
"cmd:combine_lang_model",
"cmd:combine_tessdata",
"cmd:dawg2wordlist",
"cmd:lstmeval",
"cmd:lstmtraining",
"cmd:merge_unicharsets",
"cmd:mftraining",
"cmd:set_unicharset_properties",
"cmd:shapeclustering",
"cmd:text2image",
"cmd:unicharset_extractor",
"cmd:wordlist2dawg",
]


@subpackage("tesseract-libs")
Expand Down

0 comments on commit db29b70

Please sign in to comment.