Permalink
Browse files

Minor modification input files

  • Loading branch information...
1 parent 82f1da6 commit 3aaf16ec0c8dc50ee1e20915bd72346aa2c56409 Sergio Grau Puerto committed Sep 11, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 keywords/keywords.py
View
@@ -17,11 +17,13 @@ def keywords_and_ngrams(input, nKeywords=100, thresholdLL=19, nBigrams=25, thres
fdistText = defaultdict(int)
sumText = 0
listWords = []
+
listSentences = []
if isinstance(input,str):
listSentences = [input]
else:
listSentences = input
+
for line in listSentences:
for w in line.split():
w = w.lower()

0 comments on commit 3aaf16e

Please sign in to comment.