Update pages/3_Earnings_Semantic_Search_π_.py
Browse files
pages/3_Earnings_Semantic_Search_π_.py
CHANGED
@@ -41,9 +41,8 @@ score='cross-score'
|
|
41 |
df = pd.DataFrame([(hit[score],passages[hit['corpus_id']]) for hit in hits[0:2]],columns=['Score','Text'])
|
42 |
df['Score'] = round(df['Score'],2)
|
43 |
|
44 |
-
tag_list = []
|
45 |
-
|
46 |
def gen_annotated_text(para):
|
|
|
47 |
for i in sent_tokenize(para):
|
48 |
label = sen_df.loc[sen_df['text']==i, 'label'].values[0]
|
49 |
if label == 'Negative':
|
|
|
41 |
df = pd.DataFrame([(hit[score],passages[hit['corpus_id']]) for hit in hits[0:2]],columns=['Score','Text'])
|
42 |
df['Score'] = round(df['Score'],2)
|
43 |
|
|
|
|
|
44 |
def gen_annotated_text(para):
|
45 |
+
tag_list = []
|
46 |
for i in sent_tokenize(para):
|
47 |
label = sen_df.loc[sen_df['text']==i, 'label'].values[0]
|
48 |
if label == 'Negative':
|