Skip to content

Commit 7a3facd

Browse files
committed
fix: missing docstring
1 parent 871d6fd commit 7a3facd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

truelearn/preprocessing/_wikifier.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def __restructure_annotation(
182182
def page_rank_as_key(annotation: Annotation) -> float:
183183
"""Return page rank from annotation.
184184
185-
This method could be used to change how the annotations
185+
This method can be used to sort the annotations by page rank.
186186
187187
Args:
188188
annotation: An annotation from the wikifier API.
@@ -195,6 +195,8 @@ def page_rank_as_key(annotation: Annotation) -> float:
195195
def cosine_as_key(annotation: Annotation) -> float:
196196
"""Return cosine from annotation.
197197
198+
This method can be used to sort the annotations by cosine similarity.
199+
198200
Args:
199201
annotation: An annotation from the wikifier API.
200202

0 commit comments

Comments
 (0)