From 92b467b93461d9a1a1d60332dab0394217d571a5 Mon Sep 17 00:00:00 2001 From: Richard Chien Date: Fri, 13 Jan 2017 12:54:02 +0800 Subject: [PATCH] Nothing --- nl_processors/weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nl_processors/weather.py b/nl_processors/weather.py index 02e90837..d77e2ca0 100644 --- a/nl_processors/weather.py +++ b/nl_processors/weather.py @@ -38,7 +38,7 @@ def _processor(sentence, segmentation): continue flag = seg.flag - score_dict = {'v': -10, 'l': -8, 'n': -5, 'p': -3, 't': +3, 'other': -1} + score_dict = {'v': -10, 'l': -8, 'n': -5, 'p': -3, 'y': 0, 't': +3, 'other': -1} for k, v in score_dict.items(): if flag.startswith(k): possibility += v