amir22010 commited on
Commit
ac52f8e
·
1 Parent(s): 3cf3a11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -45,8 +45,7 @@ def perform_asde_inference(text, dataset, model_id):
45
  true_sentiment = selected_df['actual_sentiments']
46
  true_doubles = pd.DataFrame(list(map(list, zip(ast.literal_eval(true_aspect), ast.literal_eval(true_sentiment)))),columns=['Aspect','Sentiment'])
47
  else:
48
- #true_doubles = pd.DataFrame([["NA","NA"]],columns=['Aspect','Sentiment'])
49
- true_doubles = ""
50
 
51
  bos_instruction = """Definition: The output will be the aspects (both implicit and explicit) and the aspects sentiment polarity. In cases where there are no aspects the output should be noaspectterm:none.
52
  Positive example 1-
 
45
  true_sentiment = selected_df['actual_sentiments']
46
  true_doubles = pd.DataFrame(list(map(list, zip(ast.literal_eval(true_aspect), ast.literal_eval(true_sentiment)))),columns=['Aspect','Sentiment'])
47
  else:
48
+ true_doubles = pd.DataFrame([["NA","NA"]],columns=['Aspect','Sentiment'])
 
49
 
50
  bos_instruction = """Definition: The output will be the aspects (both implicit and explicit) and the aspects sentiment polarity. In cases where there are no aspects the output should be noaspectterm:none.
51
  Positive example 1-