AttributeError in Wikipedia Sentences Example
karndeb opened this issue · 2 comments
karndeb commented
Kelton8Z commented
The example code is not updated to the latest document api, the right attribute now is scores
, which is a key value pair.
e.g. you need to do d.scores['cosine'] = 1 - _dist
as documented in https://github.com/jina-ai/jina/blob/master/.github/2.0/cookbooks/Document.md#add-relevancy-to-documents