diff --git a/Makefile b/Makefile index 32a4b6e..afbe925 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ images=$(sort $(wildcard images/*.jpg)) # @andre make wildcard so that it takes any image file but doesn't take the listimg.txt file -images-tiff=$(sort $(wildcard images-tiff/*.jpg)) +images-tiff=$(sort $(wildcard images-tiff/*.tiff)) output_ocr:=$(dir_ocr)/output.txt tmpfile:= $(shell mktemp) space:= $(empty) $(empty) @@ -93,12 +93,14 @@ carlandre: ocr/output.txt ## Alice: Creates visual poetry out of a text. Depende .PHONY: carlandre # cat $(@) > /dev/usb/lp0 + overunder: ocr/output.txt ## Alice: An interpreted language that translate simple weaving instructions and creates a weaving pattern on text. @python3 src/overunder.py .PHONY: overunder -erase: ## Natasha: Analyzes pages in order, erases least common words from view. Dependencies: PIL, html5lib, FPDF +erase:hocrs ## Natasha: Analyzes pages in order, erases least common words from view. Dependencies: PIL, html5lib, FPDF python3 src/erase_leastcommon.py + @echo 'erase rule output: output/erase-replace/Erase.pdf' replace: ## Natasha: Analyzes pages in order, replace least common words with most common words. Dependencies: PIL, html5lib, FPDF python3 src/replace_leastcommon.py diff --git a/README b/README index 1bd6563..cf994f8 100644 --- a/README +++ b/README @@ -7,10 +7,22 @@ Software experiments for the OuNuPo bookscanner. Part of Special Issue #5 #Angeliki Diakrousi -# Install +## Install `git clone https://git.xpub.nl/repos/OuNuPo-make.git` +## General depencies +* Python3 +* GNU make +* Python3 NLTK `how to install` +* NLTK English Corpus: + * run NLTK downloader `python -m nltk.downloader` + * select menu "Corpora" + * select "stopwords" + * "Dowload" + + + # Make commands ## N+7 (example) Author @@ -30,13 +42,18 @@ Description: Speech recognition feedback loops using the first sentence of a sca run: `make ttssr-human-only` dependencies: -*python 3.3 -*pocketsphinx -*SpeechRecognition 3.8.1 -*PyAudio +* python 3.3 -----> put in general dependencies (top) +* [pocketsphinx](https://github.com/bambocher/pocketsphinx-python) `sudo pip3 install pocketsphinx` +* SpeechRecognition 3.8.1 +* PyAudio install: -`https://pzwiki.wdka.nl/mediadesign/Speech_recognition` +`` + + + +## tash + python -m nltk.downloader ---> dependencies