def test_speller():
model = load_model("keras_spell_e349.h5")
ctable = CharacterTable(read_top_chars())
X_val, y_val = next(generator(NEWS_FILE_NAME_VALIDATE))
print_random_predictions(model, ctable, X_val, y_val)Keras V1.2.2 python 2.7
Q Read TABLE 9 if you turn 65 after April 5.
A Read TABLE 9 if you turn 65 after April 5.
☒ Rnad 84ZLOoqMnnqqdmmr::kknnouhlc_t--
---
Q That seems ... odd.
A That seems ... odd.
☒ Than?mneqqdnnvmmcll_mm*!!Rbuhhl__r--
---
Q Watching the people of Egypt rise up and take Alexandria.
A Watching the people of Egypt rise up and take Alexandria.
☒ Watchinqnxxf_ttythdkkddd1//hQDDdf---