From e8bd92f1e74314a9d92f4475a82b192ee0c588b4 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 13 Nov 2015 06:42:23 +1100 Subject: [PATCH] * Fix lemma of let's, re Issue #177 --- lang_data/en/generate_specials.py | 4 ++-- lang_data/en/specials.json | 22 ++++++++++++---------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/lang_data/en/generate_specials.py b/lang_data/en/generate_specials.py index 6d061552b..2d0fb2d14 100644 --- a/lang_data/en/generate_specials.py +++ b/lang_data/en/generate_specials.py @@ -24,7 +24,6 @@ token_properties = { "i": {"L": "-PRON-"}, # no POS for i? "is": {"L": "be", "pos": "VBZ"}, "it": {"L": "-PRON-"}, # no POS for it? - "let": {}, # no POS or lemma for let? "'ll": {"L": "will", "pos": "MD"}, "'m": {"L": "be", "pos": "VBP", "number": 1, "tenspect": 1}, "'ma": {}, # no POS or lemma for ma? @@ -83,7 +82,6 @@ starting_tokens = { "i": {"'d": ["contrLower", "contrUpper"], "'d've": [], "'ll": ["contrLower", "contrUpper"], "'m": [], "'ma": [], "'ve": []}, "is": {"n't": []}, "it": {"'d": [], "'d've": [], "'ll": [], "'s": ["contrLower", "contrUpper"]}, - "let": {"'s": ["contrLower", "contrUpper"]}, "might": {"n't": [], "n't've": [], "'ve": []}, "must": {"n't": [], "'ve": []}, "need": {"n't": []}, @@ -111,6 +109,8 @@ starting_tokens = { # other specials that don't really have contractions # so they are hardcoded hardcoded_specials = { + "let's": [{"F": "let"}, {"F": "'s", "L": "us"}], + "Let's": [{"F": "Let"}, {"F": "'s", "L": "us"}], "'s": [{"F": "'s", "L": "'s"}], diff --git a/lang_data/en/specials.json b/lang_data/en/specials.json index 4cb44bb74..a3bf4804a 100644 --- a/lang_data/en/specials.json +++ b/lang_data/en/specials.json @@ -2639,6 +2639,15 @@ "F": "ma" } ], + "Let's": [ + { + "F": "Let" + }, + { + "L": "us", + "F": "'s" + } + ], "he's": [ { "L": "-PRON-", @@ -3147,11 +3156,6 @@ "pos": "MD" } ], - "=)": [ - { - "F": "=)" - } - ], "b.": [ { "F": "b." @@ -3502,6 +3506,7 @@ "F": "let" }, { + "L": "us", "F": "'s" } ], @@ -4531,12 +4536,9 @@ "pos": "VB" } ], - "Let's": [ + "=)": [ { - "F": "Let" - }, - { - "F": "'s" + "F": "=)" } ], "Colo.": [