Update app.py
Browse files
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)}
|