RubyGems Navigation menu

jekyll-related-posts 0.1.1

Proper related posts plugin for Jekyll - uses document correlation matrix on TF-IDF (optionally with Latent Semantic Indexing). Each document is tokenized and stemmed, every word found is treated as keyword for analysis (except for some stop words). TF-IDF matrix for the whole site is calculated (including extra provided weights), then if given accuraccy is lower than 1.0, LSI algorithm is used to compute new simplified vector space. Document correlation matrix is created using dot product of the matrix and its transpose. For each of the post' related documents are inserted into priority queue (sorted by score from document correlation matrix), assuming the score is greater than minimal required score. Selected few bests related posts are retrieven from the queue. Liquid template for each post is rendered and <related-posts /> is replaced with the outcomes of algorithm.

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 0.1.2 - October 23, 2016 (10.0 KB)
  2. 0.1.1 - November 13, 2015 (10.0 KB)
显示所有版本 (共 3 个)

Runtime 依赖 (8):

fast-stemmer ~> 1.0
jekyll ~> 3.0
liquid ~> 3.0
nmatrix ~> 0.2
pqueue ~> 2.1
tokenizer ~> 0.1

Development 依赖 (1):

bundler ~> 1.6

业主:

作者:

  • Amadeusz Juskowiak

SHA 256 校验和:

7d6991a52c3b96da4e726ad4a5eedf578cc510dbb5cf7eb0fab7c2442bdfc49f

下载总量 10,296

这个版本 4,637

许可:

MIT

需要的 Ruby 版本: >= 0

链接: