11# Reference: ` pytextrank ` package
2+ Package definitions for the ` pytextrank ` library.
3+
4+
25## [ ` BaseTextRankFactory ` class] ( #BaseTextRankFactory )
36
47A factory class that provides the document with its instance of
@@ -118,7 +121,7 @@ list of ranked phrases, in descending order
118121
119122---
120123#### [ ` get_personalization ` method] ( #pytextrank.BaseTextRank.get_personalization )
121- [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/base.py#L376 )
124+ [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/base.py#L385 )
122125
123126``` python
124127get_personalization()
@@ -136,7 +139,7 @@ Defaults to a no-op for the base *TextRank* algorithm.
136139
137140---
138141#### [ ` get_unit_vector ` method] ( #pytextrank.BaseTextRank.get_unit_vector )
139- [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/base.py#L638 )
142+ [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/base.py#L649 )
140143
141144``` python
142145get_unit_vector(limit_phrases)
@@ -158,7 +161,7 @@ the unit vector, as a list of `VectorElem` objects
158161
159162---
160163#### [ ` calc_sent_dist ` method] ( #pytextrank.BaseTextRank.calc_sent_dist )
161- [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/base.py#L682 )
164+ [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/base.py#L693 )
162165
163166``` python
164167calc_sent_dist(limit_phrases)
@@ -176,7 +179,7 @@ a list of sentence distance measures
176179
177180---
178181#### [ ` segment_paragraphs ` method] ( #pytextrank.BaseTextRank.segment_paragraphs )
179- [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/base.py#L731 )
182+ [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/base.py#L742 )
180183
181184``` python
182185segment_paragraphs(sent_dist)
@@ -193,7 +196,7 @@ a list of Paragraph data objects
193196
194197---
195198#### [ ` summary ` method] ( #pytextrank.BaseTextRank.summary )
196- [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/base.py#L786 )
199+ [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/base.py#L797 )
197200
198201``` python
199202summary(limit_phrases = 10 , limit_sentences = 4 , preserve_order = False , level = " sentence" )
@@ -221,7 +224,7 @@ texts for sentences, in order
221224
222225---
223226#### [ ` write_dot ` method] ( #pytextrank.BaseTextRank.write_dot )
224- [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/base.py#L860 )
227+ [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/base.py#L871 )
225228
226229``` python
227230write_dot(path = " graph.dot" )
@@ -235,7 +238,7 @@ path for the output file; defaults to `"graph.dot"`
235238
236239---
237240#### [ ` plot_keyphrases ` method] ( #pytextrank.BaseTextRank.plot_keyphrases )
238- [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/base.py#L890 )
241+ [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/base.py#L901 )
239242
240243``` python
241244plot_keyphrases()
@@ -257,7 +260,7 @@ A factory class that provides the document with its instance of
257260
258261---
259262#### [ ` __init__ ` method] ( #pytextrank.TopicRankFactory.__init__ )
260- [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/topicrank.py#L31 )
263+ [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/topicrank.py#L32 )
261264
262265``` python
263266__init__ (edge_weight = 1.0 , pos_kept = None , token_lookback = 3 , scrubber = None , stopwords = None , threshold = 0.25 , method = " average" )
@@ -268,7 +271,7 @@ Constructor for the factory class.
268271
269272---
270273#### [ ` __call__ ` method] ( #pytextrank.TopicRankFactory.__call__ )
271- [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/topicrank.py#L58 )
274+ [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/topicrank.py#L59 )
272275
273276``` python
274277__call__ (doc)
@@ -315,7 +318,7 @@ Algorithm Overview:
315318
316319---
317320#### [ ` __init__ ` method] ( #pytextrank.TopicRank.__init__ )
318- [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/topicrank.py#L120 )
321+ [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/topicrank.py#L121 )
319322
320323``` python
321324__init__ (doc, edge_weight, pos_kept, token_lookback, scrubber, stopwords, threshold, method)
@@ -347,7 +350,7 @@ clustering method used in *TopicRank* candidate clustering: see [`scipy.cluster.
347350
348351---
349352#### [ ` calc_textrank ` method] ( #pytextrank.TopicRank.calc_textrank )
350- [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/topicrank.py#L307 )
353+ [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/topicrank.py#L318 )
351354
352355``` python
353356calc_textrank()
@@ -364,7 +367,7 @@ list of ranked phrases, in descending order
364367
365368---
366369#### [ ` reset ` method] ( #pytextrank.TopicRank.reset )
367- [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/topicrank.py#L367 )
370+ [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/topicrank.py#L378 )
368371
369372``` python
370373reset()
@@ -677,6 +680,21 @@ the filtered text representing as a list of lines
677680
678681
679682
683+ ---
684+ #### [ ` get_repo_version ` function] ( #pytextrank.get_repo_version )
685+ [ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/version.py#L49 )
686+
687+ ``` python
688+ get_repo_version()
689+ ```
690+ Access the Git repository information and return items to identify
691+ the version/commit running in production.
692+
693+ * * returns* : ` typing.Tuple[str, str] `
694+ version tag and commit hash
695+
696+
697+
680698---
681699#### [ ` groupby_apply ` function] ( #pytextrank.groupby_apply )
682700[ * \[ source\] * ] ( https://github.com/DerwenAI/pytextrank/blob/main/pytextrank/util.py#L14 )
0 commit comments