summaryrefslogtreecommitdiff
path: root/roles/tesseractor
diff options
context:
space:
mode:
Diffstat (limited to 'roles/tesseractor')
-rw-r--r--roles/tesseractor/tasks/main.yml1
-rw-r--r--roles/tesseractor/tasks/training.yml8
2 files changed, 9 insertions, 0 deletions
diff --git a/roles/tesseractor/tasks/main.yml b/roles/tesseractor/tasks/main.yml
index 4336c04..e406e2f 100644
--- a/roles/tesseractor/tasks/main.yml
+++ b/roles/tesseractor/tasks/main.yml
@@ -2,3 +2,4 @@
- include: ldlocal.yml
- include: leptonica.yml
- include: tesseract.yml
+- include: training.yml
diff --git a/roles/tesseractor/tasks/training.yml b/roles/tesseractor/tasks/training.yml
new file mode 100644
index 0000000..31bf1b8
--- /dev/null
+++ b/roles/tesseractor/tasks/training.yml
@@ -0,0 +1,8 @@
+---
+# Installs tesseract training files
+
+# TODO: get this from somewhere more sensible
+- name: Install tesseract training files
+ copy: src={{ item }} dest=/usr/local/share/tesseract
+ with_items:
+ - /home/nick/rescribe/2018-natphil/tmp/tessdata/rescribealphav5.traineddata