Skip to content

Commit

Permalink
Merge pull request #49 from jeffnappi/patch-1
Browse files Browse the repository at this point in the history
Fixed long-form article issue w/ calculate_best_node
  • Loading branch information
codelucas committed May 1, 2014
2 parents e0718be + ba7d272 commit 856346c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newspaper/extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ def calculate_best_node(self, article):
if (nodes_number - i) <= bottom_negativescore_nodes:
booster = float(bottom_negativescore_nodes - (nodes_number - i))
boost_score = float(-pow(booster, float(2)))
negscore = -abs(boost_score) + negative_scoring
negscore = abs(boost_score) + negative_scoring
if negscore > 40:
boost_score = float(5)

Expand Down

0 comments on commit 856346c

Please sign in to comment.