From 4bf4d02a14f36a47f15a87bef4440182055a8795 Mon Sep 17 00:00:00 2001 From: Alice Date: Fri, 23 Feb 2018 16:01:35 +0100 Subject: [PATCH 1/3] edited source of script --- src/{91K nouns.txt => 91K_nouns.txt} | 0 src/n_7.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename src/{91K nouns.txt => 91K_nouns.txt} (100%) diff --git a/src/91K nouns.txt b/src/91K_nouns.txt similarity index 100% rename from src/91K nouns.txt rename to src/91K_nouns.txt diff --git a/src/n_7.py b/src/n_7.py index 0f29e88..1ac7688 100644 --- a/src/n_7.py +++ b/src/n_7.py @@ -3,7 +3,7 @@ from sys import stdin, stdout def seven(text): - fpath = open('91K nouns.txt') + fpath = open('src/91K_nouns.txt') nouns = fpath.readlines() separated = text.split() #use nltk tokenize instead #print(separated) From d86c273ddbb81061c2fbd9ca17de25fd328a7fe2 Mon Sep 17 00:00:00 2001 From: jvdhorst Date: Fri, 23 Feb 2018 16:05:09 +0100 Subject: [PATCH 2/3] updated readme --- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README b/README index b2b3d0b..419cc9e 100644 --- a/README +++ b/README @@ -6,4 +6,4 @@ Makefile: * `make tessaract` **dependency: tesseract** * `make myscript` * `make visualization`: **dependency: mplayer** creates visualization of images/ dir, by cating the images content into mplayer. See more option ins [shiftop](https://git.bleu255.com/shiftop/file/shiftop.html) - +* `make wordtagger`: **dependency: tesseract** Uses scanned pages as an input, tags each word for their wordtype (noun, verb etc) and saves it in a text file. From ef960a5a0ba6c1aa5294841d8298cdaa94864d87 Mon Sep 17 00:00:00 2001 From: jvdhorst Date: Fri, 23 Feb 2018 16:09:10 +0100 Subject: [PATCH 3/3] Made my script speak now --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 490012a..434c2f0 100644 --- a/Makefile +++ b/Makefile @@ -34,8 +34,8 @@ myscript: tesseract cat output/plain.txt | python3 src/myscript.py > output/a-new-file.txt wordtagger: tesseract - cat output/plain.txt | python3 src/wordtagger.py > output/tagged-words.txt - + cat output/plain.txt | python3 src/wordtagger.py > output/tagged-words.txt | cat output/tagged-words.txt | espeak + talktochatbot: tesseract cat output/plain.txt | python3 src/textbotconversation.py