amir22010 commited on
Commit
d504664
·
1 Parent(s): 46b1b94

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def perform_asde_inference(text, dataset, model_id):
40
  true_sentiment = selected_df['actual_sentiments']
41
  true_doubles = pd.DataFrame(list(map(list, zip(ast.literal_eval(true_aspect), ast.literal_eval(true_sentiment)))),columns=['Aspect','Sentiment'])
42
  else:
43
- true_doubles = pd.DataFrame([["",""]],columns=['Aspect','Sentiment'])
44
 
45
  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.
46
  Positive example 1-
 
40
  true_sentiment = selected_df['actual_sentiments']
41
  true_doubles = pd.DataFrame(list(map(list, zip(ast.literal_eval(true_aspect), ast.literal_eval(true_sentiment)))),columns=['Aspect','Sentiment'])
42
  else:
43
+ true_doubles = pd.DataFrame([["NA","NA"]],columns=['Aspect','Sentiment'])
44
 
45
  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.
46
  Positive example 1-