@ -39,7 +39,7 @@ dirs: ## create the dirs in working dir
@-mkdir -p output/erase-replace/
@-mkdir -p output/erase-replace/
@-mkdir -p ocr/
@-mkdir -p ocr/
@-mkdir -p hocr/
@-mkdir -p hocr/
@echo $( color_r) 'Directories made' : ocr/ hocr/ images/ images-tiff/ output/
@echo $( color_r) 'Directories made' : ocr/ hocr/ images/ images-tiff/ output/
testif :
testif :
@ -73,7 +73,7 @@ hocrs: ## hocr with tesseract and then change extension to .html
#OUTPUT GENERATION RECIPES
#OUTPUT GENERATION RECIPES
output/ reading_structure/index.html : ocr /output .txt ## Analyzes OCR'ed text using a Part of Speech (POS) tagger. Outputs a string of tags (e.g. nouns, verbs, adjectives, and adverbs). Dependencies: python3's nltk, jinja2, weasyprint
reading_structure: ocr /output .txt ## Analyzes OCR'ed text using a Part of Speech (POS) tagger. Outputs a string of tags (e.g. nouns, verbs, adjectives, and adverbs). Dependencies: python3's nltk, jinja2, weasyprint
mkdir -p output/reading_structure
mkdir -p output/reading_structure
cp src/reading_structure/jquery.min.js output/reading_structure
cp src/reading_structure/jquery.min.js output/reading_structure
cp src/reading_structure/script.js output/reading_structure
cp src/reading_structure/script.js output/reading_structure
@ -81,6 +81,7 @@ output/reading_structure/index.html: ocr/output.txt ## Analyzes OCR'ed text usin
cp src/reading_structure/print.css output/reading_structure
cp src/reading_structure/print.css output/reading_structure
cat $< | python3 src/reading_structure/reading_structure.py
cat $< | python3 src/reading_structure/reading_structure.py
weasyprint -s output/reading_structure/print.css output/reading_structure/index.html output/reading_structure/poster.pdf
weasyprint -s output/reading_structure/print.css output/reading_structure/index.html output/reading_structure/poster.pdf
x-www-browser output/reading_structure/index.html
output/chatbot.txt : ocr /output .txt ## Comments a text with a simple chatbot. Dependencies: python3's chatterbot
output/chatbot.txt : ocr /output .txt ## Comments a text with a simple chatbot. Dependencies: python3's chatterbot
cat $< | python3 src/textbotconversation.py $( @)
cat $< | python3 src/textbotconversation.py $( @)
@ -120,7 +121,7 @@ endif
ttssr-human-only : ocr /output .txt ## Loop: text to speech-speech recognition. Dependencies: espeak, pocketsphinx
ttssr-human-only : ocr /output .txt ## Loop: text to speech-speech recognition. Dependencies: espeak, pocketsphinx
bash src/ttssr/ttssr -loop-human-only.sh ocr/output.txt
bash src/ttssr-loop-human-only.sh ocr/output.txt
chatbook : ocr /output .txt #chatbot based on the knowledge of the scans Dependencies: nltk_rake, irc, nltk
chatbook : ocr /output .txt #chatbot based on the knowledge of the scans Dependencies: nltk_rake, irc, nltk
python3 src/chatbook.py
python3 src/chatbook.py