|
@@ -130,12 +130,13 @@ async def search_videos_from_web(info, gh_id_map, db_client):
|
|
|
mention=False
|
|
|
)
|
|
|
|
|
|
+ success_match_video_count = 0
|
|
|
for recall_obj in ranked_list:
|
|
|
if recall_obj:
|
|
|
platform = recall_obj['platform']
|
|
|
recall_video = recall_obj['result']
|
|
|
score = recall_obj['score']
|
|
|
- # 过滤掉nlp分低于0.45的
|
|
|
+ # 过滤掉nlp分低于0.55的
|
|
|
if score < server_const.NLP_SIMILARITY_THRESHOLD:
|
|
|
continue
|
|
|
|
|
@@ -150,4 +151,5 @@ async def search_videos_from_web(info, gh_id_map, db_client):
|
|
|
db_client=db_client,
|
|
|
similarity_score=score
|
|
|
)
|
|
|
- return len(ranked_list)
|
|
|
+ success_match_video_count += 1
|
|
|
+ return success_match_video_count
|