
回到特征:建立学术论文推荐器
|
135
... print('\nTop three results: ')
... order = 1
... for i in top_results.index.tolist()[-3:]:
... print(order,'. Paper index = ', i)
... print('Similarity score: ', top_results[i])
... print(model_df.iloc[i], '\n')
... if order < 5: order += 1
>>> paper_recommender(2, first_items)
Based on the paper:
index = 2
abstract NaN
authors [{'name': 'Jovana P. Lekovich', 'org': 'Weill ...
fos NaN
keywords NaN
title Should endometriosis be an indication for intr...
year 2015
Name: 2, dtype: object
Top three results:
1 . Paper index = 2
Similarity score: 1.0
abstract NaN
authors [{'name': 'Jovana P. Lekovich', 'org': 'Weill ... ...