awacke1 commited on
Commit
6e29f2d
·
1 Parent(s): ee0a867

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def preprocess_text(text):
17
  return text
18
 
19
  def get_most_frequent_words(text, n):
20
- words = re.findall(r'\b\w{4,}\b', text)
21
  word_count = Counter(words)
22
  most_common_words = word_count.most_common(n)
23
  return most_common_words
 
17
  return text
18
 
19
  def get_most_frequent_words(text, n):
20
+ words = re.findall(r'\b\w{5,}\b', text)
21
  word_count = Counter(words)
22
  most_common_words = word_count.most_common(n)
23
  return most_common_words