Update pages/3_Earnings_Semantic_Search_π_.py
Browse files
pages/3_Earnings_Semantic_Search_π_.py
CHANGED
@@ -14,8 +14,6 @@ window_size = st.sidebar.slider("Number of Sentences Generated in Search Respons
|
|
14 |
|
15 |
if "earnings_passages" not in st.session_state:
|
16 |
st.session_state["earnings_passages"] = ''
|
17 |
-
|
18 |
-
print(st.session_state["sen_df"])
|
19 |
|
20 |
if search_input is not None:
|
21 |
|
@@ -50,8 +48,6 @@ if search_input is not None:
|
|
50 |
df = pd.DataFrame([(hit[score],passages[hit['corpus_id']]) for hit in hits[0:int(top_k)]],columns=['Score','Text'])
|
51 |
df['Score'] = round(df['Score'],2)
|
52 |
|
53 |
-
print(sen_df)
|
54 |
-
|
55 |
def gen_annotated_text(para,df=sen_df):
|
56 |
tag_list = []
|
57 |
for i in sent_tokenize(para):
|
|
|
14 |
|
15 |
if "earnings_passages" not in st.session_state:
|
16 |
st.session_state["earnings_passages"] = ''
|
|
|
|
|
17 |
|
18 |
if search_input is not None:
|
19 |
|
|
|
48 |
df = pd.DataFrame([(hit[score],passages[hit['corpus_id']]) for hit in hits[0:int(top_k)]],columns=['Score','Text'])
|
49 |
df['Score'] = round(df['Score'],2)
|
50 |
|
|
|
|
|
51 |
def gen_annotated_text(para,df=sen_df):
|
52 |
tag_list = []
|
53 |
for i in sent_tokenize(para):
|