rezacsedu commited on
Commit
bae37de
1 Parent(s): 56438a5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -9
README.md CHANGED
@@ -42,15 +42,15 @@ tokenizer = AutoTokenizer.from_pretrained("fine_tuned_finsetiment_model")
42
 
43
  # Define the label mapping as provided
44
  label_mapping_reverse = {
45
- 'LABEL_0': 'mildly positive',
46
- 'LABEL_1': 'mildly negative',
47
- 'LABEL_2': 'moderately negative',
48
- 'LABEL_3': 'moderately positive',
49
- 'LABEL_4': 'positive',
50
- 'LABEL_5': 'negative',
51
- 'LABEL_6': 'neutral',
52
- 'LABEL_7': 'strong negative',
53
- 'LABEL_8': 'strong positive'
54
  }
55
 
56
  def model_predict(text):
 
42
 
43
  # Define the label mapping as provided
44
  label_mapping_reverse = {
45
+ '0': 'Mildly positive',
46
+ '1': 'Mildly negative',
47
+ '2': 'Moderately negative',
48
+ '3': 'Moderately positive',
49
+ '4': 'Positive',
50
+ '5': 'Negative',
51
+ '6': 'Neutral',
52
+ '7': 'Strongly negative',
53
+ '8': 'Strongly positive'
54
  }
55
 
56
  def model_predict(text):