0.0
No commit activity in last 3 years
No release in over 3 years
Simple TF-IDF document search library.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

Documentally

Documentally uses TF-IDF to allow you to easily search and compare text documents.

It's still under development, so the documentation is basically just the tests right now, but an example use would be:

term_lists = [['doc_1', ['foo', 'foo', 'bar']],
              ['doc_2', ['bar', 'baz', 'baz']],
              ['doc_3', ['bar', 'baz', 'foo']]]

corpus = Documentally::Corpus.new(term_lists)

query = Documentally::Document.new('query', ['baz'])

corpus.search(query) # => ['doc_2']

Installation

gem install documentally