summaryrefslogtreecommitdiff
path: root/boot/vocabcompiler.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-05-27 19:01:17 -0700
committerschneefux <schneefux+commit@schneefux.xyz>2014-05-27 19:01:17 -0700
commitc86bc2e1f96637bba9ee17bce11f48e783bd256f (patch)
tree8019a65c14d77cb5be163eb9c1abc253044676ca /boot/vocabcompiler.py
parent5deb1799cefe9351b90d3457898990d454d4a4dc (diff)
downloadjasper-client-c86bc2e1f96637bba9ee17bce11f48e783bd256f.tar.gz
jasper-client-c86bc2e1f96637bba9ee17bce11f48e783bd256f.zip
no need for '+' in write
Diffstat (limited to 'boot/vocabcompiler.py')
-rw-r--r--boot/vocabcompiler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/vocabcompiler.py b/boot/vocabcompiler.py
index 1d2a51d..a3aaf66 100644
--- a/boot/vocabcompiler.py
+++ b/boot/vocabcompiler.py
@@ -57,11 +57,11 @@ def compile(sentences, dictionary, languagemodel):
zipped = zip(words, pronounced)
lines = ["%s %s" % (x, y) for x, y in zipped]
- with open(dictionary, "w+") as f:
+ with open(dictionary, "w") as f:
f.write("\n".join(lines) + "\n")
# create the language model
- with open(sentences, "w+") as f:
+ with open(sentences, "w") as f:
f.write("\n".join(words) + "\n")
f.write("<s> \n </s> \n")
f.close()