From 340eae623a1ed08d44629998da97d3dc2f95d145 Mon Sep 17 00:00:00 2001 From: Ottokar Tilk Date: Fri, 31 Mar 2017 02:10:43 +0300 Subject: [PATCH] make sure punctuation vocab is in the expected order --- data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data.py b/data.py index 163f51d..949796d 100644 --- a/data.py +++ b/data.py @@ -37,7 +37,7 @@ WORD_VOCAB_FILE = os.path.join(DATA_PATH, "vocabulary") -PUNCTUATION_VOCABULARY = {SPACE, ",COMMA", ".PERIOD", "?QUESTIONMARK", "!EXCLAMATIONMARK", ":COLON", ";SEMICOLON", "-DASH"} +PUNCTUATION_VOCABULARY = [SPACE, ",COMMA", ".PERIOD", "?QUESTIONMARK", "!EXCLAMATIONMARK", ":COLON", ";SEMICOLON", "-DASH"] PUNCTUATION_MAPPING = {} # Comma, period & question mark only: