Skip to content

Commit

Permalink
fix: '\n' is seqence separator too
Browse files Browse the repository at this point in the history
  • Loading branch information
breznak committed Nov 17, 2013
1 parent 086bc97 commit 3bb40d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/linguist.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
NUM_REPEATS = 5
PRINT_EVERY_REPEAT_N = 1

TERMINATORS = ['.','!','?','|']
TERMINATORS = ['.','!','?','|','\n']
NUM_SENTENCES = 5 # number for story sentences generated
STORY_START = "The dog"
_QUIT = "QUIT"
Expand Down
6 changes: 3 additions & 3 deletions client/model_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
# elements to append to the end of a learned sequence at a time.
# Smaller values are better for datasets with short sequences,
# higher values are better for datasets with long sequences.
'pamLength': 5,
'pamLength': 6,
},

'clParams': {
Expand All @@ -240,14 +240,14 @@

# This controls how fast the classifier learns/forgets. Higher values
# make it adapt faster and forget older patterns faster.
'alpha': 0.01080959960713530062,
'alpha': 0.001080959960713530062,

# This is set after the call to updateConfigFromSubConfig and is
# computed from the aggregationInfo and predictAheadTime.
#'steps': '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16',
'steps': '1,2,3,4,5',
},

'trainSPNetOnlyIfRequested': True,
'trainSPNetOnlyIfRequested': False,
},
}

0 comments on commit 3bb40d6

Please sign in to comment.