Update app.py
Browse files
app.py
CHANGED
@@ -63,12 +63,7 @@ if (st.checkbox('الاستعانة بالرسم البياني المعرفي
|
|
63 |
|
64 |
#@st.cache
|
65 |
def Query2id(voc, query):
|
66 |
-
|
67 |
-
return [voc.index[voc['word'] == word].values[0] for word in query.split()]
|
68 |
-
except KeyError:
|
69 |
-
st.markdown("""---""")
|
70 |
-
st.write('لم يتم التعرف على الكلمة')
|
71 |
-
st.markdown("""---""")
|
72 |
|
73 |
id_list = Query2id(df3, sent)
|
74 |
#@st.cache
|
|
|
63 |
|
64 |
#@st.cache
|
65 |
def Query2id(voc, query):
|
66 |
+
return [voc.index[voc['word'] == word].values[0] for word in query.split()]
|
|
|
|
|
|
|
|
|
|
|
67 |
|
68 |
id_list = Query2id(df3, sent)
|
69 |
#@st.cache
|