Hamda commited on
Commit
c3cfbed
·
1 Parent(s): 83a58a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -57,7 +57,7 @@ if (st.checkbox('الاستعانة بالرسم البياني المعرفي
57
 
58
  df3, df_g, df_in = reading_df(VocMap, ScoreMap)
59
 
60
- #@st.cache
61
  def Query2id(voc, query):
62
  res= []
63
  for word in query.split():
@@ -67,11 +67,9 @@ if (st.checkbox('الاستعانة بالرسم البياني المعرفي
67
  st.write('Token Unfound')
68
  continue
69
  return res
70
- #return [voc.index[voc['word'] == word].values[0] for word in query.split()]
71
- #return [voc.index[voc['word'] == word].values[0] for word in query.split()]
72
 
73
  id_list = Query2id(df3, sent)
74
- #@st.cache
75
  def setQueriesVoc(df, id_list):
76
  res = []
77
  for e in id_list:
 
57
 
58
  df3, df_g, df_in = reading_df(VocMap, ScoreMap)
59
 
60
+
61
  def Query2id(voc, query):
62
  res= []
63
  for word in query.split():
 
67
  st.write('Token Unfound')
68
  continue
69
  return res
 
 
70
 
71
  id_list = Query2id(df3, sent)
72
+
73
  def setQueriesVoc(df, id_list):
74
  res = []
75
  for e in id_list: