We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 871d6fd commit 7a3facdCopy full SHA for 7a3facd
truelearn/preprocessing/_wikifier.py
@@ -182,7 +182,7 @@ def __restructure_annotation(
182
def page_rank_as_key(annotation: Annotation) -> float:
183
"""Return page rank from annotation.
184
185
- This method could be used to change how the annotations
+ This method can be used to sort the annotations by page rank.
186
187
Args:
188
annotation: An annotation from the wikifier API.
@@ -195,6 +195,8 @@ def page_rank_as_key(annotation: Annotation) -> float:
195
def cosine_as_key(annotation: Annotation) -> float:
196
"""Return cosine from annotation.
197
198
+ This method can be used to sort the annotations by cosine similarity.
199
+
200
201
202
0 commit comments