summaryrefslogtreecommitdiff
path: root/client/vocabcompiler.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-10-06 16:59:36 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-10-06 16:59:36 +0200
commitedca8b7407d7c9b1497ba1722d1b66ffa4b4c234 (patch)
treed544987379415ac557751401ea0b0c7de81530b7 /client/vocabcompiler.py
parent890a5798fcf7f9b9dc06529aa4bc7fe903d7ca1a (diff)
parent804da384bff556d3caedf9ad01d57f2460aee151 (diff)
downloadjasper-client-edca8b7407d7c9b1497ba1722d1b66ffa4b4c234.tar.gz
jasper-client-edca8b7407d7c9b1497ba1722d1b66ffa4b4c234.zip
Merge pull request #217 from Holzhaus/style-fixes
Style fixes
Diffstat (limited to 'client/vocabcompiler.py')
-rw-r--r--client/vocabcompiler.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/vocabcompiler.py b/client/vocabcompiler.py
index 1ca0d26..52b1f0a 100644
--- a/client/vocabcompiler.py
+++ b/client/vocabcompiler.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8-*-
"""
- Iterates over all the WORDS variables in the modules and creates a dictionary for the client.
+Iterates over all the WORDS variables in the modules and creates a
+dictionary for the client.
"""
import os
@@ -11,8 +12,8 @@ from brain import Brain
def text2lm(in_filename, out_filename):
"""Wrapper around the language model compilation tools"""
def text2idngram(in_filename, out_filename):
- cmd = "text2idngram -vocab %s < %s -idngram temp.idngram" % (out_filename,
- in_filename)
+ cmd = "text2idngram -vocab %s < %s -idngram temp.idngram" % (
+ out_filename, in_filename)
os.system(cmd)
def idngram2lm(in_filename, out_filename):