Skip to content

Commit 8f57b23

Browse files
author
John Wiseman
committed
Lower-case input. Note the use of $.
1 parent 8671c90 commit 8f57b23

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ probability of some small number.
4444
This code is unoptimized and slow. If you try to decode more than 3
4545
or 4 characters, you're going to be waiting a long time.
4646

47+
You can use "$" to indicate the start of a sentence, for example "$obv".
48+
4749

4850
### Corpora
4951

decode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def main(argv):
125125
logger.info('Initializing...')
126126
decoder = Decoder(args)
127127
while True:
128-
line = raw_input('Enter initials:\n')
128+
line = raw_input('Enter initials:\n').lower()
129129
logger.info('Decoding %r', line)
130130
result = decoder.decode(line)
131131
print result

0 commit comments

Comments
 (0)