rocky250 commited on
Commit
d6b3d90
Β·
verified Β·
1 Parent(s): 0ee141d

Update analyzer.py

Browse files
Files changed (1) hide show
  1. analyzer.py +6 -6
analyzer.py CHANGED
@@ -11,9 +11,9 @@ from collections import Counter
11
  import pandas as pd
12
 
13
 
14
- # ═══════════════════════════════════════════════════════════════════════════════
15
  # MISINFORMATION DETECTION
16
- # ═══════════════════════════════════════════════════════════════════════════════
17
 
18
  # Signals that raise the misinformation score
19
  _RED_FLAGS = [
@@ -115,9 +115,9 @@ def detect_misinformation(
115
  }
116
 
117
 
118
- # ═══════════════════════════════════════════════════════════════════════════════
119
  # SENTIMENT ANALYSIS
120
- # ═══════════════════════════════════════════════════════════════════════════════
121
 
122
  def analyze_sentiment_batch(
123
  texts: list,
@@ -199,9 +199,9 @@ def _simple_sentiment(texts: list) -> list[dict]:
199
  return results
200
 
201
 
202
- # ═══════════════════════════════════════════════════════════════════════════════
203
  # SUMMARY + KEYWORDS
204
- # ═══════════════════════════════════════════════════════════════════════════════
205
 
206
  def sentiment_summary(sentiments: list) -> dict:
207
  if not sentiments:
 
11
  import pandas as pd
12
 
13
 
14
+
15
  # MISINFORMATION DETECTION
16
+
17
 
18
  # Signals that raise the misinformation score
19
  _RED_FLAGS = [
 
115
  }
116
 
117
 
118
+
119
  # SENTIMENT ANALYSIS
120
+
121
 
122
  def analyze_sentiment_batch(
123
  texts: list,
 
199
  return results
200
 
201
 
202
+
203
  # SUMMARY + KEYWORDS
204
+
205
 
206
  def sentiment_summary(sentiments: list) -> dict:
207
  if not sentiments: