Geraldine commited on
Commit
30883d6
1 Parent(s): 5821d45

Update pages/documentation.py

Browse files
Files changed (1) hide show
  1. pages/documentation.py +1 -3
pages/documentation.py CHANGED
@@ -37,9 +37,7 @@ df = df.replace(np.nan, '')
37
  st.write("The dataframe's colmumns of metadata are then concatenated into a single combined text in a new column. It is therefore on this new column that the different embeddings models will be applied to encode this combined text and output a single vector embedding.")
38
  st.code("""
39
  df = df.astype(str)
40
- df["combined"] = (
41
- "Title: " + df.title_s + ". " + df.subTitle_s + ". Authors :" + df.authFullName_s + ". Publication date :" + df.producedDate_s + ". Journal title :" + df.journalTitle_s + ". Publisher :" + df.journalPublisher_s + ". Astract : " + df.abstract_s
42
-
43
  """, language='python')
44
 
45
  st.subheader(":blue[Huggingface open models for Embeddings]")
 
37
  st.write("The dataframe's colmumns of metadata are then concatenated into a single combined text in a new column. It is therefore on this new column that the different embeddings models will be applied to encode this combined text and output a single vector embedding.")
38
  st.code("""
39
  df = df.astype(str)
40
+ df["combined"] = df.title_s + ". " + df.subTitle_s + ". " +df.abstract_s
 
 
41
  """, language='python')
42
 
43
  st.subheader(":blue[Huggingface open models for Embeddings]")