senarvi / theanolm

TheanoLM is a recurrent neural network language modeling tool implemented using Theano
Apache License 2.0
81 stars 29 forks source link

Fix sampling when no seed sequence given #45

Closed Gastron closed 3 years ago

Gastron commented 3 years ago

Simple mistake that I noticed I had added a while a back. When no seed sequence was given for sampling, seed sequence became None, which would lead to AttributeError exception occurred: 'NoneType' object has no attribute 'strip'

senarvi commented 3 years ago

Thanks for the fix Aku!