From 3b2dbc75ec955ecd51b9eb6dc4c5ecae5c24d56c Mon Sep 17 00:00:00 2001 From: doug919 Date: Tue, 24 Feb 2015 12:00:46 +0800 Subject: [PATCH] release note --- feelit/features.py | 5 +++-- release_note | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 release_note diff --git a/feelit/features.py b/feelit/features.py index e8654eb..1411066 100644 --- a/feelit/features.py +++ b/feelit/features.py @@ -194,8 +194,9 @@ def _sum_pattern_vector(self, pf, use_score=False, vlambda=1.0): temp_vec = freq_vec.values() sum_vec = map(add, sum_vec, temp_vec) - - return [v/len(pf) for v in sum_vec] + + return [v/len(pf) for v in sum_vec] if len(pf) != 0 else sum_vec + def sum_pattern_freq_vector(self, pf): """ diff --git a/release_note b/release_note new file mode 100644 index 0000000..427755b --- /dev/null +++ b/release_note @@ -0,0 +1,6 @@ +Version: 0.10.2 +Author: Douglas +Date: 2015.2.24 + +1. New: patter scoring +