added text multiselect (max_s = 1) for dictionary function
Browse files- all_lemmas.pkl.gz +3 -0
- app.py +6 -1
all_lemmas.pkl.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:92806801015338d7b0b5d4b20e0d37ef8f98252fc254bf8da558d28bdb0794cc
|
3 |
+
size 594026
|
app.py
CHANGED
@@ -5,6 +5,7 @@ import pandas as pd
|
|
5 |
from autocomplete import *
|
6 |
from vector_graph import *
|
7 |
from plots import *
|
|
|
8 |
|
9 |
st.set_page_config(page_title="Ancient Greek Word2Vec", layout="centered")
|
10 |
|
@@ -154,5 +155,9 @@ elif active_tab == "3D graph":
|
|
154 |
# Dictionary tab
|
155 |
elif active_tab == "Dictionary":
|
156 |
with st.container():
|
157 |
-
|
|
|
|
|
|
|
|
|
158 |
|
|
|
5 |
from autocomplete import *
|
6 |
from vector_graph import *
|
7 |
from plots import *
|
8 |
+
from lsj_dict import *
|
9 |
|
10 |
st.set_page_config(page_title="Ancient Greek Word2Vec", layout="centered")
|
11 |
|
|
|
155 |
# Dictionary tab
|
156 |
elif active_tab == "Dictionary":
|
157 |
with st.container():
|
158 |
+
all_lemmas = load_compressed_word_list('all_lemmas.pkl.gz')
|
159 |
+
|
160 |
+
query_word = st.multiselect("Search a word in the LSJ dictionary", all_lemmas, max_selections=1)
|
161 |
+
|
162 |
+
|
163 |
|