Skip to content

Commit

Permalink
fix bug #1
Browse files Browse the repository at this point in the history
  • Loading branch information
breznak committed May 13, 2015
1 parent 2b13327 commit f4fdc99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/linguist.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ def tellStory(model, startSent, lenght):
print(c),
modelInput = {'letter': c}
result = model.run(modelInput)
c=result.inferences['prediction'][0] # bug in model randomization of same-probability states
#print result
c = result.inferences['multiStepBestPredictions'][1]
#print "c=",c
sentence_len += 1
if (c in TERMINATORS) or (sentence_len > 30): #limit, sometimes there's no sentence terminator generated and we'd run forever
Expand Down

0 comments on commit f4fdc99

Please sign in to comment.