diff --git a/data-computer/v1/lda.py b/data-computer/v1/lda.py index b7206a1..2293d59 100755 --- a/data-computer/v1/lda.py +++ b/data-computer/v1/lda.py @@ -22,7 +22,6 @@ return text_with_no_accent def uniformize(text): - # del accents, using remove_accents function text = remove_accents(text) # remove punctuation except " ' " @@ -46,7 +45,9 @@ # Max topic def max_topic(dico): - # for a dictionary of topics, return a json with a single key "best topic" and his value is the value of the dictionary. + """ + for a dictionary of topics, return a json with a single key "best topic" and his value is the value of the dictionary. + """ best_topic = {} best_proba = 0 for topic in dico: