Skip to content

Commit

Permalink
bump to 0.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
isnowfy committed Dec 23, 2013
1 parent 7a99b9a commit 90c07d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def read(fname):

setup(
name='snownlp',
version='0.9.7',
version='0.9.8',
description='Python library for processing Chinese text',
author='isnowfy',
url='https://github.com/isnowfy/snownlp',
Expand Down
2 changes: 1 addition & 1 deletion snownlp/sim/bm25.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class BM25(object):

def __init__(self, docs):
self.D = len(docs)
self.avgdl = sum(map(lambda x: len(x)+0.0, docs)) / self.D
self.avgdl = sum([len(doc)+0.0 for doc in docs]) / self.D
self.docs = docs
self.f = []
self.df = {}
Expand Down

0 comments on commit 90c07d3

Please sign in to comment.