Module: TextRank::GraphStrategy
- Defined in:
- lib/text_rank/graph_strategy.rb,
lib/text_rank/graph_strategy/coocurrence.rb
Overview
The graph strategy is the heart of the TextRank algorithm. Strategies determine how a stream of potential tokens are transformed into a graph of unique tokens in such a way that the PageRank algorithm provides meaningful results.
The standard TextRank approach uses co-occurence of tokens within a fixed-size window, and that strategy will likely suffice for most applications. However, there are many variations of TextRank, e.g.:
- SingleRank
- ExpandRank
- ClusterRank
Defined Under Namespace
Classes: Coocurrence