kusa04 commited on
Commit
910b931
·
verified ·
1 Parent(s): ca782c7

Update functions.py

Browse files
Files changed (1) hide show
  1. functions.py +1 -1
functions.py CHANGED
@@ -89,7 +89,7 @@ def analyze_detail(text, tokenizer, sentiment_pipeline, max_tokens):
89
  if not chunks:
90
  return None
91
  # ここでバッチ処理を実行(チャンク全体を一括推論)
92
- results = safe_sentiment_batch(sentiment_pipeline) #, chunks)
93
 
94
  # 各チャンクの結果を集計
95
  scores = {"POSITIVE": 0, "NEGATIVE": 0, "NEUTRAL": 0}
 
89
  if not chunks:
90
  return None
91
  # ここでバッチ処理を実行(チャンク全体を一括推論)
92
+ results = safe_sentiment_batch(sentiment_pipeline, chunks)
93
 
94
  # 各チャンクの結果を集計
95
  scores = {"POSITIVE": 0, "NEGATIVE": 0, "NEUTRAL": 0}