Skip to content

Commit ad28c0a

Browse files
stevenaetomaarsen
andauthored
Document broken LexRank pip implementation (#3567)
* Document broken LexRank pip implementation Added a note about the broken pip implementation of LexRank and provided a link to a working implementation. * Move comment as the linter complains, use link with `master` --------- Co-authored-by: Tom Aarsen <[email protected]>
1 parent 4f48905 commit ad28c0a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/sentence_transformer/applications/text-summarization/text-summarization.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
Note: Requires NLTK: `pip install nltk`
1919
"""
2020

21+
# NB
22+
# The pip implementation of LexRank is broken.
23+
# A working implementation can be found at https://github.com/huggingface/sentence-transformers/blob/master/examples/sentence_transformer/applications/text-summarization/LexRank.py.
2124
import nltk
2225
import numpy as np
2326
from LexRank import degree_centrality_scores

0 commit comments

Comments
 (0)