From ab147a880f31e2f001df17b31c538080a82542e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Tue, 2 Oct 2018 16:15:29 +0200 Subject: [PATCH] minor cleanup --- .gitignore | 1 + delojza.py | 2 +- robot.sh | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index aeb02b8..0521a6d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ out downloaded.lst delojza.log +initial.txt \ No newline at end of file diff --git a/delojza.py b/delojza.py index fae1955..480ec82 100755 --- a/delojza.py +++ b/delojza.py @@ -22,7 +22,7 @@ logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger("kunsax") -markov: markovify.NewlineText +markov = None def add_to_corpus(text): diff --git a/robot.sh b/robot.sh index 733aaf2..7981c3a 100755 --- a/robot.sh +++ b/robot.sh @@ -2,4 +2,5 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd ${DIR} ./update.sh & +source ./venv/bin/activate python3 delojza.py 2>&1 |tee -a delojza.log