Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ if (st.checkbox('الاستعانة بالرسم البياني المعرفي
|
|
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,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 |
-
|
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:
|