Commit 1616d8d8 authored by Administrator's avatar Administrator

[DEBUG] Adding an error message to debug more thant 2 ngrams returned.

parent 7364825b
......@@ -257,7 +257,7 @@ def tfidf(corpus, document, ngram):
# result = tf * idf
result = term_frequency * inverse_d_frequency
except Exception as error:
print(error)
print(error, ngram)
result = 0
return result
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment