Kuautli commited on
Commit
93f0d00
·
verified ·
1 Parent(s): 66d1067

Update clustering.py

Browse files
Files changed (1) hide show
  1. clustering.py +1 -1
clustering.py CHANGED
@@ -858,7 +858,7 @@ def map_sentiment(estrella):
858
  return "positivo"
859
 
860
 
861
- def classify_sentiment_df(data, comment_col="comment", num_threads=4):
862
  def classify_sentiment(texto):
863
  resultado = classifier(texto)[0]
864
  sentimiento = map_sentiment(resultado["label"])
 
858
  return "positivo"
859
 
860
 
861
+ def classify_sentiment_df(data, comment_col="comment", num_threads=8):
862
  def classify_sentiment(texto):
863
  resultado = classifier(texto)[0]
864
  sentimiento = map_sentiment(resultado["label"])