jishnuprakash commited on
Commit
814772d
·
1 Parent(s): df17ec4

documentation

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -154,6 +154,11 @@ with st.form('model_test_prediction'):
154
  s3.metric(label ='Accuracy',value = acc, delta = '', delta_color = 'inverse')
155
 
156
  st.header("Comparison - Model Performance")
 
 
 
 
 
157
  met = pd.read_csv("model_comparison.csv")
158
  a1, a2 = st.columns((0.5,0.5))
159
  a1.subheader("Evaluation Metrics")
 
154
  s3.metric(label ='Accuracy',value = acc, delta = '', delta_color = 'inverse')
155
 
156
  st.header("Comparison - Model Performance")
157
+ st.write("""2 transformer models were finetuned and compared their performance on the test dataset. \\
158
+ - Bert uncased model (on Original & preprocessed text) \\
159
+ - Legal-Bert model (on Original & preprocessed text)\\
160
+ (Preprocessing steps were removal of numbers, symbols, stopwords followed by lemmatisation on tokens.)\\
161
+ The best performing model is Legal-BERT on original data. Please see the comparison below.""")
162
  met = pd.read_csv("model_comparison.csv")
163
  a1, a2 = st.columns((0.5,0.5))
164
  a1.subheader("Evaluation Metrics")