AlGe commited on
Commit
98a80ca
·
verified ·
1 Parent(s): 6f0fc8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -117,6 +117,7 @@ def generate_wordcloud(entities: List[Dict], color_map: Dict[str, str]) -> np.nd
117
  token_texts.append(token)
118
  token_scores.append(entity['score'])
119
  token_types.append(entity['entity'])
 
120
 
121
  # Create a dictionary for word cloud
122
  word_freq = {text: score for text, score in zip(token_texts, token_scores)}
 
117
  token_texts.append(token)
118
  token_scores.append(entity['score'])
119
  token_types.append(entity['entity'])
120
+ print(f"{token} ({entity['entity']}): {entity['score']}")
121
 
122
  # Create a dictionary for word cloud
123
  word_freq = {text: score for text, score in zip(token_texts, token_scores)}